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-only
WooCommerce Stripe Gateway Ecommerce woocommerce-gateway-stripe/get-charge

Look 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().

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.