ClavianAPI errors
All error codes

404 Not Found

No such discount code

Code
discount_code_unknown
Status
404 Not Found
Type
https://errors.clavian.io/discount-code-unknown

What it means

No discount code of this organisation matches what was entered.

What to do

Say the code was not recognised and let the person check it and type it again.

Example

The API answers with status 404 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-unknown",
  "title": "No such discount code",
  "status": 404,
  "code": "discount_code_unknown",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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