Skip to main content
GET
/
transactions
/
{transaction}
Retrieve transaction details
curl --request GET \
  --url https://api.chargeapi.co/v1/transactions/{transaction} \
  --header 'Content-Type: application/json' \
  --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

transaction
string
required

ID of the transaction to retrieve.

Query Parameters

expand
string[]

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

Body

application/json · object

Response

Returns the Transaction object for a valid identifier. Raises an error otherwise.

id
string

Unique identifier for the transaction object.

Example:

null

object
string

String representing the object’s type. Always transaction.

Example:

null

amount
integer

Total amount of the transaction in the smallest currency unit (e.g., cents).

Example:

null

charging_session
string

ID of the charging session associated with this transaction.

Example:

null

created
integer

Time at which the transaction was created.

Example:

null

currency
string

ISO 4217 currency code used for this transaction (e.g., usd).

Example:

null

description
string | null

Optional human-readable description of the transaction.

Example:

null

driver
string

ID of the driver associated with the transaction.

Example:

null

payment_method
string

ID of the payment method used for the transaction.

Example:

null

status
enum<string>

Current status of the transaction.

Available options:
succeeded,
failed,
pending
Example:

null

type
enum<string>

Type of financial event recorded (e.g., charge, refund).

Available options:
charge,
refund,
adjustment
Example:

null

vehicle
string

ID of the vehicle linked to the transaction.

Example:

null