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 '{"body" {"paymentsource" {},"disbursement" {"iftiinformation" {"chargebearer" "string","creditoraddress" {},"initiatingpartyinformation" {"address" {},"contactdetails" {},"dateplaceofbirth" {}},"instructedamount" {"amount" "string","currency" "string"},"instructionidentification" "string","previousinstructingagent" {},"regulatoryreporting" \[],"remittanceinformationstructured" {"creditorreferenceinformation" {},"garnishmentremittance" {"garnishee" {"address" {},"contactdetails" {},"dateplaceofbirth" {}},"garnishmentadministrator" {"address" {},"contactdetails" {},"dateplaceofbirth" {}},"remittedamount" {"amount" "string","currency" "string"}},"invoicee" {"address" {},"contactdetails" {},"dateplaceofbirth" {}},"invoicer" {"address" {},"contactdetails" {},"dateplaceofbirth" {}},"referreddocumentamount" {"creditnoteamount" {"amount" "string","currency" "string"},"duepayableamount" {"amount" "string","currency" "string"},"remittedamount" {"amount" "string","currency" "string"}},"taxremittance" {"creditor" {},"debtor" {},"totaltaxamount" {"amount" "string","currency" "string"},"totaltaxablebaseamount" {"amount" "string","currency" "string"},"ultimatedebtor" {}}},"ultimatecreditorinformation" {"address" {},"contactdetails" {},"dateplaceofbirth" {}},"ultimatedebtorinformation" {"address" {},"contactdetails" {},"dateplaceofbirth" {}}}}}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "paymentsource" {}, "disbursement" { "iftiinformation" { "chargebearer" "string", "creditoraddress" {}, "initiatingpartyinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "instructedamount" { "amount" "string", "currency" "string" }, "instructionidentification" "string", "previousinstructingagent" {}, "regulatoryreporting" \[], "remittanceinformationstructured" { "creditorreferenceinformation" {}, "garnishmentremittance" { "garnishee" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "garnishmentadministrator" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "remittedamount" { "amount" "string", "currency" "string" } }, "invoicee" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "invoicer" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "referreddocumentamount" { "creditnoteamount" { "amount" "string", "currency" "string" }, "duepayableamount" { "amount" "string", "currency" "string" }, "remittedamount" { "amount" "string", "currency" "string" } }, "taxremittance" { "creditor" {}, "debtor" {}, "totaltaxamount" { "amount" "string", "currency" "string" }, "totaltaxablebaseamount" { "amount" "string", "currency" "string" }, "ultimatedebtor" {} } }, "ultimatecreditorinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "ultimatedebtorinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} } } } } }); 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({ "body" { "paymentsource" {}, "disbursement" { "iftiinformation" { "chargebearer" "string", "creditoraddress" {}, "initiatingpartyinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "instructedamount" { "amount" "string", "currency" "string" }, "instructionidentification" "string", "previousinstructingagent" {}, "regulatoryreporting" \[], "remittanceinformationstructured" { "creditorreferenceinformation" {}, "garnishmentremittance" { "garnishee" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "garnishmentadministrator" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "remittedamount" { "amount" "string", "currency" "string" } }, "invoicee" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "invoicer" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "referreddocumentamount" { "creditnoteamount" { "amount" "string", "currency" "string" }, "duepayableamount" { "amount" "string", "currency" "string" }, "remittedamount" { "amount" "string", "currency" "string" } }, "taxremittance" { "creditor" {}, "debtor" {}, "totaltaxamount" { "amount" "string", "currency" "string" }, "totaltaxablebaseamount" { "amount" "string", "currency" "string" }, "ultimatedebtor" {} } }, "ultimatecreditorinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "ultimatedebtorinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} } } } } }) 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({ "body" { "paymentsource" {}, "disbursement" { "iftiinformation" { "chargebearer" "string", "creditoraddress" {}, "initiatingpartyinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "instructedamount" { "amount" "string", "currency" "string" }, "instructionidentification" "string", "previousinstructingagent" {}, "regulatoryreporting" \[], "remittanceinformationstructured" { "creditorreferenceinformation" {}, "garnishmentremittance" { "garnishee" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "garnishmentadministrator" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "remittedamount" { "amount" "string", "currency" "string" } }, "invoicee" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "invoicer" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "referreddocumentamount" { "creditnoteamount" { "amount" "string", "currency" "string" }, "duepayableamount" { "amount" "string", "currency" "string" }, "remittedamount" { "amount" "string", "currency" "string" } }, "taxremittance" { "creditor" {}, "debtor" {}, "totaltaxamount" { "amount" "string", "currency" "string" }, "totaltaxablebaseamount" { "amount" "string", "currency" "string" }, "ultimatedebtor" {} } }, "ultimatecreditorinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} }, "ultimatedebtorinformation" { "address" {}, "contactdetails" {}, "dateplaceofbirth" {} } } } } }) 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" "" }