Delete one or multiple VAT changes in a company

DELETE /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 Int: [Int]

Int

Example request 1 Delete valid with invalid id should fail

DELETE /company/companies/3011/vat-changes HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 1b9b27652bba302bee99e3ead1b1c63febd7aecda33d07bb0d617b690ffd4be58d36d971e0c02c2354d297eb9fe21c2400dc6675f799b1306fb4a13d868773f44db78be0b87092badd84ea1169eb2a389e573721d71c4c64a31ad66ecd8d027ee0c71eb4
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 26
[
    1543,
    96623232
]

Example request 2 Delete multiple VAT changes at once

DELETE /company/companies/3011/vat-changes HTTP/1.1
Host: api.bakeronline.be
Authorization: Bearer 1b9b27652bba302bee99e3ead1b1c63febd7aecda33d07bb0d617b690ffd4be58d36d971e0c02c2354d297eb9fe21c2400dc6675f799b1306fb4a13d868773f44db78be0b87092badd84ea1169eb2a389e573721d71c4c64a31ad66ecd8d027ee0c71eb4
X-VERSION: 1.5.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 32
[
    1543,
    1544,
    1545
]

Response

Example response 1 Delete valid with invalid id should fail

HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=utf-8
Content-Length: 173

[
    {
        "code": "invalid_field",
        "message": "The VAT change with id 96623232 doesn't exist or belong to the given company",
        "field": "data.1"
    }
]

Example response 2 Delete multiple VAT changes at once

HTTP/1.1 204 No Content
Version update available Please adjust your integration to the latest stable version (1.5.2)
1.5.0 stable