Get All Transactions API
Welcome to the documentation for the Get All Transactions API. This API allows users to retrieve a list of all transactions with pagination and sorting options.
Base URL
The base URL for this API is {baseURL}/v1/transaction/get_all_transaction
.
Endpoint
- Path:
/
- Method: GET
Query Parameters
limit
: The maximum number of transactions to retrieve per page.page
: The page number to retrieve.sort
: The sorting order for the transactions. Useasc
for ascending order anddesc
for descending order.
Authorization
Include the following Authorization header in your HTTP requests using a Bearer token:
Authorization: Bearer YOUR_ACCESS_TOKEN
Sample Request
curl -X GET '{baseURL}/v1/transaction/get_all_transaction?limit=1&page=1&sort=asc' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
-H 'accept: application/json' \
Sample 200 Response
{
"message": "Transactions fetched successful.",
"data": {
"transfers": [
{
"transfer_request_id": "123f5aad-f72b-4db0-95d2-c5ca2ba49645",
"account_id": "65c39cd78751f99773e06896",
"narration": "string",
"amount": "20000",
"organization_id": "65b36ac83a9d4b54811bfc05",
"transaction_reference": "J0LJ6S0SD8HD",
"destination_bank_code": "056",
"destination_account_name": "prince",
"destination_account_type": "savings",
"destination_bank_name": "GTB",
"destination_account_number": "0354882788",
"originating_account_number": "00510011011003213",
"originating_account_name": "Jolaoso",
"transfer_type": "inter",
"provider_id": "64dfdf50c013a4fc3828678a",
"session_id": "1234566",
"provider_response_id": null,
"transfer_status_id": null,
"tsq_requery_count": 0,
"transfer_request_decision_id": null,
"mandate_rule_id": null,
"status": "failed",
"transfer_status": "failed",
"created_at": "2024-02-20T07:27:14.450Z",
"updated_at": "2024-02-20T07:27:15.362Z"
}
],
"meta": {
"total": 3,
"limit": 1,
"page": 1
}
},
"success": true
}