List Transactions
Retrieve a paginated list of transactions.
Endpoint
INFO
GET /api/v1/dashboard/transactions
Headers
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer {token} | Yes |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
type | string | - | Filter: charge, refund, deposit |
status | string | - | Filter: pending, completed, failed |
start_date | date | - | Filter from date |
end_date | date | - | Filter to date |
page | integer | 1 | Page number |
per_page | integer | 15 | Items per page |
Example Request
bash
curl -X GET "https://api.daakey.com/api/v1/dashboard/transactions?status=completed" \
-H "Accept: application/json" \
-H "Authorization: Bearer {token}"Response
Success (200)
json
{
"success": true,
"message": "Transactions retrieved",
"data": [
{
"id": 100,
"type": "charge",
"amount": 132.00,
"currency": "USD",
"status": "completed",
"client": {
"id": 1,
"name": "John Doe"
},
"booking": {
"id": 50,
"reference": "BK-2024-00050"
},
"payment_method": {
"brand": "visa",
"last_four": "4242"
},
"stripe_id": "pi_xxxxx",
"created_at": "2024-01-15T10:00:00Z"
}
],
"meta": {
"current_page": 1,
"last_page": 20,
"per_page": 15,
"total": 300,
"summary": {
"total_charges": 50000.00,
"total_refunds": 2000.00,
"net": 48000.00
}
},
"request_id": "uuid",
"timestamp": "2024-01-01T00:00:00.000Z"
}