Bookings
Release a hold
Releases a hold early so its capacity is offered again.
Esta página aún no está disponible en tu idioma.
https://api.maple.inc/v1/booking_holds/{holdId}API keyReleases a hold early so its capacity is offered again. Idempotent: releasing a hold that already expired or was released succeeds; a hold already consumed by a booking answers 409 hold_consumed. Unknown holds and holds owned by another app return 404. Provider-managed locations cannot release early: the call succeeds without changing the lock or quota usage; expiry or consumption frees it. Requires bookings:write.
Authorization
Send your API key as Authorization: Bearer <key>: mpk_test_… against the sandbox (https://api.staging.maple.inc/v1), mpk_live_… against production. See Authentication. The samples read the key from MAPLE_KEY and the base URL from MAPLE_BASE, as set up in the Quickstart.
Parameters
holdIdstring required
Responses
200 OK
-
objectstring requiredAlways
booking_hold.released. -
idstring required -
releasedboolean requiredAlways
true.
Errors
-
400Bad request -
401Unauthorized -
403Forbidden -
404Not found -
409Conflict -
422Unprocessable -
429Too many requests
Every error body names the error in _tag, explains it in message, and says where to report it in feedback. See Errors.
A 429 also sends Retry-After: Seconds to wait before retrying; also returned as retry_after in the body.