Booking
Create booking rate
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 seasonal price per night for an accommodation type.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
application/json- body
terrainTypeId*stringLength
1 <= lengthname*stringLength
1 <= length <= 100validFrom*stringMatch
^\d{4}-\d{2}-\d{2}$validTo*stringMatch
^\d{4}-\d{2}-\d{2}$pricePerNight*numberRange
0 <= valueminNights?integerRange
1 <= value <= 365Default
1priority?integerRange
0 <= value <= 100Default
0arrivalDays?array<>Items
items <= 7Default
[]OK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//booking/rates' \ -H 'Content-Type: application/json' \ -d '{ "terrainTypeId": "string", "name": "string", "validFrom": "string", "validTo": "string", "pricePerNight": 0}'Example Response
null