Modify one or multiple VAT changes in a company

PATCH /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 The company ID that is owner of the VAT changes.

Body

Pass the following properties via application/json or form encoding in the body of the request.

Array of company.VATChange.with-id: [company.VATChange.with-id]

company.VATChange.with-id

Field Type Description
product_id Int? Nullable. The ID of the product where this VAT percentage is applied.
product_price_id Int? Nullable. The ID of the product price where this VAT percentage is applied.
product_option_id Int? Nullable. The ID of the product option where this VAT percentage is applied.
percentage Float The VAT percentage
method String The take out method for which this VAT percentage should get applied
start_date Date? Nullable. When this VAT percentage will take effect. Use null to apply since the beginning.
id Int The unique ID of this VAT change

Example request 1

PATCH /company/companies/10/vat-changes HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.3.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 647
[
    {
        "product_id": 12,
        "product_price_id": 19,
        "product_option_id": 12,
        "percentage": 9.67,
        "method": "delivery",
        "start_date": "2019-01-31",
        "id": 10
    },
    {
        "product_id": 12,
        "product_price_id": 12,
        "product_option_id": 12,
        "percentage": 9.67,
        "method": "delivery",
        "start_date": "2019-01-31",
        "id": 15
    },
    {
        "product_id": 16,
        "product_price_id": 11,
        "product_option_id": 19,
        "percentage": 9.67,
        "method": "delivery",
        "start_date": "2019-01-31",
        "id": 16
    }
]

Response

Array of company.VATChange: [company.VATChange]

company.VATChange

Field Type Description
product_id Int? Nullable. The ID of the product where this VAT percentage is applied.
product_price_id Int? Nullable. The ID of the product price where this VAT percentage is applied.
product_option_id Int? Nullable. The ID of the product option where this VAT percentage is applied.
percentage Float The VAT percentage
method String The take out method for which this VAT percentage should get applied
start_date Date? Nullable. When this VAT percentage will take effect. Use null to apply since the beginning.
id Int The unique ID of this VAT change

Example response 1

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

[
    {
        "product_id": 10,
        "product_price_id": 16,
        "product_option_id": 11,
        "percentage": 9.67,
        "method": "delivery",
        "start_date": "2019-01-31",
        "id": 11
    },
    {
        "product_id": 11,
        "product_price_id": 14,
        "product_option_id": 14,
        "percentage": 9.67,
        "method": "delivery",
        "start_date": "2019-01-31",
        "id": 18
    },
    {
        "product_id": 16,
        "product_price_id": 11,
        "product_option_id": 14,
        "percentage": 9.67,
        "method": "delivery",
        "start_date": "2019-01-31",
        "id": 16
    }
]
Version update available Please adjust your integration to the latest stable version (1.9.0)
1.3.0 stable