409 Conflict
Coupon used up
- Code
coupon_used_up- Status
409Conflict- Type
https://errors.clavian.io/coupon-used-up
What it means
The coupon has been redeemed as many times as it may be.
What to do
Say the coupon has already been used.
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-used-up",
"title": "Coupon used up",
"status": 409,
"code": "coupon_used_up",
"requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}
Endpoints that return it
From the OpenAPI document, every endpoint that names it among its answers:
POST /v1/station/coupons/redeemRedeem a coupon at the kiosk