← All error codes
invalid_grantHTTP 400Not retryable

invalid_grant

The authorization code is invalid, expired, already used, or does not match this request.

Stable URL: https://docs.statxe.com/api/errors/invalid_grant

How to resolve

  • Partner connect only: authorization codes are single use and expire after 10 minutes.
  • Send the same redirect_uri and external_account_id that started the authorization.
  • Restart the connect flow to get a fresh code.

Example response

{
  "ok": false,
  "error": {
    "code": "invalid_grant",
    "message": "The authorization code is invalid, expired, already used, or does not match this request.",
    "docs_url": "https://docs.statxe.com/api/errors/invalid_grant"
  },
  "meta": {
    "request_id": "req_example123"
  }
}

See also Errors & rate limits guide.