Update Discount
paddle.update_discount
ActionBusiness appsconnection required
Calls the Paddle API with the connection's credentials.
Change the code, amount, expiry, usage limit or status of a discount.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Paddle
- Secret shape
- the Paddle API key (pdl_…), or {"api_key": "…"}
- Config it needs
- environment, base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
9 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
discount_id The discount id, prefixed dsc_. | string | Yes | — | — | — |
description New internal description, up to 500 characters. | string | No | — | ≤ 500 characters | — |
amount New discount value. | string | No | — | — | 25 |
code New redemption code. | string | No | — | — | — |
status Set to archived to retire the discount, or active to restore it. | string | No | — | one of "active", "archived" | — |
expires_at New RFC 3339 expiry date for the discount. | string | No | — | — | — |
usage_limit New total number of redemptions allowed. | number | No | — | ≥ 1 | — |
enabled_for_checkout Whether customers may type the code at checkout. | boolean | No | — | — | — |
custom_data Replacement key-value data for the discount (JSON). | object | No | — | — | — |
- At least one of amount, description, code, status, expires_at, usage_limit, enabled_for_checkout, custom_data must be set.
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"amount": "25"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The discount id, prefixed dsc_. | string | — |
code The redemption code customers type at checkout, or null. | string | — |
type flat, flat_per_seat or percentage. | string | — |
amount The discount value, as a string. | string | — |
currency_code Currency of a flat discount, or null. | string | — |
status active or archived. | string | — |
enabled_for_checkout Whether customers may redeem it at checkout. | boolean | — |
recur Whether it applies to more than the first billing period. | boolean | — |
usage_limit How many times it may be redeemed in total, or null. | number | — |
times_used How many times it has been redeemed so far. | number | — |
expires_at RFC 3339 expiry, or null when it never expires. | string | — |
{
"amount": "",
"code": "",
"currency_code": "",
"enabled_for_checkout": false,
"expires_at": "",
"id": "",
"recur": false,
"status": "",
"times_used": 0,
"type": "",
"usage_limit": 0
}See Update Discount run in a workflow.
In a technical demo we add the Paddle connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.