Get Stripe charge by ID is a WordPress ability from WooCommerce Stripe Gateway — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get Stripe charge by ID
Read-onlyLook up a single Stripe charge by its ID, with optional related objects inflated inline.
Requires the WooCommerce Stripe Gateway plugin active on WordPress 6.9+ with WooCommerce 10.9 or later, since every ability registers through WooCommerce Core's AbilitiesLoader. Abilities are also gated behind the 'wc_stripe_abilities_enabled' filter, which defaults to off, and the current user needs the 'manage_woocommerce' capability.
What it does
This ability retrieves a single Stripe charge by its charge_id (a required ch_xxx string). The response is the raw Stripe charge object, including payment_method_details, billing_details, and receipt_email. An optional expand array (validated against an allow-list of balance_transaction, customer, payment_intent, refunds, and review, up to 5 items) lets the caller inflate those related objects inline in the same response instead of making follow-up calls. If charge_id is missing or empty, the ability returns a 400 error.
See it in action
You ask your AI assistant
"Look up Stripe charge ch_3PQabc and expand the balance_transaction and customer objects."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| charge_id | string | Yes | Stripe charge ID (ch_xxx). |
| expand | array | No | Related objects to inflate inline. Allowed values: balance_transaction, customer, payment_intent, refunds, review. |
Returns
The raw Stripe charge object for the given charge_id, including payment_method_details, billing_details, and receipt_email, with any requested expand fields inflated inline.
Permission
The current user must have the 'manage_woocommerce' capability, checked via WC_Stripe_Abilities_Registrar::can_manage_woocommerce().
More WooCommerce Stripe Gateway abilities
Get Stripe account summary
Summarize the current state of the store's connected Stripe account in one zero-argument read.
Get Stripe balance
Check the merchant's current Stripe balance across available, pending, and reserved amounts.
Get Stripe balance transactions
List Stripe balance transactions — charges, refunds, payouts, and adjustments — that moved money in or out of the balance.
Get Stripe charges
List recent Stripe charges, optionally filtered by customer, payment intent, or date range.
Get Stripe dispute by ID
Look up a single Stripe dispute by ID, including its evidence and linked charge.
Get Stripe disputes
List Stripe disputes, optionally filtered by charge, payment intent, or date range.