Preview Booking Edit
Preview changes to a booking's lines without saving: add or remove products, add, edit or remove custom charge lines, or move a line to another unit. Returns the resulting lines, the total before and after, any problems, and a preview_id. Nothing is written. Use this before apply_booking_edit. For customer-requested date, location, or item changes that need policy checks and payment, use create_change_request instead.
This does not change account data.
curl -X POST "https://dash.lockii.app/api/v1/booking/{order_id}/edit/preview" \
-H "x-api-key: $LOCKII_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"operations": [
{
"type": "add_product",
"product_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.
Response
JSON result for this operation.
{}