Booking
Create promo code
Toegang
Lid van de organisatie met dit recht:
organization:settings:write
Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.
POST
Adds a discount code for the booking widget.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
application/json- body
code*stringLength
2 <= length <= 40description?|nullpercentage?|nullamount?|nullvalidFrom?|nullvalidTo?|nullstayFrom?|nullstayTo?|nullminNights?integerRange
1 <= value <= 365Default
1maxNights?|nullcheckInWeekdays?array<>Items
items <= 7Default
[]terrainTypeIds?array<>Items
items <= 100Default
[]maxUses?|nullmaxUsesPerCustomer?|nullfirstBookingOnly?booleanDefault
falseappliesToExtras?booleanDefault
falseappliesToTouristTax?booleanDefault
falseenabled?booleanDefault
trueOK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//booking/promo-codes' \ -H 'Content-Type: application/json' \ -d '{ "code": "string"}'Example Response
null