A valid request URL is required to generate request examples{
"payment_context": {
"version": 1,
"channel": "<string>",
"flow": "<string>",
"wallet": "unknown",
"wallet_evidence": "unknown",
"initiated_by": "<string>",
"card_brand": "<string>",
"card_funding": "<string>",
"card_entry_method": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"checkout_session_id": "<string>",
"payment_link_id": "<string>",
"invoice_id": "<string>",
"subscription_id": "<string>",
"card_country": "<string>"
},
"payment_lifecycle": {
"attempted_at": "2023-11-07T05:31:56Z",
"dispatched_at": "2023-11-07T05:31:56Z",
"authorized_at": "2023-11-07T05:31:56Z",
"captured_at": "2023-11-07T05:31:56Z",
"voided_at": "2023-11-07T05:31:56Z",
"finalized_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"object": "charge",
"intent_id": "<string>",
"payment_method": "<string>",
"amount": 123,
"amount_refunded": 123,
"currency": "<string>",
"status": "pending",
"authorization_code": "<string>",
"settlement_batch_id": "<string>",
"settled_at": 123,
"decline_code": "<string>",
"decline_type": "<string>",
"failure_message": "<string>",
"created_at": 123,
"updated_at": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "invalid currency"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "CHARGE_NOT_FOUND",
"message": "charge not found"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}Retrieve a charge
A valid request URL is required to generate request examples{
"payment_context": {
"version": 1,
"channel": "<string>",
"flow": "<string>",
"wallet": "unknown",
"wallet_evidence": "unknown",
"initiated_by": "<string>",
"card_brand": "<string>",
"card_funding": "<string>",
"card_entry_method": "<string>",
"observed_at": "2023-11-07T05:31:56Z",
"checkout_session_id": "<string>",
"payment_link_id": "<string>",
"invoice_id": "<string>",
"subscription_id": "<string>",
"card_country": "<string>"
},
"payment_lifecycle": {
"attempted_at": "2023-11-07T05:31:56Z",
"dispatched_at": "2023-11-07T05:31:56Z",
"authorized_at": "2023-11-07T05:31:56Z",
"captured_at": "2023-11-07T05:31:56Z",
"voided_at": "2023-11-07T05:31:56Z",
"finalized_at": "2023-11-07T05:31:56Z"
},
"id": "<string>",
"object": "charge",
"intent_id": "<string>",
"payment_method": "<string>",
"amount": 123,
"amount_refunded": 123,
"currency": "<string>",
"status": "pending",
"authorization_code": "<string>",
"settlement_batch_id": "<string>",
"settled_at": 123,
"decline_code": "<string>",
"decline_type": "<string>",
"failure_message": "<string>",
"created_at": 123,
"updated_at": 123
}{
"error": {
"code": "INVALID_REQUEST",
"message": "invalid currency"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "CHARGE_NOT_FOUND",
"message": "charge not found"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"type": "card_error",
"decline_code": "<string>",
"decline_type": "authorization",
"retryable": true,
"doc_url": "<string>"
}
}Authorizations
A merchant secret key (sk_…) sent as Authorization: Bearer <key>.
Headers
Merchant ID when an authorized Platform acts for a connected Merchant. Omit when authenticating directly as that Merchant.
^mer_[0-9A-Za-z]{14}$Path Parameters
The charge id (ch_…).
Response
The charge.
Bounded observations for this payment attempt. Ownership attribution is internal to Ionic. Legacy payments have a null context.
Show child attributes
Show child attributes
First observed lifecycle times. Null means not observed, including historical records; times are never inferred from later updates.
Show child attributes
Show child attributes
The charge id (ch_…).
Always charge.
charge The payment intent this charge belongs to (pi_…).
The payment method (pm_…) used. Always present.
The charge amount, in minor units. Always positive.
Total refunded so far, in minor units.
The charge's currency, matching amount's currency.
uncertain means the final outcome is not known yet. Retrieve the Charge again before retrying.
pending, authorized, succeeded, declined, failed, refunded, voided, uncertain Authorization code for an approved payment. Null until the Charge is authorized or completed.
Terminal batch (tmb_…) containing this Charge. Null until the Charge is settled in a batch.
Unix epoch seconds when the Charge settled. Null until settlement completes.
Machine-readable decline reason, such as insufficient_funds.
One of authorization (a card or funds issue), authentication (a fraud signal such as a lost or stolen card), or infrastructure (a processing or network problem). Set only when the Charge was declined; null otherwise.
A human-readable failure detail. Nullable; present when the charge failed.
Unix epoch seconds when the charge was created.
Unix epoch seconds when the charge was last updated.

