List Transactions

GET/api/v1/transaction

Returns paginated transactions for the authenticated business. Note: the route is registered with the singular transaction.

Query Parameters

NameTypeRequiredDescription
limitnumberNoDefault 20, maximum 100.
cursorstringNoPagination on created_at.
start_datestringNoFilter start.
end_datestringNoFilter end.
wallet_idstringNoFilter by wallet.
statusstringNo"pending", "successful", "failed", or "partial".
typestringNo"credit" or "debit".
categorystringNoe.g. "p2p", "bank-outflow", "pocket-inflow".
collapse_batchstringNoSet to "1" to merge batch rows for list display.
batch_transaction_idstringNoWhen combined with "get_batch_info=1", adds batch summary to the response.
get_batch_infostringNoSet to "1" to include "batchInfo" when a batch id is provided.
1
Request Example
(cURL)
curl -X GET "https://api.piggyvest.business/api/v1/transaction?limit=20" \
-H "Authorization: Bearer YOUR_SECRET_KEY"
2
Success Response(200)
(JSON)
{
"status": true,
"message": "Transactions fetched successfully",
"data": {
"edges": [],
"pageInfo": {
"hasNextPage": true,
"endCursor": "string | null",
"previousCursor": "string | null"
},
"batchInfo": {
"name": "string",
"total_amount": 0,
"total_split": 0,
"successful_split": 0,
"failed_split": 0,
"status": "string",
"type": "string"
}
}
}
Note: batchInfo only appears when batch_transaction_id and get_batch_info=1 are both provided. Each element of edges follows the transaction row schema below.

Transaction row schema (edges[] — core fields)

NameTypeDescription
idstringTransaction id.
amountnumberAmount in kobo.
typestring"credit" or "debit".
statusstring"pending", "successful", "failed", or "partial" (batch aggregates).
categorystringTransaction category.
descriptionstringNarration.
wallet_idstringWallet id.
wallet_typestringWallet type.
created_atstringTimestamp.
third_party_referencestringMerchant reference when set.
peer_reference_idstringP2P pairing reference when set.
batch_transaction_idstringBatch id when applicable.
batch_total_splitnumberWhen batch is collapsed in UI.
batch_successful_splitnumberWhen batch is collapsed.
failed_splitnumberWhen batch is collapsed.

Transaction status values

pendingStill processing.
successfulCompleted successfully.
failedTerminal failure.
partialBatch / split payment — not all legs succeeded (successful_split < total_split in batch context).