Admin API / Types

RefundOrderSuccess

Object

The refund was issued.

type RefundOrderSuccess

Fields

FieldTypeDescription
refundRefund!
The issued refund.
restockedItems[RestockedItem!]!
The variants that the refund put back in stock, ordered by variant ID. A repeat with the same idempotencyKey returns the items of the first call, so the list is empty when the first call had no restockItems. A repeat whose restockItems omit an item of that list or give it another quantity returns IdempotencyConflictError. A repeat whose restockItems add an item returns the first refund and does not put that item back in stock, because an item that the first call could not put back in stock is also missing from the list. If the payment processor's webhook recorded the refund before the first call committed and the first call put nothing back in stock, a repeat with restockItems can put items back in stock. An item that stopped qualifying after the check, or a stock write that failed after money moved, is missing from the list and its stock is unchanged. A repeat whose key already has a refund, a refund reservation or a restock row skips the item check, so an item that fails it is missing from the list with no RestockItemError.