Skip to content

List Transactions

Retrieve a paginated list of transactions.

Endpoint

INFO

GET /api/v1/dashboard/transactions

Headers

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer {token}Yes

Query Parameters

ParameterTypeDefaultDescription
typestring-Filter: charge, refund, deposit
statusstring-Filter: pending, completed, failed
start_datedate-Filter from date
end_datedate-Filter to date
pageinteger1Page number
per_pageinteger15Items 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"
}

Daakey Car Sharing Platform