Booking
Create a draft invoice for a reservation
Toegang
Lid van de organisatie met dit recht:
invoices:write
Een API-sleutel met scopes heeft het recht ook in zijn scopes nodig.
POST
Puts the reservation's price lines on a new draft invoice; a group booking gets one invoice with every stay's lines.
ApiKeyAuthheader
x-api-key<token>API key for authentication
organizationId*stringThe ID or slug of the organization
reservationId*stringLength
1 <= lengthapplication/json- body
scope?stringValue in
"stay""group"OK
application/json- response
curl -X POST 'https://api.tillor.eu/orgs//booking/reservations/string/invoice' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
nullList promo code redemptions GET
The reservations that used a code, newest first.
Invoice a reservation's price change POST
Compares the reservation's current price lines with everything already invoiced for it and bills the difference: a draft extra invoice when the price went up, a draft credit note on the original invoice when it went down. An unpaid draft invoice gets its lines replaced instead.