API Specification
Transactions
Update a beneficiary payment.
code examples curl location globoff request patch 'https //sand api monoova com/global/v1/transactions/{id}/payments/{payment id}' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "payment" { "beneficiary id" 0, "amount" "" } }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "payment" { "beneficiary id" 0, "amount" "" } }); var requestoptions = { method 'patch', headers myheaders, body raw, redirect 'follow' }; fetch("https //sand api monoova com/global/v1/transactions/{id}/payments/{payment 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}/payments/{payment 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({ "payment" { "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}/payments/{payment id}" payload = json dumps({ "payment" { "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 payment { "payment" { "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 // not found // invalid request { "errors" { "request field" \[ "" ] } }// internal server error