Skip to content

give_required

HTTP 422 · Say what to give: this card does not earn from a bill

What happened. The request does not say what to give. A stamps card does not earn from a bill, so a bill alone is not enough; a VIP card counted in spend needs the bill.

What to do. Send give with what to give, such as { "type": "stamps", "stamps": 1 }, or the bill for a card that earns from one. GET /programs/{id} says how the card earns.

Errors are Problem Details, served as application/problem+json, with "code": "give_required" and "type": "https://passkaar.com/developers/errors/give_required", which opens this page on docs.passkaar.com.