GET
/
drivers
/
{driver}
/
transactions
curl --request GET \
  --url https://api.chargeapi.co/v1/drivers/{driver}/transactions \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "object": "list",
  "url": "<string>",
  "has_more": true,
  "data": [
    {
      "id": null,
      "object": null,
      "amount": null,
      "charging_session": null,
      "created": null,
      "currency": null,
      "description": null,
      "driver": null,
      "payment_method": null,
      "status": null,
      "type": null,
      "vehicle": null
    }
  ]
}

Path Parameters

driver
string
required

ID of the driver whose transactions you want to list.

Query Parameters

limit
integer

Maximum number of transactions to return (default 10).

Required range: 1 <= x <= 100
starting_after
string

Cursor for pagination; returns items after this transaction ID.

ending_before
string

Cursor for pagination; returns items before this transaction ID.

expand
string[]

Specifies related objects to expand in each transaction (for example, expand[]=charging_session).

Body

application/json · object

Response

200
application/json

A dictionary with a data property that contains an array of up to limit Transaction objects for the specified driver, starting after Transaction starting_after. Each entry in data is a separate Transaction object. If no additional transactions are available, the array is empty.

The response is of type object.