NPP International Payments
Process a NPP IPS Transaction
code examples curl location 'https //api mpay com au/financial/v1/transaction/internationalpayment' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "disbursement" { "iftiinformation" { "chargebearer" "", "chargesinformation" \[ { "agentbic" "", "amount" { "amount" "", "currency" "" }, "currency" "" } ], "instructedamount" { "amount" "", "currency" "" }, "instructionidentification" "", "previousinstructingagent" {}, "regulatoryreporting" \[ { "details" \[ { "amount" { "amount" "", "currency" "" } } ] } ], "relatedremittanceinformation" \[ { "locationdetails" \[ { "method" "" } ] } ], "remittanceinformationstructured" { "garnishmentremittance" { "remittedamount" { "amount" "", "currency" "" } }, "referreddocumentamount" { "creditnoteamount" { "amount" "", "currency" "" }, "duepayableamount" { "amount" "", "currency" "" }, "remittedamount" { "amount" "", "currency" "" } }, "taxremittance" { "totaltaxamount" { "amount" "", "currency" "" }, "totaltaxablebaseamount" { "amount" "", "currency" "" } } } } } }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "disbursement" { "iftiinformation" { "chargebearer" "", "chargesinformation" \[ { "agentbic" "", "amount" { "amount" "", "currency" "" }, "currency" "" } ], "instructedamount" { "amount" "", "currency" "" }, "instructionidentification" "", "previousinstructingagent" {}, "regulatoryreporting" \[ { "details" \[ { "amount" { "amount" "", "currency" "" } } ] } ], "relatedremittanceinformation" \[ { "locationdetails" \[ { "method" "" } ] } ], "remittanceinformationstructured" { "garnishmentremittance" { "remittedamount" { "amount" "", "currency" "" } }, "referreddocumentamount" { "creditnoteamount" { "amount" "", "currency" "" }, "duepayableamount" { "amount" "", "currency" "" }, "remittedamount" { "amount" "", "currency" "" } }, "taxremittance" { "totaltaxamount" { "amount" "", "currency" "" }, "totaltaxablebaseamount" { "amount" "", "currency" "" } } } } } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api mpay com au/financial/v1/transaction/internationalpayment", 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 mpay com au/financial/v1/transaction/internationalpayment") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "disbursement" { "iftiinformation" { "chargebearer" "", "chargesinformation" \[ { "agentbic" "", "amount" { "amount" "", "currency" "" }, "currency" "" } ], "instructedamount" { "amount" "", "currency" "" }, "instructionidentification" "", "previousinstructingagent" {}, "regulatoryreporting" \[ { "details" \[ { "amount" { "amount" "", "currency" "" } } ] } ], "relatedremittanceinformation" \[ { "locationdetails" \[ { "method" "" } ] } ], "remittanceinformationstructured" { "garnishmentremittance" { "remittedamount" { "amount" "", "currency" "" } }, "referreddocumentamount" { "creditnoteamount" { "amount" "", "currency" "" }, "duepayableamount" { "amount" "", "currency" "" }, "remittedamount" { "amount" "", "currency" "" } }, "taxremittance" { "totaltaxamount" { "amount" "", "currency" "" }, "totaltaxablebaseamount" { "amount" "", "currency" "" } } } } } }) response = https request(request) puts response read body import requests import json url = "https //api mpay com au/financial/v1/transaction/internationalpayment" payload = json dumps({ "disbursement" { "iftiinformation" { "chargebearer" "", "chargesinformation" \[ { "agentbic" "", "amount" { "amount" "", "currency" "" }, "currency" "" } ], "instructedamount" { "amount" "", "currency" "" }, "instructionidentification" "", "previousinstructingagent" {}, "regulatoryreporting" \[ { "details" \[ { "amount" { "amount" "", "currency" "" } } ] } ], "relatedremittanceinformation" \[ { "locationdetails" \[ { "method" "" } ] } ], "remittanceinformationstructured" { "garnishmentremittance" { "remittedamount" { "amount" "", "currency" "" } }, "referreddocumentamount" { "creditnoteamount" { "amount" "", "currency" "" }, "duepayableamount" { "amount" "", "currency" "" }, "remittedamount" { "amount" "", "currency" "" } }, "taxremittance" { "totaltaxamount" { "amount" "", "currency" "" }, "totaltaxablebaseamount" { "amount" "", "currency" "" } } } } } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successful validation { "transactionid" "", "calleruniquereference" "", "durationms" "", "status" "", "statusdescription" "" }