Skip to main content

A Payment Method object represents a saved way to pay for charging sessions, such as a credit card. It can be attached to a driver, a fleet, or an account and is used during session billing or reservation fees.

id
string
required

Unique identifier for the Payment Method object.

object
string
required

String representing the object’s type. Always 'payment_method'.

created
integer
required

Time at which the Payment Method was created. Measured in seconds since the Unix epoch.

type
enum<string>
required

The type of the Payment Method. An additional hash is included on the Payment Method with a name matching this value, containing fields specific to that payment method type. For example, if the type is card, the Payment Method will include a card hash with card-specific details.

Available options:
bank_account,
card,
wallet
bank_account
object | null

Present when type is bank_account. Contains bank account-specific details.

billing_details
object

Billing information associated with the Payment Method.

card
object | null

Present when type is card. Contains card-specific details.

driver
string | null

ID of the driver this Payment Method is attached to, if any.

fleet
string | null

ID of the fleet this Payment Method is attached to, if any.

wallet
object | null

Present when type is wallet. Contains wallet-specific details.