Global API
...
Request
Item
Read
1min
you can read all items from xero without passing any filters however, to retrieve specific records based on any filter conditions, you can add the following filters as "queryparameters" as shown in the below example param name type description order string order by any element returned where string filter by using the where parameter we recommend you limit filtering to the optimised elements https //developer xero com/documentation/api/accounting/payments#get payments only order status authorised, deleted request // create a map to store all the data of a item map\<string, object> itemmap = new map\<string, object>(); itemmap put('where', 'code="item 0001"'); // initializing the request data to be passed map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'readitem'); reqobj put('queryparameters', itemmap); //required, if xero multi org is enabled in breadwinner reqobj put('xeroorgid', '!14kpg'); // placing a request to breadwinner global api map\<string, object> respmap = bread winner breadwinnerxeroapi call(reqobj); system debug(respmap); response { action=readitem, responsejson={ "items" \[ { "salesdetails" { "unitprice" 210 0000, "taxtype" "output", "accountcode" "260" }, "purchasedetails" { "unitprice" 100 0000, "taxtype" "input", "accountcode" null }, "purchasedescription" "test item purchase enabled", "name" "test inventory item", "itemid" "121b9c03 e7d8 4d94 8da6 41a9530876ed", "istrackedasinventory" true, "issold" true, "ispurchased" true, "description" "test sell item", "code" "item 0001" } ], "errors" \[ ], "statuscode" 200 }, timestamp=1659445581014, validrequest=true, version=1 0 }