API version: unstable
API version: 2021-04 Release candidate
API version: 2021-01 Latest
API version: 2020-10
API version: 2020-07
API version: 2020-04
API version: 2020-01 Unsupported
API version: 2019-10 Unsupported

discountAutomaticBasicUpdate mutation

Version unstable

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2021-04 (Release candidate)

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2021-01 (Latest)

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2020-10

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2020-07

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2020-04

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2020-01 (Unsupported)

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2019-10 (Unsupported)

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2019-07 (Unsupported)

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields

Version 2019-04 (Unsupported)

Updates a basic automatic discount using its ID and input.

Required access

Apps must have write_discounts access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
automaticBasicDiscount ( DiscountAutomaticBasicInput! ) required

The input data used to update the automatic discount.

id ( ID! ) required

The ID of the automatic discount to update.

DiscountAutomaticBasicInput fields

  • customerGets (DiscountCustomerGetsInput)

    The qualifying items in an order, the quantity of each one, and the total value of the discount.

  • endsAt (DateTime)

    The date and time when the discount ends. For open-ended discounts, use null.

  • minimumRequirement (DiscountMinimumRequirementInput)

    The minimum subtotal or quantity that's required for the discount to be applied.

  • startsAt (DateTime)

    The date and time when the discount starts.

  • title (String)

    The title of the discount.

Return fields