Global API
...
Request
Sales Receipt
Read
1 min
the following is an example of read sales receipt the quickbooks sales receipt id (id) is required to read the sales receipt request // create a map to store all the data of a sales receipt map\<string, object> salesreceiptmap = new map\<string, object>(); salesreceiptmap put('id','11'); // initializing the request data to be passed map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'readsalesreceipt'); reqobj put('options',salesreceiptmap); //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=readsalesreceipt, responsejson={ "statuscode" 200, "status" "ok", "salesreceipts" \[ { "txntaxdetail" { "totaltax" 0 }, "txndate" "2021 07 20", "totalamt" 337 50, "synctoken" "0", "sparse" false, "paymentrefnum" "10264", "paymentmethodref" { "value" "2", "name" "check" }, "metadata" { "lastupdatedtime" "2021 07 22t14 59 48 07 00", "createtime" "2021 07 22t14 59 48 07 00" }, "line" \[ { "salesitemlinedetail" { "unitprice" 75, "taxcoderef" { "value" "non" }, "qty" 4 5, "itemref" { "value" "4", "name" "design" } }, "linenum" 1, "id" "1", "detailtype" "salesitemlinedetail", "description" "custom design", "amount" 337 50 }, { "detailtype" "subtotallinedetail", "amount" 337 50 } ], "id" "11", "emailstatus" "notset", "docnumber" "1003", "deposittoaccountref" { "value" "35", "name" "checking" }, "customfield" \[ { "type" "stringtype", "name" "crew #", "definitionid" "1" } ], "customerref" { "value" "6", "name" "dylan sollfrank" }, "customermemo" { "value" "thank you for your business and have a great day!" }, "currencyref" { "value" "usd", "name" "united states dollar" }, "billaddr" { "longitude" "invalid", "line1" "dylan sollfrank", "lat" "invalid", "id" "49" }, "balance" 0 } ] }, timestamp=1635779867792, validrequest=true, version=1 0 }