unsupported_media_type
The endpoint does not accept that Content-Type.
| HTTP status | type | Retry the same request? |
|---|---|---|
| 415 | invalid_request_error | after a change |
Why it happens
The body was sent as form data or plain text.
What to do
Send Content-Type: application/json with a JSON body.
Example response
{
"error": {
"type": "invalid_request_error",
"code": "unsupported_media_type",
"message": "A human-readable explanation. Do not parse it.",
"doc_url": "https://docs.skanpay.website/errors/unsupported_media_type",
"request_id": "req_01J9Z3K8Q4W6XK2M7N5P0R3T8V"
}
}