Re-resolve one booking's policy snapshot, with a reason
const url = 'https://quikstik-core.fly.dev/bookings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/policy/re-resolve';const options = { method: 'POST', headers: { 'x-tenant-id': '2489E9AD-2EE2-8E00-8EC9-32D5F69181C0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://quikstik-core.fly.dev/bookings/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/policy/re-resolve \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0' \ --data '{ "reason": "example" }'The explicit, never-implicit way a booking is moved onto the merchant’s CURRENT terms: resolves
the booking’s policy now, appends it as the booking’s next snapshot, and appends a
PolicyReResolvedV1 amendment (with the reason) to its agreement chain, in one transaction.
Session-bearer only (a human). 404 booking_not_found / no_agreement; 409 booking_cancelled; 422 reason_required (empty, or over 500 characters).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Header Parameters
Section titled “Header Parameters”Tenant identifier (UUID).
Authn/authz semantics are intentionally TBD for this contract slice; this header exists to keep the contract explicitly multi-tenant from day 0.
Request Bodyrequired
Section titled “Request Bodyrequired”object
Example generated
{ "reason": "example"}Responses
Section titled “Responses”Re-resolved
object
Example generated
{ "booking_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "snapshot_seq": 1, "agreement_version": 1}booking_not_found or no_agreement.
booking_cancelled.
reason_required.
No durable backend is wired for this operation (fail-closed)
object
Stable, machine-readable reason code (e.g. “sold_out”, “processor_not_configured”, “rail_refused”).
Example
{ "reason": "sold_out"}