Global API
...
Request
Payment
Read
1min
the following is an example of read payment the quickbooks payment id (id) is required to read the payment request // create a map to store all the data of a payment map\<string, object> paymentmap = new map\<string, object>(); paymentmap put('id','379'); // initializing the request data to be passed map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'readpayment'); reqobj put('options',paymentmap); //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=readpayment, responsejson={ "statuscode" 200, "status" "ok", "payments" \[ { "unappliedamt" 0, "txndate" "2022 08 16", "totalamt" 75 00, "synctoken" "0", "sparse"\ false, "metadata" { "lastupdatedtime" "2022 08 16t00 01 25 07 00", "createtime" "2022 08 16t00 01 25 07 00" }, "line" \[ { "linkedtxn" \[ { "txntype" "invoice", "txnid" "378" } ], "amount" 75 00 } ], "id" "379", "deposittoaccountref" { "value" "4" }, "customerref" { "value" "103", "name" "payment sync test two" }, "currencyref" { "value" "usd", "name" "united states dollar" } } ] }, timestamp=1661170693445, validrequest=true, version=1 0 }