Update discount action

This action lets you update a discount via the Easy Digital Downloads integration. Use it to automate you daily work ans save time and resources.

How to update a discount

This section aims to help you getting started on how to update a discount via Easy Digital Downloads. Simply select one of your prefered automation manuals down below and start automating your WordPress website in no time.

"Update discount" 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.

wpwh_call_action

(String) Register a custom WordPress hook callback. The value will be called as followed: do_action( $yourdefinedaction, $action_return_data, $request_data )

Connection examples

Get inspired on how to use the "Update discount" action within our Easy Digital Downloads integrations. Down below you will find various examples with our other integrations.
When a paid membership was cancelled via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a booking was rejected via The Events Manager Logo for our WP Webhooks integration Events Manager, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user password was recovered via The WP User Manager Logo for our WP Webhooks integration WP User Manager, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a donation was preapproved via The GiveWP Logo for our WP Webhooks integration GiveWP, 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 donation was completed via The GiveWP Logo for our WP Webhooks integration GiveWP, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a tag was added via The WP Fusion Logo for our WP Webhooks integration WP Fusion, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a IFTTT webhook request was received via The IFTTT Logo for our WP Webhooks integration IFTTT, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a response was added to a ticket via The Fluent Support Logo for our WP Webhooks integration Fluent Support, 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.
When a tag was added to a contact via The Groundhogg Logo for our WP Webhooks integration Groundhogg, update 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, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user was updated via The WP User Manager Logo for our WP Webhooks integration WP User Manager, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a Pabbly Connect webhook request was received via The Pabbly Connect Logo for our WP Webhooks integration Pabbly Connect, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user logged in via The WP User Manager Logo for our WP Webhooks integration WP User Manager, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a Automate.io webhook request was received via The Automate.io Logo for our WP Webhooks integration Automate.io, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a plugin was deactivated 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 user completed a unit via The WP Courseware Logo for our WP Webhooks integration WP Courseware, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a paid membership was activated via The Restrict Content Pro Logo for our WP Webhooks integration Restrict Content Pro, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a user completed a course via The WP Courseware Logo for our WP Webhooks integration WP Courseware, update a discount via The Easy Digital Downloads Logo for our integration Easy Digital Downloads.
When a file was downloaded 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.

More available Easy Digital Downloads endpoints

Discover more of the available endpoints used for the Easy Digital Downloads integration.
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.