SDK you're using (please complete the following information):
- Xero.Api.SDK.Core v1.1.4
- Xero.NetStandard.Oauth2 v11.1.1
Describe the bug
Calling the Accounting Api's .CreateInvoiceAttachmentByFileNameAsync() method will fail if the filename contains a space.
Exception message:
Xero API error calling CreateInvoiceAttachmentByFileName: The resource you're looking for cannot be found.
Various special characters are mentioned in the docs as unusable, but spaces are not mentioned. I was able to upload the file via the UI Portal, but the same file would fail when using the API.
To Reproduce
- Instantiate Accounting API.
- Call .CreateInvoiceAttachmentByFileNameAsync() with a filename which contains a space
- Receive exception
Expected behavior
File should be uploaded to invoice as attachment