Accounting
Creates an attachment for a specific bank transaction by filename
put/BankTransactions/{BankTransactionID}/Attachments/{FileName}
Path parameters
BankTransactionIDstring uuid required
Xero generated unique identifier for a bank transaction
FileNamestring required
Name of the attachment
Headers
Idempotency-Keystring
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
Response
Success - return response of Attachments array of Attachment
Example response
{
"Attachments": [
{
"AttachmentID": "00000000-0000-0000-0000-000000000000",
"FileName": "xero-dev.jpg",
"Url": "https://api.xero.com/api.xro/2.0/Accounts/da962997-a8bd-4dff-9616-01cdc199283f/Attachments/sample5.jpg",
"MimeType": "image/jpg"
}
]
}