Set the tenant's T-minus cancellation schedule
POST
/merchants/cancellation-schedule
const url = 'https://quikstik-core.fly.dev/merchants/cancellation-schedule';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"tiers":[{"min_hours_before":1,"refund_bps":1}]}'};
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/merchants/cancellation-schedule \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "tiers": [ { "min_hours_before": 1, "refund_bps": 1 } ] }'Authoritative, operator-scoped write of the tenant’s cancellation refund schedule — tiers mapping hours-of-notice to refund basis points, resolved most-notice-first. Replaces the schedule whole. The ratified initial value (>=24h = 10000 bps, <24h = 0) is seeded by migration; this command is how it changes — a config edit, never a deploy.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
tiers
required
Array<object>
object
min_hours_before
required
integer
refund_bps
required
integer
Example generated
{ "tiers": [ { "min_hours_before": 1, "refund_bps": 1 } ]}Responses
Section titled “Responses”Schedule applied.
Malformed tiers (empty, or refund_bps over 10000).
Backend unavailable.