Accounting
Retrieves specific attachment for a specific purchase order using a unique attachment Id
Changed onget/PurchaseOrders/{PurchaseOrderID}/Attachments/{AttachmentID}
Request
- Base URLhttps://api.xero.com/api.xro/2.0
- AuthOAuth 2Authorization codehttps://login.xero.com/identity/connect/authorizeToken URLhttps://identity.xero.com/connect/tokenScopesaccounting.attachments, accounting.attachments.read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
PurchaseOrderIDstring uuid required
Unique identifier for an Purchase Order
AttachmentIDstring uuid required
Unique identifier for Attachment object
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 Account as binary data
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking