SuggestedRefund object

Version unstable

Represents the suggested refund to be submitted based on the items being returned.

Required access

read_orders access scope.

Fields

  • amountSet (MoneyBag!)

    The total monetary value to be refunded in shop and presentment currencies.

  • discountedSubtotalSet (MoneyBag!)

    The sum of all the discounted prices of the line items being refunded.

  • maximumRefundableSet (MoneyBag!)

    The total monetary value available to refund in shop and presentment currencies.

  • refundDuties ([RefundDuty!]!)

    An array of duties that will be refunded to the customer.

  • refundLineItems ([RefundLineItem!]!)

    An array of line items that will be returned to the customer.

  • shipping (ShippingRefund!)

    Refund details for shipping costs paid by customer.

  • subtotalSet (MoneyBag!)

    The sum of all the prices of the line items being refunded in shop and presentment currencies.

  • suggestedTransactions ([SuggestedOrderTransaction!]!)

    Array of SuggestedOrderTransaction items.

  • totalCartDiscountAmountSet (MoneyBag!)

    The total cart discount amount that was applied to all line items in this refund.

  • totalDutiesSet (MoneyBag!)

    The sum of all the duties being refunded from the order in shop and presentment currencies. Must be positive.

  • totalTaxSet (MoneyBag!)

    The sum of all the taxes being refunded from the order (must be positive) in shop and presentment currencies.

  • totalTips (MoneyV2!)

    The sum of all tips being refunded from the order.

Types that return SuggestedRefund

Deprecated fields

  • amount (Money!) deprecated

    The total monetary value to be refunded.

    Deprecation warning

    Use amountSet instead

  • maximumRefundable (Money!) deprecated

    The total monetary value available to refund.

    Depr