Skip to content

Set the tenant's T-minus cancellation schedule

POST
/merchants/cancellation-schedule
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.

Media typeapplication/json
object
tiers
required
Array<object>
>= 1 items
object
min_hours_before
required
integer
refund_bps
required
integer
<= 10000

Example generated

{
"tiers": [
{
"min_hours_before": 1,
"refund_bps": 1
}
]
}

Schedule applied.

Malformed tiers (empty, or refund_bps over 10000).

Backend unavailable.