409 Conflict
Coupon not valid at this venue
- Code
coupon_not_valid_here- Status
409Conflict- Type
https://errors.clavian.io/coupon-not-valid-here
What it means
The coupon may be redeemed only at other venues of the organisation.
What to do
Say the coupon is not valid at this venue.
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/coupon-not-valid-here",
"title": "Coupon not valid at this venue",
"status": 409,
"code": "coupon_not_valid_here",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/organizations/{organizationId}/venues/{venueId}/coupons/redeemRedeem a coupon for a playerPOST /v1/station/coupons/redeemRedeem a coupon at the kiosk