I am trying to upload an attachment to an existing invoice on Xero. My workflow can successfully create the invoice, but when I try and upload an attachment to the invoice my node just hangs.
The issue is likely with how you’re sending the attachment to the Xero API. You’re using an HTTP Request node and setting the `Content-Type` header to `application/pdf`, which is correct. However, make sure the `data` field in the HTTP Request node contains the actual binary data of the PDF file.
You’ll also need to ensure your Xero OAuth2 credentials have the correct scopes, specifically the `accounting` scope, as mentioned in the forum. Double-check your Xero app configuration to confirm the scope is enabled.
thanks, I have check permissions and everything seems in order. The strange thing, is in Xero history I can actually see the response as being succesfull, but in n8n it errors and the attachment is n’t uploaded.