Admin API / Types

RefundOrderInput

Input

Details for refunding an order.

input RefundOrderInput

Input fields

FieldTypeDescription
idempotencyKeyString!A client-generated key for this refund, 1 to 200 characters after trim. A repeat with the same key and the same input returns the first refund and issues no second one. The same key with another reason, sellerNote, currency or restockItems, or with a smaller requestedRefundAmount, returns IdempotencyConflictError. A larger requestedRefundAmount returns the first refund when that refund completed the order or moved no money, because a concurrent refund can shrink the amount that the first call recorded; otherwise it returns IdempotencyConflictError.
orderIdID!Order to refund.
reasonRefundOrderReason!Reason for issuing the refund.
requestedRefundAmountMoneyInput!Pre-tax amount to refund. The order's pre-tax total is its subtotal plus shipping. The proportional sales tax is automatically calculated and added to the final refund amount.
restockItems[RestockItemInput!]Variants of the order to put back in stock with the refund, each variant at most once and at most 100 variants. Only limited-stock variants whose stock District sets can go back in stock. A variant can go back in stock up to the units of the order's items of that variant, less units under an open claim and less units that earlier refunds of the order put back in stock. Omit it or send an empty list to change no stock.
sellerNoteStringOptional private note from the seller.