Read
1 min
The following is an example of read Customer. The QuickBooks customer Id (Id) is required to read the customer.
// Create a Map to store all the data of a Customer
Map<String, Object> customerMap = new Map<String, Object>();
customerMap.put('Id','9');
// Initializing the Request Data to be passed.
Map<String, Object> reqObj = new Map<String, Object>();
reqObj.put('version', '1.0');
reqObj.put('action', 'readCustomer');
reqObj.put('options',customerMap);
//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);