Action: Update discount

This webhook action allows you to update (or create) a dicsount code within Easy Digital Downloads.
On this page you will find further information about the Update 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 Update discount action is part of our Easy Digital Downloads integration.

Webhook setup guide

This section aims to help you getting started with the Update 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 Update 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.
discount_id *

(Mixed) The discount ID or the discount code of the discount you would like to update.

create_if_none

(String) Set this value to "yes" in case the given discount does not exist and you want to create it. Default: no

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.

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 product was updated via The Woocommerce Logo for our integration Woocommerce, update 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, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a comment was created via The WordPress Logo for our integration WordPress, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a plugin was deleted via The WordPress Logo for our integration WordPress, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an order was deleted via The Woocommerce Logo for our integration Woocommerce, update 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, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a course access was removed via The LearnDash Logo for our WP Webhooks integration LearnDash, update 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, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a form was submitted via The Newsletter Logo for our WP Webhooks integration Newsletter, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When an appointment was rescheduled via The Amelia Logo for our WP Webhooks integration Amelia, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a booking was added via The Amelia Logo for our WP Webhooks integration Amelia, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a customer was updated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a payments status was changed via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, update 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, update 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, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a group access was removed via The LearnDash Logo for our WP Webhooks integration LearnDash, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a license was activated via The Easy Digital Downloads Logo for our integration Easy Digital Downloads, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a booking status was updated via The Amelia Logo for our WP Webhooks integration Amelia, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a WordPress hook was fired via The WordPress Logo for our integration WordPress, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a contact was removed from a list via The FluentCRM Logo for our WP Webhooks integration FluentCRM, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a membership has expired via The Paid Membership Pro Logo for our WP Webhooks integration Paid Memberships Pro, update 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.