Skip to content
SkanPay Docs

invalid_request

The request could not be read.

HTTP statustypeRetry the same request?
400invalid_request_errorafter a change

Why it happens

Usually malformed JSON: a trailing comma, single quotes, or an unescaped character.

What to do

Serialise the body with your language's JSON encoder rather than building the string by hand.

Example response

400
{
  "error": {
    "type": "invalid_request_error",
    "code": "invalid_request",
    "message": "A human-readable explanation. Do not parse it.",
    "doc_url": "https://docs.skanpay.website/errors/invalid_request",
    "request_id": "req_01J9Z3K8Q4W6XK2M7N5P0R3T8V"
  }
}

All error codes