Sales Taxes

The sales taxes you charge your customers, or those you are charged when you purchase items from your vendors, are managed here. The following sales tax methods are available:

Sales Taxes List

GET https://secure.ledgerble.com/api/1.0/sales_taxes

Returns a list of sales taxes in the following format:

{
  "sales_taxes":
    [
      {
        "id": 17,
        "url": "https://secure.ledgerble.com/api/1.0/sales_taxes/17",
        "name": "GST",
        "rate": "0.05",
        "combination": false,
        "compound": false,
        "display_order": 7
      }
    ]
}

Get Sales Tax

GET https://secure.ledgerble.com/api/1.0/sales_taxes/{SALES_TAX_ID}

Returns a single sales tax in the following format:

{
  "sales_tax": {
    "id": 17,
    "name": "GST",
    "rate": "0.05",
    "combination": false,
    "compound": false,
    "display_order": 7
  }
}

New Sales Tax

POST https://secure.ledgerble.com/api/1.0/sales_taxes

Creates a new sales tax. The following options are available:

Variable Required? Description
name Yes The name of the sales tax.
rate Yes The tax rate. Format 0.05 for 5%.

Edit Sales Tax

POST https://secure.ledgerble.com/api/1.0/sales_taxes/{SALES_TAX_ID}/edit

Updates the existing sales tax with the {SALES_TAX_ID} provided. The options available are the same as those for creating.

Delete Sales Tax

POST https://secure.ledgerble.com/api/1.0/sales_taxes/{SALES_TAX_ID}/delete

Deletes the sales tax with the {SALES_TAX_ID} provided.