Get Stripe dispute 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 dispute by ID
Read-onlyLook up a single Stripe dispute by ID, including its evidence and linked charge.
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 dispute by its dispute_id (a required dp_xxx or legacy du_xxx string). It returns the raw Stripe dispute object, including evidence_details and the associated charge reference. An optional expand array (allow-listed to charge, payment_intent, and several evidence.* sub-fields such as customer_communication and refund_policy, up to 11 items) inflates those related objects and evidence file references inline. A missing or empty dispute_id returns a 400 error.
See it in action
You ask your AI assistant
"Pull the full evidence details for Stripe dispute dp_1PQabc and expand the related charge."
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| dispute_id | string | Yes | Stripe dispute ID (dp_xxx or legacy du_xxx). |
| expand | array | No | Related objects to inflate inline. Allowed values: charge, payment_intent, evidence.cancellation_policy, evidence.customer_communication, evidence.customer_signature, evidence.duplicate_charge_documentation, evidence.receipt, evidence.refund_policy, evidence.service_documentation, evidence.shipping_documentation, evidence.uncategorized_file. |
Returns
The raw Stripe dispute object for the given dispute_id, including evidence_details and the associated charge reference, 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 charge by ID
Look up a single Stripe charge by its ID, with optional related objects inflated inline.
Get Stripe charges
List recent Stripe charges, optionally filtered by customer, payment intent, or date range.
Get Stripe disputes
List Stripe disputes, optionally filtered by charge, payment intent, or date range.