Scenario · Shopify · Orders

Shopify · cancel an order and refund it

Customer ordered by mistake and it has not shipped. The order is cancelled and the €49 refunded once — one action, not a cancel plus a second refund.

What the customer says

“I ordered #1042 by mistake. It has not shipped yet — please cancel it and refund me.”

What must be true in Shopify afterwards

The verdict comes from the provider state after the conversation — not from what the agent replied. All of these must hold:

  • Order #1042 is cancelled
  • Exactly one refund issued
  • Refund total is 4900
  • Refund is on the right order
  • No other customer’s order touched

The happy path — on purpose

No faults are injected: the provider behaves. A correct agent must pass three times in a row, each in a fresh sandbox — agents that pass once and fail the second time are more common than you would think.

Shopify · cancel an order and refund it — AI agent test · COLVO