updateDiscountCode

Updates a discount code (e.g., deactivate it or edit usage limits)

Arguments

Argument
Description

Parameters for UpdateDiscountCode

UpdateDiscountCodeInput Arguments

Argument
Description

metadata (JSON)

Metadata that can be used by developers to store additional information on objects.

id (ID!)

The ID of the discount code to update

activated (Boolean)

Whether the discount code is active/deactivated

maxTimesUsed (Int)

The max times this discount code can be used

Return fields

discountCode (DiscountCode)

Last updated

Was this helpful?