Charges

The Charge resource contains the details of a charge.

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: {"offset":{"totalSeconds":0,"id":"Z","rules":{"fixedOffset":true,"transitions":[],"transitionRules":[]}},"nano":0,"year":2018,"monthValue":4,"dayOfMonth":25,"hour":20,"minute":36,"second":0,"dayOfWeek":"WEDNESDAY","dayOfYear":115,"month":"APRIL"}
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