Download OpenAPI specification:Download
Create, manage and update tax (VAT, Sales Tax, Mwst) and tax classes.
Key Features:
Key Benefits:
Creates a new tax configuration.
tax.tax_manage
required | object (location) |
required | Array of objects (taxClass) List of tax classes applicable in the specified country. |
The request was successful. The tax configuration has been created.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Conflict
Internal Service Error occurred.
{- "location": {
- "countryCode": "DE"
}, - "taxClasses": [
- {
- "code": "STANDARD",
- "name": {
- "en": "Standard"
}, - "order": 0,
- "rate": 19,
- "isDefault": true
}, - {
- "code": "REDUCED",
- "name": {
- "en": "Reduced"
}, - "order": 1,
- "rate": 7
}, - {
- "code": "ZERO",
- "name": {
- "en": "Zero"
}, - "order": 2,
- "rate": 0
}
]
}
{- "locationCode": "string"
}
Retrieves all tax configurations assigned to the tenant. You can filter the results with query parameters.
tax.tax_read
The request was successful. A list of tax configurations is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
[- {
- "location": {
- "countryCode": "DE"
}, - "taxClasses": [
- {
- "code": "STANDARD",
- "name": {
- "en": "Standard"
}, - "order": 0,
- "rate": 19,
- "isDefault": true
}, - {
- "code": "REDUCED",
- "name": {
- "en": "Reduced"
}, - "order": 1,
- "rate": 7
}, - {
- "code": "ZERO",
- "name": {
- "en": "Zero"
}, - "order": 2,
- "rate": 0
}
], - "metadata": {
- "version": 1,
- "createdAt": "2022-03-31T09:52:15.423Z",
- "modifiedAt": "2022-03-31T09:53:25.464Z"
}
}, - {
- "location": {
- "countryCode": "PL"
}, - "taxClasses": [
- {
- "code": "STANDARD",
- "name": {
- "en": "Standard"
}, - "order": 0,
- "rate": 23
}, - {
- "code": "REDUCED_8",
- "name": {
- "en": "Reduced"
}, - "order": 1,
- "rate": 8,
- "isDefault": true
}, - {
- "code": "REDUCED_5",
- "name": {
- "en": "Reduced (Food)"
}, - "order": 2,
- "rate": 5
}, - {
- "code": "ZERO",
- "name": {
- "en": "Zero"
}, - "order": 3,
- "rate": 0
}
], - "metadata": {
- "version": 2,
- "createdAt": "2022-03-31T09:52:15.423Z",
- "modifiedAt": "2022-03-31T09:53:25.464Z"
}
}
]
Retrieves a tax configuration for a specified location.
tax.tax_read
The request was successful. The tax configuration is returned.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Internal Service Error occurred.
{- "location": {
- "countryCode": "DE"
}, - "taxClasses": [
- {
- "code": "STANDARD",
- "name": {
- "en": "Standard"
}, - "order": 0,
- "rate": 19,
- "isDefault": true
}, - {
- "code": "REDUCED",
- "name": {
- "en": "Reduced"
}, - "order": 1,
- "rate": 7
}, - {
- "code": "ZERO",
- "name": {
- "en": "Zero"
}, - "order": 2,
- "rate": 0
}
], - "metadata": {
- "version": 2,
- "createdAt": "2022-03-31T09:52:15.423Z",
- "modifiedAt": "2022-03-31T09:53:25.464Z"
}
}
Updates a tax configuration based on the specified location code.
Note: The tax configuration's identifier - the country code - is immutable and cannot be changed using this endpoint.
tax.tax_manage
required | object (location) |
required | Array of objects (taxClass) List of tax classes applicable in the specified country. |
required | object (metadata) |
The request was successful. The tax configuration has been updated.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Resource has not been found.
Conflict
Internal Service Error occurred.
{- "location": {
- "countryCode": "DE"
}, - "taxClasses": [
- {
- "code": "STANDARD",
- "name": {
- "en": "Standard"
}, - "order": 0,
- "rate": 19,
- "isDefault": true
}, - {
- "code": "REDUCED",
- "name": {
- "en": "Reduced"
}, - "order": 1,
- "rate": 7
}, - {
- "code": "ZERO",
- "name": {
- "en": "Zero"
}, - "order": 2,
- "rate": 0
}
], - "metadata": {
- "version": 1
}
}
{- "code": 400,
- "status": "Bad Request",
- "message": "Tenant in the header is not matching with the one provided in the URI."
}
Deletes a tax configuration based on the specified location code.
tax.tax_manage
The request was successful. The tax configuration has been deleted.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
{- "fault": {
- "faultstring": "Invalid access token",
- "detail": {
- "errorcode": "oauth.v2.InvalidAccessToken"
}
}
}
Supports the following calculation operations for prices:
Note: This endpoint calculates net and gross values for prices based on existing tax configurations. To use this endpoint, you need to create tax configurations first.
The request was successful. The calculated value is returned.
Request was syntactically incorrect. Details will be provided in the response payload.
Given request is unauthorized - the authorization token is invalid or has expired. Details will be provided in the response payload.
Given authorization scopes are not sufficient and do not match scopes required by the endpoint.
Internal Service Error occurred.
{- "input": {
- "targetLocation": {
- "countryCode": "DE"
}, - "targetTaxClass": "STANDARD",
- "includesTax": false,
- "price": 1.59
}
}
{- "commandUuid": "cb0d5627-08ef-4de9-a676-a254a4311261",
- "input": {
- "targetCountry": "DE",
- "targetTaxClass": "STANDARD",
- "includesTax": false,
- "price": 1.59
}, - "output": {
- "netPrice": 1.59,
- "grossPrice": 1.8921,
- "targetTaxRate": 19
}
}