Updates a specific purchase order
Path parameters
Unique identifier for an Purchase Order
Headers
This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
Request body
Example request
{
"PurchaseOrders": [
{
"Contact": {
"UpdatedDateUTC": "/Date(1573755038314)/",
"BrandingTheme": {
"CreatedDateUTC": "/Date(1573755038314)/"
},
"BatchPayments": {
"BankAccountNumber": "123-456-1111111",
"BankAccountName": "ACME Bank",
"Details": "Hello World",
"Code": "ABC",
"Reference": "Foobar"
},
"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"
}
]
},
"LineItems": [
{
"LineItemID": "00000000-0000-0000-0000-000000000000",
"AccountID": "00000000-0000-0000-0000-000000000000",
"Tracking": [
{
"TrackingCategoryID": "00000000-0000-0000-0000-000000000000",
"TrackingOptionID": "00000000-0000-0000-0000-000000000000",
"Name": "Region",
"Option": "North"
}
],
"RepeatingInvoiceID": "00000000-0000-0000-0000-000000000000"
}
],
"UpdatedDateUTC": "/Date(1573755038314)/",
"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"
}
]
}
]
}Response
Success - return response of type PurchaseOrder array for updated PurchaseOrder
Example response
{
"PurchaseOrders": [
{
"Contact": {
"UpdatedDateUTC": "/Date(1573755038314)/",
"BrandingTheme": {
"CreatedDateUTC": "/Date(1573755038314)/"
},
"BatchPayments": {
"BankAccountNumber": "123-456-1111111",
"BankAccountName": "ACME Bank",
"Details": "Hello World",
"Code": "ABC",
"Reference": "Foobar"
},
"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"
}
]
},
"LineItems": [
{
"LineItemID": "00000000-0000-0000-0000-000000000000",
"AccountID": "00000000-0000-0000-0000-000000000000",
"Tracking": [
{
"TrackingCategoryID": "00000000-0000-0000-0000-000000000000",
"TrackingOptionID": "00000000-0000-0000-0000-000000000000",
"Name": "Region",
"Option": "North"
}
],
"RepeatingInvoiceID": "00000000-0000-0000-0000-000000000000"
}
],
"UpdatedDateUTC": "/Date(1573755038314)/",
"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"
}
]
}
]
}Changes
Changed in 3 of the 61 revisions of this API.10
- ○
added the new optional request property
///new-optional-request-property
- ○
added the optional property
///to the response with the statusresponse-optional-property-added
- ○
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the new optional request property
////new-optional-request-property
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
added the optional property
////to the response with the statusresponse-optional-property-added
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
added the optional property
to the response with the statusresponse-optional-property-added
- ○