Accounting
Retrieves a specific attachment for a specific purchase order by filename
get/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}
Request
- Base URLhttps://api.xero.com/api.xro/2.0
- URLhttps://api.xero.com/api.xro/2.0/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}
- AuthOAuth 2Authorization code: https://login.xero.com/identity/connect/authorizeToken URL: https://identity.xero.com/connect/token scopes: accounting.attachments, accounting.attachments.read
Path parameters
PurchaseOrderIDstring uuid required
Unique identifier for an Purchase Order
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 Purchase Order as binary data
Changes
No recorded changes to this operation across all 62 revisions of this API.