PayTo
Payment Agreement
Get Payment Agreements by Date Range
code examples curl location 'https //sand api monoova com/au/payto/pam v1/paymentagreement' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var options = new restclientoptions("https //sand api monoova com") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/au/payto/pam v1/paymentagreement", method get); request addheader("accept", "application/json"); request addheader("content type", "application/json"); restresponse response = await client executeasync(request); console writeline(response content);var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //sand api monoova com/au/payto/pam v1/paymentagreement", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //sand api monoova com/au/payto/pam v1/paymentagreement', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // ok { "traceid" "", "paymentagreementdetails" \[ { "createddatetime" "", "lastmodifieddatetime" "", "paymentagreementuid" "", "mmsid" "", "registrationdatetime" "", "paymentagreementstatus" "", "statusreasoncode" "", "statusreasondescription" "", "payeedetails" { "payeetype" "", "payeelinkedbsb" "", "payeelinkedaccount" "", "payeelinkedpayid" "", "payeelinkedpayidtype" "", "payeeaccountname" "", "ultimatepayee" "" }, "payerdetails" { "payertype" "", "linkedbsb" "", "linkedaccount" "", "linkedpayid" "", "linkedpayidtype" "", "payer" "", "ultimatepayer" "", "payerpartyreference" "" }, "paymentterms" { "numberoftransactionspermitted" "", "frequency" "", "pointintime" "", "amount" "", "maximumamount" "", "agreementtype" "" }, "paymentdetails" { "automaticrenewal" false, "description" "", "shortdescription" "", "purpose" "", "respondbytime" "", "startdate" "", "enddate" "" }, "scheduledetails" { "createddatetime" "", "lastmodifieddatetime" "", "scheduleid" "", "entityid" "", "entitytype" "", "startdate" "", "enddate" "", "executiontime" "", "frequency" "", "scheduledamount" "", "totalinstances" "", "totalamount" "", "lastexecutiondatetime" "", "nextexecutiondatetime" "", "status" "", "statusdescription" "", "statusreasoncode" "", "statusreasondescription" "", "paymentreference" "" } } ] }// bad request { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// forbidden { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// not found { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "" } ] }// internal server error // bad gateway // gateway timeout