Xero webhook "Response contained a body" during validation
Updated
Xero’s webhook check reports Response contained a body during the intent-to-receive test. Inspect the bytes your webhook endpoint returns.
Xero’s webhook check reports Response contained a body during the intent-to-receive test. Inspect the bytes your webhook endpoint returns.
| What we checked | Where |
|---|---|
| Xero webhook intent-to-receive rules | developer.xero.com |
| PHP report where echo put 200 in the body | stackoverflow.com |
| ASP.NET report of the same error | stackoverflow.com |
Check it yourself
- Return status 200 for a valid signature and status 401 for an invalid signature. Xero expects an empty response body, no cookies and a response within five seconds.
- If the PHP handler uses
echo 200orecho 401, replace that output withhttp_response_code(200)orhttp_response_code(401)as appropriate. - Check the response from the public endpoint. Confirm the HTTP status separately from the body, which must be empty.
Still failing?
Send the response status, headers without credentials and body length to money@iftodo.ai for a free first look. Leave out the webhook signing key.
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.