{ "operationId": "updateReceipt", "method": "POST", "path": "/Receipts/{ReceiptID}", "summary": "Xero Updates a specific draft expense claim receipts", "requestExamples": [ { "contentType": "application/json", "example": { "Receipts": [ { "Lineitems": [], "User": { "UserID": "00000000-0000-0000-0000-000000000000" }, "Reference": "Foobar" } ] } } ], "responseExamples": [ { "status": "200", "contentType": "application/json", "example": { "Id": "05b76bf7-4734-4633-a399-7d569a6a25c6", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "/Date(1552675557052)/", "Receipts": [ { "ReceiptID": "e3686fdc-c661-4581-b9df-cbb20782ea66", "ReceiptNumber": 2, "Status": "DRAFT", "User": { "UserID": "d1164823-0ac1-41ad-987b-b4e30fe0b273", "EmailAddress": "api@xero.com", "FirstName": "API ", "LastName": "Team", "UpdatedDateUTC": "/Date(1511957179217+0000)/", "IsSubscriber": true, "OrganisationRole": "FINANCIALADVISER" }, "Contact": { "ContactID": "430fa14a-f945-44d3-9f97-5df5e28441b8", "ContactStatus": "ACTIVE", "Name": "Liam Gallagher", "FirstName": "Liam", "LastName": "Gallagher", "EmailAddress": "liam@rockstar.com", "BankAccountDetails": "", "Addresses": [ { "AddressType": "STREET", "City": "", "Region": "", "PostalCode": "", "Country": "", "AttentionTo": "" }, { "AddressType": "POBOX", "City": "Anytown", "Region": "NY", "PostalCode": "10101", "Country": "USA", "AttentionTo": "" } ], "Phones": [ { "PhoneType": "DEFAULT", "PhoneNumber": "222-2222", "PhoneAreaCode": "212", "PhoneCountryCode": "" }, { "PhoneType": "DDI", "PhoneNumber": "", "PhoneAreaCode": "", "PhoneCountryCode": "" }, { "PhoneType": "FAX", "PhoneNumber": "333-2233", "PhoneAreaCode": "212", "PhoneCountryCode": "" }, { "PhoneType": "MOBILE", "PhoneNumber": "444-3433", "PhoneAreaCode": "212", "PhoneCountryCode": "" } ], "UpdatedDateUTC": "/Date(1551747281053+0000)/", "ContactGroups": [], "ContactPersons": [], "HasValidationErrors": false }, "Date": "/Date(1552694400000+0000)/", "UpdatedDateUTC": "/Date(1552675556927+0000)/", "Reference": "Foobar", "LineAmountTypes": "NoTax", "LineItems": [ { "Description": "Foobar", "UnitAmount": 20.0, "TaxType": "NONE", "TaxAmount": 0.0, "LineAmount": 40.0, "AccountCode": "400", "Tracking": [], "Quantity": 2.0 } ], "SubTotal": 40.0, "TotalTax": 0.0, "Total": 40.0, "ID": "e3686fdc-c661-4581-b9df-cbb20782ea66", "HasAttachments": false, "ValidationErrors": [] } ] } } ] }