{ "operationId": "updatePurchaseOrder", "method": "POST", "path": "/PurchaseOrders/{PurchaseOrderID}", "summary": "Xero Updates a specific purchase order", "requestExamples": [ { "contentType": "application/json", "example": { "PurchaseOrders": [ { "AttentionTo": "Peter Parker", "LineItems": [], "Contact": {} } ] } } ], "responseExamples": [ { "status": "200", "contentType": "application/json", "example": { "Id": "0e9bb3f8-d68b-4bb2-a54d-7da240a4f51a", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "/Date(1552523976885)/", "PurchaseOrders": [ { "PurchaseOrderID": "f9fc1120-c937-489e-84bc-e822190cfe9c", "PurchaseOrderNumber": "PO-0005", "DateString": "2019-03-13 00:00:00", "Date": "/Date(1552435200000+0000)/", "AttentionTo": "Jimmy", "HasErrors": false, "IsDiscounted": false, "TotalDiscount": 0.0, "SentToContact": false, "Type": "PURCHASEORDER", "CurrencyRate": 1.0, "CurrencyCode": "NZD", "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8", "ContactStatus": "ACTIVE", "Name": "Liam Gallagher", "FirstName": "Liam", "LastName": "Gallagher", "EmailAddress": "liam@rockstar.com", "BankAccountDetails": "", "Addresses": [ null, { "AddressType": "POBOX", "City": "Anytown", "Region": "NY", "PostalCode": "10101", "Country": "USA", "AttentionTo": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "222-2222", "PhoneAreaCode": "212", "PhoneCountryCode": "" }, null, { "PhoneType": "FAX", "PhoneNumber": "333-2233", "PhoneAreaCode": "212", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "444-3433", "PhoneAreaCode": "212", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "/Date(1551747281053+0000)/", "ContactGroups": [ { "ContactGroupID": "17b44ed7-4389-4162-91cb-3dd5766e4e22", "Name": "Oasis", "Status": "ACTIVE", "Contacts": [], "HasValidationErrors": false } ], "IsSupplier": true, "IsCustomer": true, "SalesTrackingCategories": [], "PurchasesTrackingCategories": [], "ContactPersons": [], "HasValidationErrors": false }, "Status": "DRAFT", "LineAmountTypes": "Exclusive", "LineItems": [ { "Description": "Foobar", "UnitAmount": 20.0, "TaxType": "INPUT2", "TaxAmount": 3.0, "LineAmount": 20.0, "AccountCode": "710", "Tracking": [], "Quantity": 1.0, "LineItemID": "d1d9b2cd-c9f2-4445-8d98-0b8096cf4dae" } ], "SubTotal": 20.0, "TotalTax": 3.0, "Total": 23.0, "UpdatedDateUTC": "/Date(1552523976853+0000)/" } ] } } ] }