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/19/vat-changes?product_id=11&product_price_id=16&product_option_id=11&before_id=18&after_id=16&sort=ascending&limit=18 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.3.0
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": 15,
"product_price_id": 10,
"product_option_id": 19,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 15
},
{
"product_id": 11,
"product_price_id": 19,
"product_option_id": 10,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 15
},
{
"product_id": 10,
"product_price_id": 18,
"product_option_id": 14,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 16
}
],
"next": {
"product_id": 17,
"product_price_id": 17,
"product_option_id": 16,
"before_id": 18,
"after_id": 10,
"sort": "ascending",
"limit": 17
}
}