Skip to content

Bad request

Problem type https://help.orderhi.com/partner-api/problems/bad-request
HTTP status 400

Meaning

The request could not be read because the body is not valid JSON or the wrong Content-Type was sent.

Typical causes

  • The body is empty, truncated or contains invalid JSON.
  • The Content-Type: application/json header is missing.
  • The body was encoded twice (JSON inside a JSON string).

How to fix it

  • Send valid JSON in UTF-8.
  • Set Content-Type: application/json.
  • Check the body with a JSON validator before sending.

Example response

The response has the content type application/problem+json.

{
  "type": "https://help.orderhi.com/partner-api/problems/bad-request",
  "title": "Bad request",
  "status": 400,
  "detail": "The request body is not valid JSON."
}

All problem types · Deutsche Version