ClavianAPI errors
All error codes

409 Conflict

Discount code not active

Code
discount_code_inactive
Status
409 Conflict
Type
https://errors.clavian.io/discount-code-inactive

What it means

The discount code exists but is switched off, or its validity window has not started yet.

What to do

Say the code cannot be used right now. Retrying the same code does not help.

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/discount-code-inactive",
  "title": "Discount code not active",
  "status": 409,
  "code": "discount_code_inactive",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

From the OpenAPI document, every endpoint that names it among its answers: