Shopify Refund Shipping Fee

Refunds the shipping fee on a Shopify order, in full or in part based on selected line items. Use it when only some items were delayed in a split shipment.

What it does

  • Fetches the order and calculates the shipping refund amount.
  • Supports a full refund or a partial refund based on item quantity or weight.
  • Processes the refund through Shopify and returns the amount refunded.

Notes

  • Use the Shopify order ID, not the order name or number.
  • For partial refunds, provide the line item IDs that should drive the calculation.

Inputs

NameTypeDescription
Shopify SubdomainCredentialsSubdomain of your shopify account
Shopify TokenCredentialsBasic token created from Shopify API Key and Secret OR Admin Token
Order IDStringShopify Order ID
Type of RefundStringFull or partial shipping fee refund, if partial based on line items quantity or weight Possible values: full, percentage of items quantity, percentage of items weight.
List of Line Itemslistif partial refund, a list of line item IDs based on which it will apply shipping refund proportion
Reason for RefundStringwill be added to Shopify refund notes section

Outputs

NameTypeDescription
SuccessBooleanWhether refund was successfully performed
AmountStringRefund amount together with currency code, for example $2.35
Refund DetailsObjectrefund object with lots of details

Notes

API reference