Global API
...
Request
Vendor
Update
1min
the following is an example of update vendor the quickbooks customer id (id) is required to update the vendor (see vendor docid\ z5fqtvgthwygqeejrq2mi for the available fields) note you can only update one record at a time when you want to update specific fields of an entity without affecting others, use a sparse update operation by setting sparse= 'true' in your request this approach is more efficient and less prone to unintended changes than a full update request // create a map to store all the data of a vendor map\<string, object> vendormap = new map\<string, object>(); vendormap put('displayname','lap care match'); 	vendormap put('id','101'); 	vendormap put('synctoken','0'); // initializing the requestjson data to be passed map\<string, object> requestjsonmap = new map\<string, object>(); requestjsonmap put('vendors', new list\<object>{vendormap}); string reqjson = json serialize(requestjsonmap); map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'updatevendor'); reqobj put('requestjson', reqjson); //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=updatevendor, responsejson={ "vendors" \[ { "synctoken" "1", "sparse" false, "sfrecordid" "a085j000002d1utaas", "printoncheckname" "lap care match", "metadata" { "lastupdatedtime" "2021 11 01t00 36 54 07 00", "createtime" "2021 11 01t00 31 59 07 00" }, "id" "101", "displayname" "lap care match", "currencyref" { "value" "usd", "name" "united states dollar" }, "balance" "0", "active" "true" } ], "statuscode" 200 }, timestamp=1635752214968, validrequest=true, version=1 0 }