updatePromotion
Updates a promotion.
Arguments
Argument | Description |
---|---|
input (UpdatePromotionInput!) | Parameters for UpdatePromotion |
UpdatePromotionInput Arguments
Argument | Description |
---|---|
publicName (String) | Alternative name to be displayed on invoices and checkout. |
autoApply (Boolean) | Whether or not this promotion will automatically be applied on checkout |
deactivationStrategy (AppliedPromotionDeactivationStrategy) | Which mechanism will be used to deactivate the promotion |
deactivateAfterAmountIncludingTaxCents (Int) | The amount (in cents) after which the promotion should get deactivated on a customer |
deactivateAfterTimes (Int) | After how many times this promotion is "used up" for a customer |
activated (Boolean) | Whether or not this promotion should be active |
id (ID!) | |
title (String) | The title of the promotion as it will appear on invoices and in the portal. |
percentDiscount (Int) | The percentage of discount that this promotion gives. |
Return fields
errors ([ModelValidationError!]!)
promotion (Promotion)
Last updated