Get Discount
paddle.get_discount
ActionBusiness appsconnection required
Calls the Paddle API with the connection's credentials.
Fetch one discount by its Paddle id.
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
1 field, 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 | — | — | — |
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 Get 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.