Support

refundOrder

View as Markdown

Refund an existing order. Only non-draft orders can be marked as refunded

mutation

Requires one of commerce.order:create, commerce.order:update, commerce.order:cancel, or commerce.order:complete (use the scope that matches the operation).

Refund an existing order. Only non-draft orders can be marked as refunded

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • input RefundOrderInput! required
    • orderId ID! required — Global ID in format Order_\<KSUID\>
    • refundedAt DateTime optional

Possible returns

  • Order Order

Last updated on

How is this guide?