Return all the VAT changes in a company

GET /company/companies/@id/vat-changes

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

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

Query string (URL)

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.

Example request 1

GET /company/companies/13/vat-changes?product_id=18&product_price_id=10&product_option_id=10&before_id=17&after_id=12&sort=ascending&limit=18 HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5

Response

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

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 988

{
    "results": [
        {
            "product_id": 17,
            "product_price_id": 16,
            "product_option_id": 17,
            "percentage": 9.67,
            "method": "delivery",
            "start_date": "2019-01-31",
            "id": 13
        },
        {
            "product_id": 19,
            "product_price_id": 18,
            "product_option_id": 16,
            "percentage": 9.67,
            "method": "delivery",
            "start_date": "2019-01-31",
            "id": 12
        },
        {
            "product_id": 11,
            "product_price_id": 14,
            "product_option_id": 13,
            "percentage": 9.67,
            "method": "delivery",
            "start_date": "2019-01-31",
            "id": 10
        }
    ],
    "next": {
        "product_id": 13,
        "product_price_id": 14,
        "product_option_id": 15,
        "before_id": 18,
        "after_id": 14,
        "sort": "ascending",
        "limit": 12
    }
}
Version update available Please adjust your integration to the latest stable version (1.6.0)
1.5.0 stable