Description
Calculate refund tax details for the order based on refund input parameters.
Permission bit: "orders.refund"
Topic: Orders
Arguments
data: OrderRefund
Main argument for mutations.
Unique order identifier. See also: Unique Identifiers
Example: "or_EQzGqWoY"
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
Amount of money to refund to customer's balance
Example: 52600
Whether to perform full refund or not
Example: false
Whether to perform full restock or not
Example: false
line_items: [OrderRefundLineItem!]
Whether to notify customer about refund via email or not
Example: false
reason: OrderRefundReason
Reason why order is refunded
Example: "adjustment"
shipping: OrderRefundShipping
Undo coupon and promotion usage, does nothing but decrements "times used" property on the coupon and promotion
Example: false
Result
Preview (typescript)
Loading module