API referenceBooking
Confirm Booking
Confirm a pending booking. Assigns its booking number, holds its stock, and sends the company's booking confirmation messages to the customer. Pass the total the user agreed to as expected_total_cents. Takes no payment.
App connections need the booking:write scope.
POST
/booking/{order_id}/confirmcurl -X POST "https://dash.lockii.app/api/v1/booking/{order_id}/confirm" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expected_total_cents": -9007199254740991
}'Authorization
x-api-keystringheaderAPI key from Settings → Integrations → API.
AuthorizationstringheaderThe same API key, or an OAuth access token, sent as Authorization: Bearer.
api_keystringqueryAPI key query parameter.
Parameters
order_idstringpathrequiredPending booking/order id
Body
application/json
expected_total_centsintegerrequiredThe total the user agreed to, in cents. Confirming fails if the booking total is different.
Response
application/json
JSON result for this operation.
object
{}