POST
/
transactions
curl --request POST \
  --url https://api.chargeapi.co/v1/transactions
{
  "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
}

Response

200 - application/json
A newly created transaction.

A Transaction represents a finalized financial event related to a charging session, such as a charge, refund, or adjustment. Transactions are linked to a driver, session, and payment method.

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