Accounting

Retrieves a specific attachment from a specific expense claim receipts by file name

get/Receipts/{ReceiptID}/Attachments/{FileName}

Request

  • Base URL
    https://api.xero.com/api.xro/2.0
  • URL
    https://api.xero.com/api.xro/2.0/Receipts/{ReceiptID}/Attachments/{FileName}
  • Auth
    OAuth 2
    Authorization code: https://login.xero.com/identity/connect/authorize
    Token URL: https://identity.xero.com/connect/token scopes: accounting.attachments, accounting.attachments.read

Path parameters

ReceiptIDstring uuid required

Unique identifier for a Receipt

FileNamestring required

Name of the attachment

Headers

contentTypestring required

The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf

Response

Success - return response of attachment for Receipt as binary data

Changes

No recorded changes to this operation across all 62 revisions of this API.