Error
A valid request URL is required to generate request examples{
"id": "pi_2k9Lw3QmXb7TnR4s",
"object": "transaction",
"payment_intent": "pi_2k9Lw3QmXb7TnR4s",
"merchant_reference": "order-1042",
"client_reference_id": null,
"checkout_session": "cs_8hF2vYp1NcZ6aD0e",
"latest_charge": "ch_5tR8uJq3WmK1xB7c",
"source": {
"type": "payment_link",
"label": "Payment link",
"checkout_mode": "payment",
"checkout_ui_mode": "hosted",
"payment_link": "pl_4dN7sGb2HzE9yA3k"
},
"livemode": false,
"amount": 4900,
"amount_refunded": 0,
"currency": "USD",
"status": "succeeded",
"payment_intent_status": "succeeded",
"charge_status": "succeeded",
"checkout_status": "complete",
"payment_status": "paid",
"refund_count": 0,
"customer": {
"id": "cus_6bV3mTq8LrP2wD5x",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Doe",
"name": "Jane Doe"
},
"payment_method": {
"id": "pm_3yH9cKs7QeU4nF1j",
"type": "card",
"usage": "reusable",
"status": "active",
"brand": "visa",
"last4": "4242",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": null,
"funding": "credit",
"issuer": null,
"country": "US",
"iin": "424242",
"billing_name": "Jane Doe",
"billing_email": "[email protected]",
"billing_phone": null,
"billing_address": {
"line1": "123 Main St",
"line2": null,
"city": "San Francisco",
"state": "CA",
"postal_code": "94103",
"country": "US"
}
},
"payment_context": null,
"product_summary": {
"item_count": 1,
"label": "Starter plan",
"names": [
"Starter plan"
]
},
"decline_code": null,
"decline_type": null,
"failure_message": null,
"created_at": 1790294400,
"updated_at": 1790294412
}{
"error": {
"code": "ACCOUNT_CONTEXT_NOT_SUPPORTED",
"message": "this endpoint does not accept the Ionic-Account header; remove it, and the request acts on the account that owns your API key"
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "API key is required"
}
}{
"error": {
"code": "INSUFFICIENT_PERMISSIONS",
"message": "insufficient permissions"
}
}{
"error": {
"code": "PAYMENT_INTENT_NOT_FOUND",
"message": "transaction not found"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "internal error"
}
}Transactions
Retrieve a transaction
Returns a transaction with everything in the list item plus the payment intent details, the invoice (when the payment was for one), the checkout session, its line items, every charge attempt, and every refund.
GET
/
transactions
/
{id}
Error
A valid request URL is required to generate request examples{
"id": "pi_2k9Lw3QmXb7TnR4s",
"object": "transaction",
"payment_intent": "pi_2k9Lw3QmXb7TnR4s",
"merchant_reference": "order-1042",
"client_reference_id": null,
"checkout_session": "cs_8hF2vYp1NcZ6aD0e",
"latest_charge": "ch_5tR8uJq3WmK1xB7c",
"source": {
"type": "payment_link",
"label": "Payment link",
"checkout_mode": "payment",
"checkout_ui_mode": "hosted",
"payment_link": "pl_4dN7sGb2HzE9yA3k"
},
"livemode": false,
"amount": 4900,
"amount_refunded": 0,
"currency": "USD",
"status": "succeeded",
"payment_intent_status": "succeeded",
"charge_status": "succeeded",
"checkout_status": "complete",
"payment_status": "paid",
"refund_count": 0,
"customer": {
"id": "cus_6bV3mTq8LrP2wD5x",
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Doe",
"name": "Jane Doe"
},
"payment_method": {
"id": "pm_3yH9cKs7QeU4nF1j",
"type": "card",
"usage": "reusable",
"status": "active",
"brand": "visa",
"last4": "4242",
"exp_month": 12,
"exp_year": 2030,
"fingerprint": null,
"funding": "credit",
"issuer": null,
"country": "US",
"iin": "424242",
"billing_name": "Jane Doe",
"billing_email": "[email protected]",
"billing_phone": null,
"billing_address": {
"line1": "123 Main St",
"line2": null,
"city": "San Francisco",
"state": "CA",
"postal_code": "94103",
"country": "US"
}
},
"payment_context": null,
"product_summary": {
"item_count": 1,
"label": "Starter plan",
"names": [
"Starter plan"
]
},
"decline_code": null,
"decline_type": null,
"failure_message": null,
"created_at": 1790294400,
"updated_at": 1790294412
}{
"error": {
"code": "ACCOUNT_CONTEXT_NOT_SUPPORTED",
"message": "this endpoint does not accept the Ionic-Account header; remove it, and the request acts on the account that owns your API key"
}
}{
"error": {
"code": "AUTHENTICATION_REQUIRED",
"message": "API key is required"
}
}{
"error": {
"code": "INSUFFICIENT_PERMISSIONS",
"message": "insufficient permissions"
}
}{
"error": {
"code": "PAYMENT_INTENT_NOT_FOUND",
"message": "transaction not found"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "rate limit exceeded"
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "internal error"
}
}Authorizations
Response
The transaction with full detail.
A transaction with its payment intent details, invoice, checkout session, line items, charges, and refunds. Every field of Transaction is also present.

