Create new tax
POST/v2/taxes
Combination of shopId, code and zone should be unique
Request
- application/json
Body
required
Create tax input
Shop identifier for the tax to apply to... If not provided the default will be inferred from the channel
Possible values: [H
, L
, N
]
Tax code
Possible values: <= 2 characters
Tax zone
Default value: 0
Tax percentage
Possible values: <= 10 characters
Tax export code
Responses
- 201
- 400
- 401
- 403
- 500
Tax created
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 36 characters
and <= 36 characters
Tax primary identifier
Shop identifier for the tax to apply to
Possible values: [H
, L
, N
]
Tax code
Possible values: <= 2 characters
Tax zone
Default value: 0
Tax percentage
Possible values: <= 10 characters
Tax export code
Default value: CURRENT_TIMESTAMP
Tax initial creation timestamp
Reference to the user that created the tax initially
Default value: CURRENT_TIMESTAMP
Tax last update timestamp
Reference to the user that last modified the tax
{
"id": "8bcacf9d-36a2-48d5-b713-eedb4eb8c28b",
"shopId": 1,
"code": "H",
"zone": "NL",
"percentage": 21.5,
"exportCode": "NL_H",
"createdAt": "2314-03-14T03:14:15.926Z",
"createdBy": 1234,
"lastModifiedAt": "2314-03-14T03:14:15.926Z",
"lastModifiedBy": 1234
}
Bad request
Unauthorized
- application/json
- Schema
- invalid_client_id
- invalid_client_cred
Schema
any
{
"ErrorCode": "invalid_client",
"Error": "ClientId is Invalid"
}
{
"ErrorCode": "invalid_client",
"Error": "Client credentials are invalid"
}
Forbidden.
Create tax error