Updates a free shipping code discount.
Apps must have
write_discounts access scope.
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
The input data used to update the code discount.
The ID of the code discount to update.
Whether the discount applies on regular one-time-purchase items.
Whether the discount applies on subscription items.
Whether the discount can be applied only once per customer.
The code to use the discount.
The customers that can use the discount.
A list of destinations where the discount will apply.
The date and time when the discount ends. For open-ended discounts, use
The maximum shipping price that qualifies for the discount.
The minimum subtotal or quantity that's required for the discount to be applied.
The number of times a discount applies on recurring purchases (subscriptions).
The date and time when the discount starts.
The title of the discount.