Create surcharge
POST/v1/surcharges
Create surcharge
Request
- application/json
Body
required
Create surcharge input
Array [
]
Array [
]
name
object[]
required
A descriptive name for the surcharge
Localized field language code
Localized field value
description
object[]
A brief description of the surcharge
Localized field language code
Localized field value
Possible values: [flat_fee
, percentage
]
Type of the surcharge
The value to be applied as surcharge (e.g., percentage or amount)
Possible values: [H
, L
, N
]
Tax code
Possible values: >= 2 characters
and <= 2 characters
Tax zone
Indicates whether the surcharge is active or not
The date and time the surcharge is valid from
The date and time the surcharge is valid to
Shop identifier for the surcharge to apply to... If not provided the default will be inferred from the channel
Responses
- 201
- 400
- 403
- 500
Surcharge created
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Array [
]
Unique identifier for the surcharge
name
object[]
required
A descriptive name for the surcharge
Localized field language code
Localized field value
description
object[]
A brief description of the surcharge
Localized field language code
Localized field value
Possible values: [flat_fee
, percentage
]
Type of the surcharge
The value to be applied as surcharge (e.g., percentage or amount)
Possible values: [flat_fee
, percentage
]
Type of the surcharge
Tax zone
Indicates whether the surcharge is active or not
The date and time the surcharge is valid from
The date and time the surcharge is valid to
The userId of the user that created the surcharge
The userId of the user that changed the surcharge
The date and time the surcharge is created
The date and time the surcharge is changed
Shop identifier for the tax to apply to
{
"id": "d9b1c4e0-4f1e-4b1e-8b5c-9c2d0a0a6a6e",
"name": [
{
"language": "NL",
"value": "Dutch Surcharge"
}
],
"description": [
{
"language": "NL",
"value": "Dutch Surcharge"
}
],
"type": "percentage",
"value": 9.99,
"taxCode": "flat_fee",
"taxZone": "NL",
"enabled": true,
"validFrom": "2314-03-14T03:14:15.926Z",
"validTo": "2314-03-14T03:14:15.926Z",
"createdBy": 1234,
"changedBy": 1234,
"dateCreated": "2314-03-14T03:14:15.926Z",
"dateChanged": "2314-03-14T03:14:15.926Z",
"shopId": 1
}
Bad request
Forbidden.
Create surcharge error