Skip to content
Support

My request fails with validation_failed

Owner, AdminLast checked 25 November 20261 min readArticle ID: developers-validation-failed
On this page

A field is missing or wrong. The error says which one in error.fields.

What you see

422 with error.code of validation_failed:

{ "error": { "code": "validation_failed", "message": "The title field is required.", "fields": { "title": ["The title field is required."] } } }

error.fields lists the messages for each field. message is the first of them.

Why it happens

  1. A required field is missing.
  2. A filter value isn't valid.
  3. updated_since isn't a real date, such as 2026-02-30.
  4. cursor isn't one the API issued.
  5. A name you referenced doesn't exist.
  6. A visit time has no UTC offset.
  7. end_at isn't after start_at.
  8. A payment is more than what's due, or the invoice is a draft, void or cancelled.

How to fix it

  1. Add the missing field. For example, a job needs a title.
  2. Use an allowed status, and ids that are ULIDs.
  3. Send a valid ISO 8601 date or timestamp.
  4. Pass back meta.next_cursor exactly. Don't build one.
  5. A job status name must match one of the business's active statuses. See Change a job's status.
  6. Send 2026-12-01T09:00:00+11:00 or …Z.
  7. Fix the times.
  8. See Record a payment on an invoice.

Retrying the same request won't help. Fix the request. If you sent an Idempotency-Key, the refusal is stored, so send the corrected request with a new key. See What happens if I reuse an idempotency key with a different body?.

See API errors for every code.

In this section