Global API
...
Request
Customer
Read
1min
the following is an example of read customer the quickbooks customer id (id) is required to read the customer request // 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); response { action=readcustomer, responsejson={ "statuscode" 200, "status" "ok", "customers" \[ { "webaddr" { "uri" "http //sportinggoods intuit com" }, "taxable" false, "synctoken" "0", "sparse" false, "shipaddr" { "postalcode" "94482", "longitude" " 122 0642815", "line1" "370 easy st ", "lat" "37 4031672", "id" "9", "countrysubdivisioncode" "ca", "city" "middlefield" }, "printoncheckname" "freeman sporting goods", "primaryphone" { "freeformnumber" "(650) 555 0987" }, "primaryemailaddr" { "address" "sporting goods\@intuit com" }, "preferreddeliverymethod" "print", "parentref" { "value" "7" }, "mobile" { "freeformnumber" "(973) 555 8849" }, "metadata" { "lastupdatedtime" "2021 11 01t06 14 57 07 00", "createtime" "2021 07 17t17 01 00 07 00" }, "job" true, "id" "9", "givenname" "amelia", "fullyqualifiedname" "freeman sporting goods 55 twin lane", "fax" { "freeformnumber" "(520) 555 7894" }, "displayname" "55 twin lane", "currencyref" { "value" "usd", "name" "united states dollar" }, "companyname" "freeman sporting goods", "billwithparent" false, "billaddr" { "postalcode" "94482", "longitude" " 122 0642815", "line1" "370 easy st ", "lat" "37 4031672", "id" "9", "countrysubdivisioncode" "ca", "city" "middlefield" }, "balancewithjobs" "131 00", "balance" "131 00", "active" "true" } ] }, timestamp=1635779152131, validrequest=true, version=1 0 }