Basic Information

appmixer.shopify.discounts.CreateDiscountCode

1.0.0

Public

Create a discount code that takes a percentage or a fixed amount off the order. Leave the code empty to have one generated.

Input Ports

in

FieldTypeDescription
Discount Type select Whether the code takes a percentage off the order subtotal or a fixed amount in the store currency.
Discount Value number The size of the discount as a positive number, e.g. 15 for 15% off or 15 off in the store currency. Percentage discounts cannot exceed 100.
Discount Code text The code customers enter at checkout. Leave empty to have a random 8-character code generated. Codes must be unique in the store.
Title text The name of the discount shown in the Shopify admin. Defaults to the discount code.
Minimum Order Subtotal number Only apply the code when the order subtotal reaches this amount. Leave empty for no minimum.
Starts At date-time When the code becomes usable. Defaults to the moment the component runs.
Ends At date-time When the code expires. Leave empty for a code that never expires.
Usage Limit number How many times the code can be redeemed in total. Leave empty for unlimited.
Once Per Customer toggle Whether each customer can redeem the code only once.

Output Ports

out

FieldTypeDescription
Discount ID string -
Discount Type string -
Title string -
Status string -
Starts At string -
Ends At string -
Usage Limit integer -
Once Per Customer boolean -
Usage Count integer -
Created At string -
Updated At string -
Combines With object -
Codes array -
Summary string -
Customer Gets object -
Minimum Requirement object -

Full Metadata