TaxDefinition
Create a tax definition.
Create a new tax definition.<br>You must have this scope: 'admin'.
post/taxes/v0-nsfw/tax-definitions
Request
- Base URLhttps://api.apaleo.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.apaleo.com/taxes/v0-nsfw/tax-definitions
- AuthOAuth 2Implicit: https://identity.apaleo.com/connect/authorizeScopes: admin
Headers
Idempotency-Keystring
Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.
Request body
Example request
{
"code": "ALCOHOL",
"propertyId": "MUC",
"name": {
"en": "Alcohol tax"
},
"description": {
"en": "Alcohol tax description"
},
"classification": "ConsumptionTax",
"vatType": "Reduced",
"vatHandlingType": "Included",
"applicability": {
"appliedTo": {
"services": [
{
"serviceType": "FoodAndBeverages",
"subAccountIds": [
"ALCOHOL"
]
}
]
}
},
"calculationRules": [
{
"validityPeriod": {
"from": "2025-06-01",
"to": "2025-08-31"
},
"stayDayIndexRange": {
"from": 0,
"to": 10
},
"priority": 10,
"calculationKind": "Percent",
"calculationBase": "Gross",
"calculation": {
"type": "PerService",
"perService": {
"value": 7.5
}
}
}
]
}Response
Tax definition successfully created.
Changes
No recorded changes to this operation across all 1 revision of this API.