Global API
...
Request
Credit Memo
Read
1min
the following is an example of read credit memo the quickbooks credit memo id (id) is required to read the credit memo request // create a map to store all the data of a credit memo map\<string, object> creditmemomap = new map\<string, object>(); creditmemomap 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', 'readcreditmemo'); reqobj put('options',creditmemomap); //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=readcreditmemo, responsejson={ "statuscode" 200, "status" "ok", "creditmemos" \[ { "txntaxdetail" { "totaltax" 0 }, "txndate" "2021 07 08", "totalamt" 100 00, "synctoken" "1", "sparse" false, "shipaddr" { "postalcode" "94326", "longitude" "invalid", "line1" "4581 finch st ", "lat" "invalid", "id" "2", "countrysubdivisioncode" "ca", "city" "bayshore" }, "remainingcredit" 0, "metadata" { "lastupdatedtime" "2021 07 24t12 51 28 07 00", "createtime" "2021 07 24t12 51 27 07 00" }, "line" \[ { "salesitemlinedetail" { "unitprice" 100, "taxcoderef" { "value" "non" }, "qty" 1, "itemref" { "value" "10", "name" "pest control" } }, "linenum" 1, "id" "1", "detailtype" "salesitemlinedetail", "description" "pest control services", "amount" 100 00 }, { "detailtype" "subtotallinedetail", "amount" 100 00 } ], "id" "73", "emailstatus" "notset", "docnumber" "1026", "customfield" \[ { "type" "stringtype", "name" "crew #", "definitionid" "1" }, { "type" "stringtype", "name" "test 2", "definitionid" "2" }, { "type" "stringtype", "definitionid" "3" } ], "customerref" { "value" "1", "name" "amy's bird sanctuary" }, "customermemo" { "value" "thank you for your business and have a great day!" }, "currencyref" { "value" "usd", "name" "united states dollar" }, "billemail" { "address" "birds\@intuit com" }, "billaddr" { "longitude" "invalid", "line4" "bayshore, ca 94326", "line3" "4581 finch st ", "line2" "amy's bird sanctuary", "line1" "amy lauterbach", "lat" "invalid", "id" "79" }, "balance" 0 } ] }, timestamp=1640943095063, validrequest=true, version=1 0 }