Transactions
Execute A Transaction
code examples curl location 'https //api mpay com au/financial/v2/transaction/execute' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{"body" {"mwallet" {"feedetail" {}},"directdebit" {"feedetail" {}},"maccount" {"feedetail" {}}}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "mwallet" { "feedetail" {} }, "directdebit" { "feedetail" {} }, "maccount" { "feedetail" {} } } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api mpay com au/financial/v2/transaction/execute", 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/v2/transaction/execute") 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" { "mwallet" { "feedetail" {} }, "directdebit" { "feedetail" {} }, "maccount" { "feedetail" {} } } }) response = https request(request) puts response read body import requests import json url = "https //api mpay com au/financial/v2/transaction/execute" payload = json dumps({ "body" { "mwallet" { "feedetail" {} }, "directdebit" { "feedetail" {} }, "maccount" { "feedetail" {} } } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successful validation { "expecteddateforclearedfunds" "", "durationms" "", "feeamountincludinggst" "", "feeamountexcludinggst" "", "transactionid" "", "calleruniquereference" "", "statusdescription" "", "feeamountgstcomponent" "", "status" "" }