Charges

The Charges resource represents a financial transaction where a specific amount is billed to a customer's payment method. This encompasses the full lifecycle of a charge, including creation, possible disputes, and eventual resolution. Understanding how to use the Charges resource is crucial for managing payments, handling potential chargebacks, and ensuring accurate financial reporting. For more details on related concepts, see the chargesarrow-up-right, charge refundsarrow-up-right, and refunds sections. For details on the distinction between charge refunds and refunds, refer to How refunds differ from charge refundsarrow-up-right.

Gets a charge by ID

get

Retrieves the details of a Charge by supplying its unique identifier.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstringRequired

Charge ID

Responses
chevron-right
200

OK.

application/json
idstringRead-onlyOptional

The unique identifier of the charge.

Example: a6809a63-e6a9-4016-abbc-f33d19fccb5b
createdTimestring · date-timeRead-onlyOptional

The time when the charge was created.

Example: 2018-04-25T20:36:00Z
currencystringOptional

A three-letter ISO 4217 currency code.

Example: USD
amountnumber · doubleOptional

An amount representing how much is to be to charged.

Example: 1180.26
statestring · enumOptional

The state of the charge.

Example: pendingPossible values:
orderIdstringOptional

The identifier of the associated order.

Example: 9986340012
sourceIdstringOptional

The identifier of the source.

Example: 9986340012
failureCodestringOptional

Error code identifying reason for charge failure.

Example: a failure code
failureMessagestringOptional

Error message describing reason for charge failure.

Example: a failure message
paymentSessionIdstringOptional

Tracks the process of collecting a payment.

Example: 8cecaa32-f692-44cc-b103-4cf24dc93913
capturedbooleanOptional

Indicates if the charge has been captured.

Example: false
refundedbooleanOptional

Indicates if the charge has been refunded.

Example: false
typestring · enumOptional

The type of charge.

Possible values:
liveModebooleanOptional

Has the value true if the object exists in live mode and the value false if the object exists in test mode.

Example: true
get
/charges/{id}

Last updated