409 Conflict
Pass cannot be voided
- Code
pass_not_voidable- Status
409Conflict- Type
https://errors.clavian.io/pass-not-voidable
What it means
Some of the pass’s seconds have already been played, or it is already refunded, voided or expired, so it cannot be voided. A void removes only unused seconds.
What to do
Refund the holding instead (its rules decide what money is returned), rather than voiding it.
Example
The API answers with status 409 and this body, as application/problem+json. A detail may be added, saying what went wrong this time; it is for people, and changes.
{
"type": "https://errors.clavian.io/pass-not-voidable",
"title": "Pass cannot be voided",
"status": 409,
"code": "pass_not_voidable",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/organizations/{organizationId}/passes/holdings/{holdingId}/voidVoid a pass holding