program_closed
HTTP 422 · The card is not taking sign-ups
What happened. The card is not taking sign-ups. reason says why: unpublished (the shop has not published it), not_accepting (the shop stopped sign-ups), ended (its end date has passed) or all_claimed (a limited card ran out).
What to do. Do not offer this card. GET /programs lists the cards that are live.
Returned by
Section titled “Returned by”- Sign a customer up —
POST /enrolments
The answer
Section titled “The answer”Errors are Problem Details, served as application/problem+json, with "code": "program_closed" and "type": "https://passkaar.com/developers/errors/program_closed", which opens this page on docs.passkaar.com.