{ "operationId": "getReceipt", "method": "GET", "path": "/Receipts/{ReceiptID}", "summary": "Xero Retrieves a specific draft expense claim receipt by using a unique receipt Id", "requestExamples": [], "responseExamples": [ { "status": "200", "contentType": "application/json", "example": { "Id": "2c99af06-d278-4580-8c8c-463c806af5b6", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "/Date(1553800357225)/", "Receipts": [ { "ReceiptID": "a44fd147-af4e-4fe8-a09a-55332df74162", "ReceiptNumber": 1, "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(1553672800957+0000)/", "ContactGroups": [], "DefaultCurrency": "NZD", "ContactPersons": [], "HasValidationErrors": false }, "Date": "/Date(1552435200000+0000)/", "UpdatedDateUTC": "/Date(1552524583983+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, "DiscountEnteredAsPercent": true } ], "SubTotal": 40.0, "TotalTax": 0.0, "Total": 40.0, "ID": "a44fd147-af4e-4fe8-a09a-55332df74162", "HasAttachments": true, "Attachments": [ { "AttachmentID": "e02a84f6-b83a-4983-b3b9-35cd8880c7bc", "FileName": "HelloWorld.jpg", "Url": "https://api.xero.com/api.xro/2.0/receipts/a44fd147-af4e-4fe8-a09a-55332df74162/Attachments/HelloWorld.jpg", "MimeType": "image/jpg", "ContentLength": 2878711 }, { "AttachmentID": "3451e34c-66a6-42b0-91e2-88618bdc169b", "FileName": "foobar.jpg", "Url": "https://api.xero.com/api.xro/2.0/receipts/a44fd147-af4e-4fe8-a09a-55332df74162/Attachments/foobar.jpg", "MimeType": "image/jpg", "ContentLength": 2878711 } ] } ] } } ] }