Allows you to retrieve any items
GET {{baseUrl}}/Items?where=<string>&order=<string>&unitdp=<integer>
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
where | string | Filter by an any element | |
order | string | Order by an any element | |
unitdp | string | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
If-Modified-Since | string | Only records created or modified since this timestamp will be returned | |
xero-tenant-id | string | (Required) Xero identifier for Tenant |
RESPONSES
status: OK
{"Id":"8487e8d7-5fb3-4f02-b949-dec8f1e38182","Status":"OK","ProviderName":"Provider Name Example","DateTimeUTC":"/Date(1552331874897)/","Items":[{"ItemID":"c8c54d65-f3f2-452d-926e-bf450b12fb07","Code":"123","Description":"Guitars Fender Strat","UpdatedDateUTC":"/Date(1551981476267+0000)/","PurchaseDetails":{},"SalesDetails":{"UnitPrice":5000.0,"AccountCode":"200","TaxType":"OUTPUT2"},"Name":"Guitars","IsTrackedAsInventory":false,"IsSold":true,"IsPurchased":false},{"ItemID":"a4544d51-48f6-441f-a623-99ecbced6ab7","Code":"abc65591","Description":"Barfoo","UpdatedDateUTC":"/Date(1552331873580+0000)/","PurchaseDetails":{},"SalesDetails":{},"Name":"Hello11350","IsTrackedAsInventory":false,"IsSold":true,"IsPurchased":true}]}