Read
1 min
To read an Item, please pass the QuickBooks Item Id (Reference Id). The QuickBooks item Id is required to read the item. The following is an example of read Item.
// Create a Map to store all the data of an Item
Map<String, Object> itemMap = new Map<String, Object>();
itemMap.put('Id','6');
// 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('options',itemMap);
//Required, if QuickBooks Multi-Org is enabled in Breadwinner.
reqObj.put('qbOrgId', '4620816365285051610');
// Placing a request to Breadwinner Global API
Map<String, Object> respMap = breadwinner_qbo.BreadwinnerQBAPI.call(reqObj);
System.debug(respMap);