Get Payment Channels
GET
https://upesipay.com/api/v2/payment_channels
Retrieve all your payment channels
Headers
| Parameter | Type | Description |
|---|---|---|
Authorization* |
String | Basic auth token |
Content-Type* |
String | application/json |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
is_active |
boolean | Filter active or inactive channels (optional) |
Responses
200 OK
{
"payment_channels": [
{
"id": 26703032,
"transaction_type": "CustomerPayBillOnline",
"channel_type": "bank",
"account_id": 18563,
"short_code": "522522",
"account_number": "232323232",
"description": "PESA BANK",
"is_active": true,
"balance_plain": null,
"created_at": "2026-01-02T07:18:33.815944Z",
"updated_at": "2026-01-02T07:18:33.814576Z"
}
],
"pagination": {
"count": 1,
"next_page": null,
"num_pages": 1,
"page": 1,
"per": 20,
"prev_page": null
}
}
400 Bad Request
{
"error_message": "Invalid request"
}
Try It Out
Please set your authentication token in the sidebar to test this API.
Code Samples
curl -X GET \
'https://upesipay.com/api/v2/payment_channels?is_active=true' \
-H 'Content-Type: application/json'