Skip to content

Instantly share code, notes, and snippets.

GIVES 401: "GET /api.xro/2.0/Journals?pageOffset=1&paymentsOnly=false HTTP/1.1\r\nxero-tenant-id: <hidden>\r\n
If-Modified-Since: 1970-01-01T00:00:00.000Z\r\nAuthorization: Bearer <hidden>\r\nhost: api.xero.com\r\n
accept: application/json\r\nConnection: close\r\n\r\n'"
WORKS PERFECTLY: "GET /api.xro/2.0/Invoices?page=1&includeArchived=true HTTP/1.1\r\nxero-tenant-id: <hidden>\r\n
If-Modified-Since: 1970-01-01T00:00:00.000Z\r\nAuthorization: Bearer <hidden>\r\nhost: api.xero.com\r\n
accept: application/json\r\nConnection: close\r\n\r\n',"