API Specification
Transactions
Update a transaction quote.
code examples curl location globoff request patch 'https //sand api monoova com/global/v1/transactions/{id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "transaction" { "payments" \[ { "beneficiary id" 0, "amount" "" } ] } }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "transaction" { "payments" \[ { "beneficiary id" 0, "amount" "" } ] } }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //sand api monoova com/global/v1/transactions/{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 //sand api monoova com/global/v1/transactions/{id}") https = net http new(url host, url port) https use ssl = true request = net http patch new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "transaction" { "payments" \[ { "beneficiary id" 0, "amount" "" } ] } }) response = https request(request) puts response read body import requests import json url = "https //sand api monoova com/global/v1/transactions/{id}" payload = json dumps({ "transaction" { "payments" \[ { "beneficiary id" 0, "amount" "" } ] } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("patch", url, headers=headers, data=payload) print(response text) responses // a transaction { "id" 0, "status" "", "status label" "", "base currency amount" "", "counter currency amount" "", "receipt amount" "", "receipt account" { "id" 0, "name" "", "receipt text" "", "bank account" { "bank name" "", "bank code" "", "branch code" "", "branch name" "", "account name" "", "account number" "", "local code" "", "international code" "", "pay id" "", "bsb" "" }, "currency" { "id" 0, "name" "", "currency code" "" } }, "fees" "", "exchange rate" "", "value date" "", "created date" "", "base currency" { "id" 0, "name" "", "currency code" "" }, "counter currency" { "id" 0, "name" "", "currency code" "" }, "payments" \[ { "id" 0, "status" "", "amount" "", "fee" "", "payment reference" "", "payment type" "", "beneficiary" { "id" 0, "status" "", "name" { "first name" "", "middle name" "", "last name" "" }, "country" { "id" 0, "name" "", "country code" "" }, "currency" { "id" 0, "name" "", "currency code" "" } }, "transaction reason" { "id" 0, "name" "", "user input required" false, "countries" \[ { "id" 0, "name" "", "country code" "" } ] }, "created date" "", "updated date" "" } ] }// unauthorized // forbidden // not found // invalid request { "errors" { "request field" \[ "" ] } }// internal server error