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
| Name | Type | Description |
|---|---|---|
| Shopify Subdomain | Credentials | Subdomain of your shopify account |
| Shopify Token | Credentials | Basic token created from Shopify API Key and Secret OR Admin Token |
| Order ID | String | Shopify Order ID |
| Type of Refund | String | Full 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 Items | list | if partial refund, a list of line item IDs based on which it will apply shipping refund proportion |
| Reason for Refund | String | will be added to Shopify refund notes section |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether refund was successfully performed |
| Amount | String | Refund amount together with currency code, for example $2.35 |
| Refund Details | Object | refund object with lots of details |