NowgateDocs

unknown_field

The body contains a field this operation doesn't accept.

On this page

HTTP status: 400 Bad Request. Retrying the same request unchanged fails the same way.

Why it happens

  • A misspelled field, such as ammount.
  • A field from a response sent back in a request, such as status.

What to do

Remove the field. Unknown fields are rejected so a typo can't be silently ignored.

Example

The response is application/problem+json. Branch on code, never on title or detail. See errors for the format.

{
  "type": "https://docs.nowgate.io/errors/unknown_field",
  "title": "Bad Request",
  "status": 400,
  "detail": "What exactly was wrong, in a sentence.",
  "instance": "/v1/payments",
  "code": "unknown_field",
  "request_id": "req_01jc3xb1n6f0q2w8e4r7t5y9v3"
}