invalid_request
The request could not be read.
| HTTP status | type | Retry the same request? |
|---|---|---|
| 400 | invalid_request_error | after 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
{
"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"
}
}