For MerchantsRecover

Link orders to disputes

How Chargeflow finds the store order behind a processor dispute, and which value to put in metadata.order_id for WooCommerce and Shopify.

Chargeflow attaches the matching store order (products, customer, shipping, refunds) to a dispute by reading one identifier from the payment. For Stripe payments that identifier is metadata.order_id.

How linking works

  1. The store is connected in Chargeflow.
  2. The payment carries order_id.
  3. The dispute arrives.
  4. Chargeflow fetches that order from the store and adds it to the evidence.

What to put in order_id

StoreValueExample
WooCommerceThe numeric order ID, no prefix1234
ShopifyThe payment ID shown on the order's transaction, unchanged, no #SHOPIFY_PAYMENT_ID

Where to set it

Set metadata.order_id on the charge, not only on the PaymentIntent. You can keep your own metadata keys alongside it, but only order_id is used for linking.

Without it

WooCommerce disputes are not linked to an order. Shopify falls back to best-effort matching on customer and payment details, which is less reliable. You can still attach order data yourself with Enrich a dispute.

Next steps

Was this page helpful?