API Endpoints
Transfers
Initiate transfer
1 min
code examples curl location '/client/v1/transfer' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{"body" {"reference" "string","account number" "string","bank code" "string","amount" 0,"currency" "string"}}'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "body" { "reference" "string", "account number" "string", "bank code" "string", "amount" 0, "currency" "string" } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("/client/v1/transfer", 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("/client/v1/transfer") http = net http new(url host, url port); request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "body" { "reference" "string", "account number" "string", "bank code" "string", "amount" 0, "currency" "string" } }) response = http request(request) puts response read body import requests import json url = "/client/v1/transfer" payload = json dumps({ "body" { "reference" "string", "account number" "string", "bank code" "string", "amount" 0, "currency" "string" } }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // transfer initiated { "data" { "id" "" }, "message" "" }