invalid_request
HTTP 400 · The request is not valid
What happened. The request does not match the contract: a field is missing, has the wrong type or is out of range, a header is malformed, or the request asks for something the API never does (for example, a branch this connection is not allowed to use). errors lists each field refused, as a JSON Pointer into the body, and detail says what was wrong.
What to do. Fix the request and send it again. Retrying the same request unchanged gives the same answer.
Returned by
Section titled “Returned by”- The shop’s live cards —
GET /programs - A card’s type, rules, rewards and join form —
GET /programs/{id} - The shop’s branches —
GET /branches - Sign a customer up —
POST /enrolments - A fresh claim link for a card never in a wallet —
POST /cards/{id}/claim-link - Attach or change the integration’s customer id —
PUT /customers/{id}/external-id - Link a card made at an outlet to a store account —
POST /cards/link - Find a card by serial, card ID, phone, email or external id —
POST /cards/lookup - A card’s balance, rewards, tier, dates, status and whether it is in a wallet —
GET /cards/{id} - A card’s history —
GET /cards/{id}/transactions - Give value for a sale —
POST /awards - Refund or void an award, in full or in part —
POST /awards/{reference}/reverse - Spend value now —
POST /redemptions - Reserve value against an online order —
POST /redemption-holds - Spend what a hold reserved —
POST /redemption-holds/{id}/confirm - Free what a hold reserved —
POST /redemption-holds/{id}/release - The event feed —
GET /events - This connection’s webhook endpoints —
GET /webhook-endpoints - Add a webhook endpoint —
POST /webhook-endpoints - A webhook endpoint —
GET /webhook-endpoints/{id} - Change, switch off or switch back on a webhook endpoint —
PATCH /webhook-endpoints/{id} - Remove a webhook endpoint —
DELETE /webhook-endpoints/{id} - Send a webhook.test event to the endpoint —
POST /webhook-endpoints/{id}/test - Roll the endpoint’s signing secret —
POST /webhook-endpoints/{id}/roll-secret
The answer
Section titled “The answer”Errors are Problem Details, served as application/problem+json, with "code": "invalid_request" and "type": "https://passkaar.com/developers/errors/invalid_request", which opens this page on docs.passkaar.com.