Skip to content

Xero API 500 "Internal Error" when a sync writes a record

Updated

Xero returns HTTP 500 Internal Error. If this was a write, check whether Xero saved the record before sending it again.

Xero returns HTTP 500 Internal Error. If this was a write, check whether Xero saved the record before sending it again.

What we checkedWhere
Xero Accounting API response codesdeveloper.xero.com
Xero idempotent requests and cached errorsdeveloper.xero.com
Xero support request correlation IDsdeveloper.xero.com
Xero developer platform statusstatus.developer.xero.com

Check it yourself

  • Check the Xero developer status page. Xero documents HTTP 500 as an unhandled API error and recommends contacting its API team if it persists.
  • For a failed write, use the relevant GET endpoint to check whether the record exists or the update went through before you resend it.
  • If the original request included an Idempotency-Key, Xero can return the same cached 500 when you resend it within the six-minute key window. A repeated error with that key is a reason to check the record with GET.
  • Save the HTTP method, endpoint, time and Xero-Correlation-Id from the response headers for the support request.

Still failing?

Send the redacted response and correlation ID to money@iftodo.ai for a free first look. Leave out authorization headers and invoice details.

Weekly sync checks for €29 a month

For one Shopify or Square to QuickBooks workflow, we check weekly exports for missing or duplicate records and email you when we find a mismatch. We run a sample first to see whether the two exports have matching references.

Ask for a sample check. We agree how to share exports before starting billing. Cancel by email before your next renewal.