curl --request GET \
--url https://i-pay.money/api/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--header 'Ipay-Payment-Type: <ipay-payment-type>' \
--header 'Ipay-Target-Environment: <ipay-target-environment>'const options = {
method: 'GET',
headers: {
'Content-Type': '<content-type>',
'Ipay-Target-Environment': '<ipay-target-environment>',
'Ipay-Payment-Type': '<ipay-payment-type>',
Authorization: 'Bearer <token>'
}
};
fetch('https://i-pay.money/api/v1/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://i-pay.money/api/v1/payments"
headers = {
"Content-Type": "<content-type>",
"Ipay-Target-Environment": "<ipay-target-environment>",
"Ipay-Payment-Type": "<ipay-payment-type>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://i-pay.money/api/v1/payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: <content-type>",
"Ipay-Payment-Type: <ipay-payment-type>",
"Ipay-Target-Environment: <ipay-target-environment>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://i-pay.money/api/v1/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Ipay-Target-Environment"] = '<ipay-target-environment>'
request["Ipay-Payment-Type"] = '<ipay-payment-type>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://i-pay.money/api/v1/payments")
.header("Content-Type", "<content-type>")
.header("Ipay-Target-Environment", "<ipay-target-environment>")
.header("Ipay-Payment-Type", "<ipay-payment-type>")
.header("Authorization", "Bearer <token>")
.asString();List transactions
List the account’s transactions with filters, for an overview or reconciliation.
curl --request GET \
--url https://i-pay.money/api/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: <content-type>' \
--header 'Ipay-Payment-Type: <ipay-payment-type>' \
--header 'Ipay-Target-Environment: <ipay-target-environment>'const options = {
method: 'GET',
headers: {
'Content-Type': '<content-type>',
'Ipay-Target-Environment': '<ipay-target-environment>',
'Ipay-Payment-Type': '<ipay-payment-type>',
Authorization: 'Bearer <token>'
}
};
fetch('https://i-pay.money/api/v1/payments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://i-pay.money/api/v1/payments"
headers = {
"Content-Type": "<content-type>",
"Ipay-Target-Environment": "<ipay-target-environment>",
"Ipay-Payment-Type": "<ipay-payment-type>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://i-pay.money/api/v1/payments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: <content-type>",
"Ipay-Payment-Type: <ipay-payment-type>",
"Ipay-Target-Environment: <ipay-target-environment>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://i-pay.money/api/v1/payments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = '<content-type>'
request["Ipay-Target-Environment"] = '<ipay-target-environment>'
request["Ipay-Payment-Type"] = '<ipay-payment-type>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.get("https://i-pay.money/api/v1/payments")
.header("Content-Type", "<content-type>")
.header("Ipay-Target-Environment", "<ipay-target-environment>")
.header("Ipay-Payment-Type", "<ipay-payment-type>")
.header("Authorization", "Bearer <token>")
.asString();transaction_id.
- Filters.
queryfilters on free text; the other parameters filter on an exact value or a date range. They all apply at the same time (logical AND), not as alternatives. The example only shows a subset: add or remove parameters as needed. - Displayed values. The values of
statusandpayment_method(see the payment methods) are formatted for display and do not match the machine values used by the other operations: do not compare them in your code, and only use this list for display or export. - Limits. No rate limit is documented: to be confirmed with support before heavy use. For real-time tracking of a given transaction, prefer webhooks over repeatedly polling this list.
Authorizations
Secret key of the Sandbox or Live account
Headers
Required by the API authentication, including on GET requests, even though they have no body.
"application/json"sandbox, live Payment method. POST /payments only supports mobile (mobile money). Other payment methods (bank card and other channels) are not used here: they are available through payment links (POST /external_payments). Full list: payment methods.
"mobile""mobile"
Query Parameters
initiated, pending, succeeded, failed, refunded x >= 1Response
List of transactions (raw JSON array, without a pagination envelope). The status and payment_method values are formatted for display (e.g. Succeeded, Airtel Ne) and not normalized: do not compare them with the status values used by the other operations.
"Succeeded"
Payment method used by the customer — see the list of payment methods.
"Airtel Ne"
