create_code_discount_free_shipping
Generate a discount code that provides free or reduced shipping to customers. Configure eligibility rules, usage limits, and combine with other discounts.
Instructions
Create a free shipping code discount. Customers enter a code to get free (or discounted) shipping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Internal name shown in admin. | |
| code | Yes | Code customers enter at checkout. | |
| startsAt | Yes | Activation date (ISO 8601). | |
| endsAt | No | ||
| usageLimit | No | ||
| appliesOncePerCustomer | No | ||
| destinationAll | No | Apply to all shipping destinations. Default: true. | |
| countryCodes | No | ISO country codes to restrict shipping destination (e.g. ['US', 'CA']). | |
| includeRestOfWorld | No | Include rest of world when countryCodes is set. | |
| minimumSubtotal | No | Minimum order subtotal (e.g. 50 for $50). | |
| minimumQuantity | No | ||
| maximumShippingPrice | No | Max shipping rate this discount applies to (e.g. '10.00'). | |
| combinesWith | No | Discount classes this discount can combine with. |