Processing a refund

To process a refund, Shopify makes an HTTP call to your app, and your app completes the refund by replying with a GraphQL mutation. This interaction is illustrated in the following diagram:

payment processing steps

  1. Merchant requests refund.
  2. Shopify sends a backend request to the payments app, specifying the refund.
  3. The app replies with a 201 and an empty response body.
  4. The app finalizes the refund using either RefundSessionResolve or RefundSessionReject mutations.
  5. Shopify updates the refund status.