API Endpoints
Transactions
List all transactions
1min
code examples curl location '/client/v1/transaction' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("/client/v1/transaction", 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/transaction") http = net http new(url host, url port); request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = http request(request) puts response read body import requests import json url = "/client/v1/transaction" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // transactions retrieved { "data" \[ { "id" "", "business id" "", "amount" 0, "exchange amount" 0, "exchange rate" "", "currency" "", "exchange currency" "", "fee amount" 0, "account number" "", "bank code" "", "bank name" "", "recipient name" "", "recipient phone" "", "recipient country" "", "type" "", "status" "", "service name" "", "narration" "", "created by" "", "created at" "", "completed at" "", "updated at" "" } ], "meta" { "total count" 0 }, "message" "" }