GET /company/companies/@id/vat-changes
This endpoint requires authentication.
Header | Value |
---|---|
Authorization | Set the value to Bearer + + access_token |
Replace the @ keywords in the URL with their corresponding value.
A dictionary with fields
Field | Type | Description |
---|---|---|
id | Int | Return the VAT changes of the given company |
Append the querystring with following properties to the URL.
A dictionary with fields
Field | Type | Description |
---|---|---|
product_id | Int | Optional. Only return VAT changes for the given product |
product_price_id | Int | Optional. Only return VAT changes for the given product price |
product_option_id | Int | Optional. Only return VAT changes for the given product option |
before_id | Int | Optional. Only return VAT changes created before (not including) the change with the given id. Used for pagination. |
after_id | Int | Optional. Only return VAT changes created after (not including) the change with the given id. Used for pagination. |
sort | String | Optional. Sort the results in ascending (default) or descending ordered by id. Default is ascending. |
limit | Int | Optional. Limit the amount of VAT changes returned per page. Defaults to 50. Maximum value is 1000. |
GET /company/companies/17/vat-changes?product_id=19&product_price_id=13&product_option_id=16&before_id=12&after_id=13&sort=ascending&limit=10 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.2.2
Accept-Language: en-US,en;q=0.5
Field | Type | Description |
---|---|---|
results | [company.VATChange] | Array of company.VATChange |
next | Dictionary? | Nullable. The query parameters you need to request the following results. Is null when there are no results left |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 988
{
"results": [
{
"product_id": 17,
"product_price_id": 14,
"product_option_id": 18,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 14
},
{
"product_id": 13,
"product_price_id": 18,
"product_option_id": 10,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 10
},
{
"product_id": 11,
"product_price_id": 16,
"product_option_id": 17,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 13
}
],
"next": {
"product_id": 17,
"product_price_id": 10,
"product_option_id": 16,
"before_id": 10,
"after_id": 14,
"sort": "ascending",
"limit": 11
}
}