Global API
...
Request
Invoice
Read
1min
the following is an example of read invoice the quickbooks invoice id (id) is required to read the invoice request // create a map to store all the data of a invoice map\<string, object> invoicemap = new map\<string, object>(); invoicemap put('id','13'); // initializing the request data to be passed map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'readinvoice'); reqobj put('options',invoicemap); //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=readinvoice, responsejson={ "statuscode" 200, "status" "ok", "invoices" \[ { "txntaxdetail" { "totaltax" 0 }, "txndate" "2021 11 01", "totalamt" 100 00, "synctoken" "3", "sparse" false, "shipaddr" { "postalcode" "94482", "longitude" " 122 0642815", "line1" "370 easy st ", "lat" "37 4031672", "id" "9", "countrysubdivisioncode" "ca", "city" "middlefield" }, "metadata" { "lastupdatedtime" "2021 11 01t06 14 57 07 00", "createtime" "2021 07 22t15 05 48 07 00" }, "line" \[ { "salesitemlinedetail" { "unitprice" 50, "taxcoderef" { "value" "tax" }, "qty" 2, "itemref" { "value" "1", "name" "services" } }, "linenum" 1, "id" "3", "detailtype" "salesitemlinedetail", "description" "description updated", "amount" 100 00 }, { "detailtype" "subtotallinedetail", "amount" 100 00 } ], "id" "13", "emailstatus" "notset", "duedate" "2021 11 01", "docnumber" "1005", "customfield" \[ { "type" "stringtype", "name" "crew #", "definitionid" "1" } ], "customerref" { "value" "9", "name" "55 twin lane" }, "currencyref" { "value" "usd", "name" "united states dollar" }, "billaddr" { "postalcode" "94482", "longitude" " 122 0642815", "line1" "370 easy st ", "lat" "37 4031672", "id" "9", "countrysubdivisioncode" "ca", "city" "middlefield" }, "balance" 50 00, "allowonlinecreditcardpayment" false, "allowonlineachpayment" false } ] }, timestamp=1635779656984, validrequest=true, version=1 0 }