Taxes API

List taxes

GET /tax
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • value
  • id

The following scopes are needed:

  • general
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 130
Content-Type: application/json
[
  {
    "id": 1,
    "value": "8.00",
    "type": "sales_tax"
  },
  {
    "id": 2,
    "value": "3.60",
    "type": "sales_tax"
  },
  {
    "id": 3,
    "value": "2.40",
    "type": "sales_tax"
  }
]

Search taxes

POST /tax/search
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
[
  {
    "field": "value",
    "value": 8
  }
]
Name Required Type Description
order_by optional string Sorting
limit optional integer Limit
offset optional integer Offset
callback optional string Javascript callback

The following sort parameters may be applied:

  • id
  • value
Name Required Type Description
value optional string

The following scopes are needed:

  • general
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 146
Content-Type: application/json
[
  {
    "id": 1,
    "value": "8.00",
    "type": "sales_tax"
  },
  {
    "id": 6,
    "value": "8.00",
    "type": "pre_tax_material"
  },
  {
    "id": 7,
    "value": "8.00",
    "type": "pre_tax_investment"
  }
]

Show tax

GET /tax/1
Accept: application/json
Authorization: Bearer 677a1598d208d6c303fa5ca1c774709250e21749
Name Required Type Description
callback optional string Javascript callback

The following scopes are needed:

  • general
Status: 200 OK
X-Authenticated-User: apiextract_1
Content-Length: 42
Content-Type: application/json
{
  "id": 1,
  "value": "8.00",
  "type": "sales_tax"
}