Action: Create discount

This webhook action allows you to create a dicsount code within Easy Digital Downloads.
On this page you will find further information about the Create discount action and how to use it via WP Webhooks, as well as via other external services such as Integromat, Pabbly, Integrately, or Zapier.
The Create discount action is part of our Easy Digital Downloads integration.

Webhook setup guide

This section aims to help you getting started with the Create discount action.
Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

Arguments

Our so-called arguments are values that you can use to customize your request. They allow you to send specific data to the Create discount action which is then handled accordingly to the described purpose. You can use the arguments that you would like to send values for.
To learn more about it, please see the Setup Guide above.
code *

(String) The dicsount code you would like to set for this dicsount. Only alphanumeric characters are allowed.

name

(String) The name to identify the discount code.

status

(String) The status of the discount code. Default: active

current_uses

(Integer) A number that tells how many times the coupon code has been already used.

max_uses

(Integer) The number of how often the discount code can be used in total.

amount

(Mixed) The amount of the discount code. If chosen percent, use an interger, for an amount, use float. More info is within the description.

start_date

(String) The start date of the availability of the discount code. More info is within the description.

expiration_date

(String) The end date of the availability of the discount code. More info is within the description.

type

(String) The type of the discount code. Default: percent. More info is within the description.

min_price

(Mixed) The minimum price that needs to be reached to use the discount code. More info is within the description.

product_requirement

A comma-separated list of download IDs that are required to apply the discount code. More info is within the description.

product_condition

(String) A string containing further conditions on when the discount code can be applied. More info is within the description.

excluded_products

(String) A comma-separated list, containing all the products that are excluded from the discount code. More info is within the description.

is_not_global

(String) Set this argument to "yes" if you do not want to apply the discount code globally to all products. Default: no. More info is within the description.

is_single_use

(String) Set this argument to "yes" if you want to limit this discount code to only a single use per customer. Default: no. More info is within the description.

do_action

Advanced: Register a custom action after WP Webhooks fires this webhook. More info is within the description.

Connection examples

Get inspired on how to use the Easy Digital Downloads action. Down below you will find various examples with our other integrations.
When a post was deleted via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a license was deactivated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an action was fired via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a contact was deleted via The FluentCRM Logo for our WP Webhooks integration FluentCRM, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a new payout was received via The AffiliateWP Logo for our WP Webhooks integration AffiliateWP, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an order was created via The Woocommerce Logo for our integration Woocommerce, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a comment was deleted via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a payment was completed via The Gravityforms Logo for our integration Gravity Forms, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a comment was trashed via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a customer was updated via The Woocommerce Logo for our integration Woocommerce, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a plugin was activated via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a topic was completed via The LearnDash Logo for our WP Webhooks integration LearnDash, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user was deleted via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user was created via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a coupon was restored via The Woocommerce Logo for our integration Woocommerce, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a custom link was clicked via The WP Webhooks Logo for our WP Webhooks integration WP Webhooks, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user was updated via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a form was submitted via The Formidable Logo for our WP Webhooks integration Formidable Forms, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a lesson was completed via The LearnDash Logo for our WP Webhooks integration LearnDash, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a new customer was created via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an email was sent via The WordPress Logo for our integration WordPress, create a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.

More available endpoints

Down below you will find a list of all available triggers and actions for the Easy Digital Downloads integration.
If you want to learn more about a specific endpoint, simply click on it.
Full disclosure: When clicking on some of the links on our website and purchasing the related product and/or service, we may earn a commission free of any additional cost for you.