Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

Attachments uploaded to Xero via website cant be downloaded via API if they contain special chars

Started by Mark Hutton -   in API Endpoints

If a user uploads a file to Xero that contains certain special characters in the filename, e.g. ampersand or plus symbol (probably others too), then the file cannot be downloaded via the API (Invoices/INVGUID/Attachments/ATTACHMENTNAME) endpoint.

The response is either a signature error in the case of ampersand (&) in the filename or file not found in the case of plus (+) in the filename.

The attachment filename within the request is properly encoded so I'm not sure why this is occurring.

All other attachments without special characters in the filename are served as expected.