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

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

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.