Skip to content

invalid_request

A field or header is missing or malformed, a body or query ID has the wrong type, or the JSON body contains invalid UTF-8.

Updated

HTTP status 400. An API key request can get this code.

A field or header is missing or malformed, a body or query ID has the wrong type, or the JSON body contains invalid UTF-8.

Recovery

Encode JSON bodies as valid UTF-8. For schema validation, detail summarizes the first issue. Read issues. Each issue names the field in field and path; its message explains the expected type, allowed values, format or length/count limit without echoing your input. Order creation requires Idempotency-Key. A missing key returns 400 invalid_request. Idempotency-Key requires 1 to 255 printable ASCII characters without spaces. Correct the request and send it again.

Branch on code, not on the text of detail. Give Affinity the requestId when you report a problem.

All error codes

Send feedback

Don't include patient information.

Type to search…

↑↓ navigate ↵ select Esc close