PATCH /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 | The company ID that is owner of the VAT changes. |
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]
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 |
PATCH /company/companies/17/vat-changes HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 0.3.0
Accept-Language: en-US,en;q=0.5
Content-Type: application/json
Content-Length: 647
[
{
"product_id": 16,
"product_price_id": 15,
"product_option_id": 16,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 18
},
{
"product_id": 16,
"product_price_id": 19,
"product_option_id": 19,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 10
},
{
"product_id": 19,
"product_price_id": 17,
"product_option_id": 19,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 16
}
]
Array of 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 |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 647
[
{
"product_id": 13,
"product_price_id": 19,
"product_option_id": 11,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 18
},
{
"product_id": 19,
"product_price_id": 12,
"product_option_id": 18,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 11
},
{
"product_id": 19,
"product_price_id": 10,
"product_option_id": 19,
"percentage": 9.67,
"method": "delivery",
"start_date": "2019-01-31",
"id": 13
}
]