Get Payment Link Details
code examples curl request get \\ \ url https //api pay monoova com/v1/web/payment links/{id} \\ \ header 'accept application/json'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 //api pay monoova com/v1/web/payment links/{id}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api pay monoova com/v1/web/payment links/{id}") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //api pay monoova com/v1/web/payment links/{id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // payment link found { "merchantreference" "ref 123456", "paymenturl" "https //payment example com/pay/ref 123456", "expiry" "2026 05 30t12 00 00z", "status" "active", "amount" 100 5, "currency" "aud", "narrative" "invoice", "paymenttimestamp" "", "additionalnotes" "", "paymentmethodused" "card", "payer" { "firstname" "john", "lastname" "doe", "emailaddress" "john\@example com" }, "branding" { "merchantname" "acme corp", "logo" "" }, "enabledpaymentmethods" \[ "" ], "payto" { "agreement" { "paymentagreementuid" "", "paymentterms" { "amount" 100, "maximumamount" 150, "numberoftransactionspermitted" 12, "frequency" "mnth", "pointintime" "endofmonth", "agreementtype" "vari" }, "paymentdetails" { "description" "monthly subscription", "shortdescription" "sub", "purpose" "retl", "startdate" "2026 05 01", "enddate" "2026 12 31", "automaticrenewal" true }, "action" { "actiontype" "", "message" "", "statuscode" 0 } }, "payeedetails" { "payeetype" "", "payeelinkedbsb" "012 345", "payeelinkedaccount" "123456789", "payeelinkedpayid" "+61 422020901", "payeelinkedpayidtype" "phonenumber", "payeeaccountname" "acme corp", "ultimatepayee" "acme corporation" }, "payment" { "paymentinitiationuid" "pls pi abc12345 1234567890", "action" { "statusreasoncode" "initiated", "statusreasondescription" "payment initiation successful" } } }, "paymentresult" { "transactionid" "txn 123456", "lastfour" "4242" } }// payment link not found // payment link has expired { "type" "https //tools ietf org/html/rfc7231#section 6 5 1", "title" "problem details", "status" 400, "detail" "bearer token is required " }