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/15/vat-changes?product_id=13&product_price_id=14&product_option_id=18&before_id=10&after_id=16&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": 18,
            "product_price_id": 18,
            "product_option_id": 18,
            "percentage": 9.67,
            "method": "delivery",
            "start_date": "2019-01-31",
            "id": 18
        },
        {
            "product_id": 19,
            "product_price_id": 11,
            "product_option_id": 19,
            "percentage": 9.67,
            "method": "delivery",
            "start_date": "2019-01-31",
            "id": 19
        },
        {
            "product_id": 19,
            "product_price_id": 19,
            "product_option_id": 14,
            "percentage": 9.67,
            "method": "delivery",
            "start_date": "2019-01-31",
            "id": 14
        }
    ],
    "next": {
        "product_id": 18,
        "product_price_id": 10,
        "product_option_id": 10,
        "before_id": 19,
        "after_id": 17,
        "sort": "ascending",
        "limit": 14
    }
}
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.5.0 stable