Global API
...
Request
Bill
Read
1min
the following is an example of read bill the quickbooks bill id (id) is required to read the bill request // create a map to store all the data of a bill map\<string, object> billmap = new map\<string, object>(); billmap put('id','629'); //required, if quickbooks multi org is enabled in breadwinner 	 billmap put('qborgid','4620816365285051610'); 	 	 // initializing the request data to be passed map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'readbill'); reqobj put('options',billmap); // placing a request to breadwinner global api map\<string, object> respmap = breadwinner qbo breadwinnerqbapi call(reqobj); system debug('respmap=>'+respmap); response { action=readbill, timestamp=1713343884606, validrequest=true, version=1 0, responsejson={ "statuscode" 200, "status" "ok", "bill" \[ { "vendorref" { "value" "296", "name" "account" }, "txndate" "2024 04 17", "totalamt" 100000 00, "synctoken" "0", "sparse"\ false, "metadata" { "lastupdatedtime" "2024 04 17t01 50 41 07 00", "createtime" "2024 04 17t01 50 41 07 00" }, "line" \[ { "linenum" 1, "itembasedexpenselinedetail" { "unitprice" 100000, "taxcoderef" { "value" "non" }, "qty" 1, "itemref" { "value" "70", "name" "genwatt diesel 1000kw" }, "billablestatus" "notbillable" }, "id" "1", "detailtype" "itembasedexpenselinedetail", "amount" 100000 00 } ], "id" "629", "duedate" "2024 04 17", "currencyref" { "value" "usd", "name" "united states dollar" }, "balance" 100000 00, "apaccountref" { "value" "33", "name" "accounts payable (a/p)" } } ] } }