xero
Installation
SKILL.md
Troubleshooting
If requests fail, run zero doctor check-connector --env-name XERO_TOKEN or zero doctor check-connector --url https://api.xero.com/Connections --method GET
Step 1: Get Tenant ID (Required First)
Every Xero API call needs a xero-tenant-id header. Get it from the connections endpoint:
curl -s "https://api.xero.com/Connections" \
--header "Authorization: Bearer $XERO_TOKEN" \
--header "Content-Type: application/json"
Response returns an array of connected orgs. Use the tenantId from the first (or desired) entry: