Get Stripe charges 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 charges
Read-onlyList recent Stripe charges, optionally filtered by customer, payment intent, or date range.
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 lists recent Stripe charges by calling Stripe's charges API directly. You can scope the results with an optional limit (1-100, defaulting to 10), a specific customer or payment_intent ID, a created date range (created_gte/created_lte as Unix timestamps), and Stripe's own cursor pagination (starting_after/ending_before). The response is the raw Stripe charge list, which includes customer-shaped data like billing_details and receipt_email, so it carries the same PII as Stripe's own API. It's useful for an AI assistant reconciling recent payment activity for a specific customer or intent without opening the Stripe dashboard.
See it in action
You ask your AI assistant
"Show me the last 20 Stripe charges for customer cus_AbC123, most recent first."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Maximum number of charges to return. Defaults to 10; Stripe caps at 100. |
| starting_after | string | No | Stripe cursor — return charges after this object ID. |
| ending_before | string | No | Stripe cursor — return charges before this object ID. |
| customer | string | No | Filter to charges belonging to a specific Stripe customer (cus_xxx). |
| payment_intent | string | No | Filter to charges attached to a specific payment intent (pi_xxx). |
| created_gte | integer | No | Filter to charges created at or after this Unix timestamp. |
| created_lte | integer | No | Filter to charges created at or before this Unix timestamp. |
Returns
A Stripe list of raw charge objects matching the given filters, including payment_method_details, billing_details, and receipt_email.
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 charge by ID
Look up a single Stripe charge by its ID, with optional related objects inflated inline.
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.