ClavianAPI errors
All error codes

422 Unprocessable Content

Enter only the last 4 digits

Code
card_number_refused
Status
422 Unprocessable Content
Type
https://errors.clavian.io/card-number-refused

What it means

The payment reference looks like a whole card number. Clavian never stores a card number: a reference holds at most the last 4 digits of the card.

What to do

Enter only the last 4 digits of the card (or the approval code on the card slip) and send the payment again.

Example

The API answers with status 422 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/card-number-refused",
  "title": "Enter only the last 4 digits",
  "status": 422,
  "code": "card_number_refused",
  "requestId": "req_01k5znw4hmfay8vvr14d2pf2db"
}

Endpoints that return it

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