Apply Booking Edit
Apply booking line changes exactly as previewed. Pass the same arguments as preview_booking_edit plus its preview_id. Fails if the booking changed since the preview. All changes save together or not at all. Does not charge, refund, or message the customer.
App connections need the booking:write scope.
curl -X POST "https://dash.lockii.app/api/v1/booking/{order_id}/edit" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operations": [
{
"type": "add_product",
"product_id": "string"
}
],
"preview_id": "string"
}'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_idstringpathrequiredBooking/order id
Body
operationsany[]requiredChanges to make, applied in order as one batch
price_handlingenum<string>Required for confirmed bookings. recalculate: total becomes the catalogue price of the new lines. keep_total: total stays as it is. set_total: total becomes total_cents. Omit for pending bookings, whose total always follows the lines.
One of:recalculatekeep_totalset_totaltotal_centsintegerNew booking total in cents. Only with price_handling set_total.
preview_idstringrequiredpreview_id from preview_booking_edit for exactly these arguments
Response
JSON result for this operation.
{}