Allows you to retrieve any credit notes

GET {{baseUrl}}/CreditNotes?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 credit notes will be returned in a single API call with line items shown for each credit note
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;306379b0-3d75-4c77-953a-be08fa0efae8&quot;,&quot;Status&quot;:&quot;OK&quot;,&quot;ProviderName&quot;:&quot;Provider Name Example&quot;,&quot;DateTimeUTC&quot;:&quot;/Date(1551812506620)/&quot;,&quot;CreditNotes&quot;:[{&quot;CreditNoteID&quot;:&quot;249f15fa-f2a7-4acc-8769-0984103f2225&quot;,&quot;CreditNoteNumber&quot;:&quot;CN-0005&quot;,&quot;Payments&quot;:[{&quot;PaymentID&quot;:&quot;6b037c9b-2e5d-4905-84d3-eabfb3438242&quot;,&quot;Date&quot;:&quot;/Date(1552521600000+0000)/&quot;,&quot;Amount&quot;:2.0,&quot;Reference&quot;:&quot;Too much&quot;,&quot;CurrencyRate&quot;:1.0,&quot;HasAccount&quot;:false,&quot;HasValidationErrors&quot;:false}],&quot;ID&quot;:&quot;249f15fa-f2a7-4acc-8769-0984103f2225&quot;,&quot;CurrencyRate&quot;:1.0,&quot;Type&quot;:&quot;ACCRECCREDIT&quot;,&quot;Reference&quot;:&quot;US Tour&quot;,&quot;RemainingCredit&quot;:32.5,&quot;Allocations&quot;:[],&quot;HasAttachments&quot;:true,&quot;Contact&quot;:{&quot;ContactID&quot;:&quot;430fa14a-f945-44d3-9f97-5df5e28441b8&quot;,&quot;Name&quot;:&quot;Liam Gallagher&quot;,&quot;Addresses&quot;:[],&quot;Phones&quot;:[],&quot;ContactGroups&quot;:[],&quot;ContactPersons&quot;:[],&quot;HasValidationErrors&quot;:false},&quot;DateString&quot;:&quot;2019-03-05T00:00:00&quot;,&quot;Date&quot;:&quot;/Date(1551744000000+0000)/&quot;,&quot;Status&quot;:&quot;AUTHORISED&quot;,&quot;LineAmountTypes&quot;:&quot;Exclusive&quot;,&quot;LineItems&quot;:[],&quot;SubTotal&quot;:30.0,&quot;TotalTax&quot;:4.5,&quot;Total&quot;:34.5,&quot;UpdatedDateUTC&quot;:&quot;/Date(1551812346157+0000)/&quot;,&quot;CurrencyCode&quot;:&quot;NZD&quot;},{&quot;CreditNoteID&quot;:&quot;f8021bd2-9a6a-4c19-8477-163da0b9290f&quot;,&quot;CreditNoteNumber&quot;:&quot;&quot;,&quot;Payments&quot;:[],&quot;ID&quot;:&quot;f8021bd2-9a6a-4c19-8477-163da0b9290f&quot;,&quot;CurrencyRate&quot;:1.0,&quot;Type&quot;:&quot;ACCPAYCREDIT&quot;,&quot;Reference&quot;:&quot;&quot;,&quot;RemainingCredit&quot;:46.0,&quot;Allocations&quot;:[],&quot;HasAttachments&quot;:false,&quot;Contact&quot;:{&quot;ContactID&quot;:&quot;430fa14a-f945-44d3-9f97-5df5e28441b8&quot;,&quot;Name&quot;:&quot;Liam Gallagher&quot;,&quot;Addresses&quot;:[],&quot;Phones&quot;:[],&quot;ContactGroups&quot;:[],&quot;ContactPersons&quot;:[],&quot;HasValidationErrors&quot;:false},&quot;DateString&quot;:&quot;2019-01-05T00:00:00&quot;,&quot;Date&quot;:&quot;/Date(1546646400000+0000)/&quot;,&quot;Status&quot;:&quot;DRAFT&quot;,&quot;LineAmountTypes&quot;:&quot;Exclusive&quot;,&quot;LineItems&quot;:[],&quot;SubTotal&quot;:40.0,&quot;TotalTax&quot;:6.0,&quot;Total&quot;:46.0,&quot;UpdatedDateUTC&quot;:&quot;/Date(1551812506153+0000)/&quot;,&quot;CurrencyCode&quot;:&quot;NZD&quot;}]}