Documentation

Shopify Generate Discount Code

Inputs

NameTypeDescription
Shopify TokenSensitiveStringShopify API token
Shopify DomainStringShopify domain
Discount PercentageNumberDiscount percentage (1-100)
Discount Code PrefixOptional StringPrefix to add to the discount code. Format {prefix}{percentage}_{random_characters}. Default: Omitted
Usage LimitOptional NumberThe maximum number of times that the discount can be used. Default: 1
Number of Days ValidOptional NumberNumber of days the discount code is valid. Use 0 for open-ended discounts. Default: 90

Outputs

NameTypeDescription
Discount Code Created?BooleanWhether successfully created a discount code
Discount CodeListDiscount Code
Valid UntilObjectValid until date. Only present if Number of Days Valid is not 0