Global API
...
Request
Payment
Create
1min
the following is an example of create payment (see payment docid\ asrn2gzjqlqi 5jexdwaa for the available fields) the response will return the exact request data plus the new quickbooks payment id (id) and the newly created salesforce payment id (salesforceid) note you can only create one record at a time request // create a map to store all the data of a payment map\<string, object> paymentmap = new map\<string, object>(); paymentmap put('totalamt','100'); paymentmap put('displayname','breadwinner inc'); paymentmap put('customerref' , new map\<string, object>{'value' => '99'}); // initializing the requestjson data to be passed map\<string, object> requestjsonmap = new map\<string, object>(); requestjsonmap put('payments', new list\<object>{paymentmap}); string reqjson = json serialize(requestjsonmap); map\<string, object> reqobj = new map\<string, object>(); reqobj put('version', '1 0'); reqobj put('action', 'createpayment'); reqobj put('requestjson', reqjson); //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=createpayment, responsejson={ "statuscode" 200, "payments" \[ { "unappliedamt" 100 00, "txndate" "2022 08 22", "totalamt" 100 00, "synctoken" "0", "sparse"\ false, "metadata" { "lastupdatedtime" "2022 08 22t03 41 03 07 00", "createtime" "2022 08 22t03 41 03 07 00" }, "line" \[ ], "id" "420", "deposittoaccountref" { "value" "4" }, "customerref" { "value" "99", "name" "invoice august acc" }, "currencyref" { "value" "usd", "name" "united states dollar" } } ] }, timestamp=1661164863899, validrequest=true, version=1 0 } do you need to link this payment to an invoice? see applying payment to an invoice docid 7lqj9mhnluvif0yjsmwdc