Explore Plans
Mobile menu Close menu
SendOwl

Create a discount

This action will create a discount in your SendOwl store, optionally limited to a specific product.

Developer info

API endpoint slug
sendowl.create_a_discount
Filter code method
Sendowl.createADiscount.skip(string?: reason)
Runtime method
runAction("sendowl.create_a_discount", {})

Action fields

Discount name Text input > Title

Label
Discount name
Helper text
An internal name for the discount, for your own reference in SendOwl.
Slug
discount_name
Required
true
Can have default value
true
Filter code method
Sendowl.createADiscount.setDiscountName(string: discount_name)

Discount type Dropdown list

Label
Discount type
Helper text
Choose a percentage discount or a fixed amount off.
Slug
discount_type
Required
true
Can have default value
true
Filter code method
Sendowl.createADiscount.setDiscountType(string: discount_type)

Discount amount Text input > Other

Label
Discount amount
Helper text
For a percentage discount, the percent off (e.g. 10); for a fixed discount, the amount off (e.g. 5.00).
Slug
discount_amount
Required
true
Can have default value
true
Filter code method
Sendowl.createADiscount.setDiscountAmount(string: discount_amount)

Discount code Text input > Other

Label
Discount code
Helper text
The code buyers type at checkout. Leave blank and SendOwl auto-generates one.
Slug
discount_code
Required
false
Can have default value
true
Filter code method
Sendowl.createADiscount.setDiscountCode(string: discount_code)

Product Dropdown list

Label
Product
Helper text
Choose a product to restrict the discount to, or select "All products" to apply it store-wide.
Slug
product
Required
true
Can have default value
false