Retrieve a charge
GET/charges/:charge_id
Retrieves a single charge by its ID
Request
Path Parameters
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Charge's ID
Responses
- 200
- 401
- 403
- 404
- 409
- 500
Charge retrieved
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
- CardResponseBrief
- BankAccountResponseBrief
- WalletResponseBrief
- CardResponseBrief
- BankAccountResponseBrief
- WalletResponseBrief
Possible values: [success]
data
object
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [pending, succeeded, failed]
Indicates if the Charge has been captured
Indicates if the Charge has been disputed
Indicates if the Charge has been refunded partially or completely
It will show the error code when the charge fails
It will show the error message when the charge fails
amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
amount_captured
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
amount_refunded
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
Possible values: <= 255 characters
Description for this charge
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
Possible values: non-empty and <= 20 characters
Phone Number
address
object
nullable
Address of the billing contact
Possible values: >= 2 characters and <= 2 characters
Two-letter code ISO 3166-1 country code
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
shipping_details
object
Possible values: <= 255 characters
Name of the shipping contact person
Possible values: non-empty and <= 20 characters
Phone Number
address
object
required
Address of the shipping destination
Possible values: >= 2 characters and <= 2 characters
Two-letter code ISO 3166-1 country code
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
Possible values: <= 255 characters
fees
object[]
Fee's name
Fee's percent
amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
total_amount
object
Money representation
Possible values: <= 9999999999
Amount expressed in cents. 1 USD should be submitted as 100 cents
ISO 4217 representation of the currency
source_payment_method
object
anyOf
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [card, bank-account, wallet, crypto-wallet]
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
card
object
expiration
object
Possible values: >= 2 characters and <= 2 characters
2 digit expiration month
Possible values: >= 4 characters and <= 4 characters
4 digit expiration year
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [card, bank-account, wallet, crypto-wallet]
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
bank-account
object
Bank instrument details. The list endpoint returns only the last 4 digits (last4) plus the routing_number. The single-resource detail endpoint (GET /payment-methods/{payment_method_id}) additionally returns the full account_number (see BankAccountResponseDetail). iban/sort_code/swift_bic sent at creation are never returned.
Full name on the bank account.
Whether the account holder is an individual or a business.
ISO 3166-1 alpha-2 country code of the bank.
The bank account type (e.g. checking, savings).
US routing number, when applicable.
Last 4 digits of the account number/IBAN. The full identifier is never returned.
Specifies is the bank account is a same day credit account
ISO 4217 currency code of the account.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [card, bank-account, wallet, crypto-wallet]
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
destination_payment_method
object
anyOf
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [card, bank-account, wallet, crypto-wallet]
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
card
object
expiration
object
Possible values: >= 2 characters and <= 2 characters
2 digit expiration month
Possible values: >= 4 characters and <= 4 characters
4 digit expiration year
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [card, bank-account, wallet, crypto-wallet]
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
bank-account
object
Bank instrument details. The list endpoint returns only the last 4 digits (last4) plus the routing_number. The single-resource detail endpoint (GET /payment-methods/{payment_method_id}) additionally returns the full account_number (see BankAccountResponseDetail). iban/sort_code/swift_bic sent at creation are never returned.
Full name on the bank account.
Whether the account holder is an individual or a business.
ISO 3166-1 alpha-2 country code of the bank.
The bank account type (e.g. checking, savings).
US routing number, when applicable.
Last 4 digits of the account number/IBAN. The full identifier is never returned.
Specifies is the bank account is a same day credit account
ISO 4217 currency code of the account.
Possible values: <= 36 characters, Value must match regular expression ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
UUID v4
Possible values: [card, bank-account, wallet, crypto-wallet]
billing_details
object
Possible values: <= 255 characters
Name of the billing contact person
Possible values: <= 255 characters
Email Address
metadata
object
A metadata object containing key-value pairs. Keys must be strings, and values are strings. The object can also be empty.
Unix timestamp representing the date
Possible values: [200]
Possible values: [Successful request]
{
"status": "success",
"data": {
"id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"customer_id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"invoice_id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"session_id": "ec7e1848-dc80-4ab0-8827-dd7fc0737b43",
"status": "pending",
"paid": true,
"disputed": true,
"refunded": true,
"failure_code": "string",
"failure_message": "string",
"amount": {
"value": 99,
"currency": "USD"
},
"amount_captured": {
"value": 99,
"currency": "USD"
},
"amount_refunded": {
"value": 99,
"currency": "USD"
},
"description": "Services x 3 hs",
"billing_details": {
"name": "Louis Griffin",
"email": "peter@pathly.io",
"phone_number": "1234567890",
"address": {
"country": "US",
"line1": "Passatge sant pere",
"line2": "Apartment 2",
"zip": "8397.0",
"city": "Pineda de mar",
"state": "Barcelona"
}
},
"shipping_details": {
"name": "Louis Griffin",
"phone_number": "1234567890",
"address": {
"country": "US",
"line1": "Passatge sant pere",
"line2": "Apartment 2",
"zip": "8397.0",
"city": "Pineda de mar",
"state": "Barcelona"
}
},
"fees": [
{
"name": "Card Debit",
"percentage": "2.99%",
"amount": {
"value": 99,
"currency": "USD"
},
"total_amount": {
"value": 99,
"currency": "USD"
}
}
],
"source_payment_method": {},
"destination_payment_method": {},
"metadata": {},
"created_on": 1656656767
},
"code": 200,
"message": "Successful request"
}
Access token is missing or invalid
Access denied
Charge not found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [not found]
Possible values: [404]
Failure reason
{
"status": "not found",
"code": 404,
"message": "Entity not found"
}
Request failed due to a conflict in the provided entity
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [fail]
Possible values: [409]
Failure reason
{
"status": "fail",
"code": 409,
"message": "Entity with Id already exists"
}
Server error