Retrieve User Transactions
GET /client/user-transactions/
Use the GET /client/user-transactions/
endpoint to retrieve a list of all transactions associated with the current user. The response includes details such as transaction amount, type, and reference information.
Parameters
This endpoint does not require any parameters.
Responses
200 OK
Description: Successfully retrieved a list of user transactions.
Example Response:
[
{
"id": 1,
"user_detail": "John Doe",
"amount": 150.75,
"reference": "TXN123456",
"transaction_type": "Debit",
"date_created": "2024-11-17T10:00:00Z",
"wallet": 1001
},
{
"id": 2,
"user_detail": "John Doe",
"amount": 300.00,
"reference": "TXN789012",
"transaction_type": "Credit",
"date_created": "2024-11-16T14:30:00Z",
"wallet": 1001
}
]
Response Model
id
integer
The unique transaction ID.
Read-only
user_detail
string
The name or details of the user.
Read-only
amount
number
The transaction amount.
Required
reference
string
The unique transaction reference.
Required, max: 255 chars
transaction_type
string
The type of transaction (e.g., Debit, Credit).
Required, max: 255 chars
date_created
string
The date and time the transaction was created.
Read-only
wallet
integer
The wallet associated with the transaction.
Required
Last updated