Allows you to retrieve prepayments

GET {{baseUrl}}/Prepayments?where=<string>&order=<string>&page=<integer>&unitdp=<integer>

Request Params

KeyDatatypeRequiredDescription
wherestringFilter by an any element
orderstringOrder by an any element
pagestringe.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
unitdpstringe.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

HEADERS

KeyDatatypeRequiredDescription
If-Modified-SincestringOnly records created or modified since this timestamp will be returned
xero-tenant-idstring(Required) Xero identifier for Tenant

RESPONSES

status: OK

{&quot;Id&quot;:&quot;d7a9ca0c-6159-4c26-ad2e-715440c50b7d&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1552489227595)/&quot;,&quot;Prepayments&quot;:[{&quot;PrepaymentID&quot;:&quot;ce0cddef-cf5a-4e59-b638-f225679115a7&quot;,&quot;ID&quot;:&quot;ce0cddef-cf5a-4e59-b638-f225679115a7&quot;,&quot;Type&quot;:&quot;RECEIVE-PREPAYMENT&quot;,&quot;Reference&quot;:&quot;INV-0011&quot;,&quot;RemainingCredit&quot;:3450.0,&quot;Allocations&quot;:[],&quot;Payments&quot;:[],&quot;HasAttachments&quot;:true,&quot;Contact&quot;:{&quot;ContactID&quot;:&quot;be392c72-c121-4f83-9512-03ac71e54c20&quot;,&quot;Name&quot;:&quot;Luke Skywalker&quot;,&quot;Addresses&quot;:[],&quot;Phones&quot;:[],&quot;ContactGroups&quot;:[],&quot;ContactPersons&quot;:[],&quot;HasValidationErrors&quot;:false},&quot;DateString&quot;:&quot;2019-03-13T00:00:00&quot;,&quot;Date&quot;:&quot;/Date(1552435200000+0000)/&quot;,&quot;Status&quot;:&quot;AUTHORISED&quot;,&quot;LineAmountTypes&quot;:&quot;Exclusive&quot;,&quot;LineItems&quot;:[],&quot;SubTotal&quot;:3000.0,&quot;TotalTax&quot;:450.0,&quot;Total&quot;:3450.0,&quot;UpdatedDateUTC&quot;:&quot;/Date(1552489187730+0000)/&quot;,&quot;CurrencyCode&quot;:&quot;NZD&quot;}]}