Archive Discount
paddle.archive_discount
ActionBusiness appsconnection required
Calls the Paddle API with the connection's credentials.
Retire a discount so its code stops being redeemable.
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 |
|---|---|---|
archived True once Paddle accepted the status change. | boolean | — |
discount_id The discount that was archived. | string | — |
discount The discount record as it now stands. | object | — |
{
"archived": false,
"discount": {},
"discount_id": ""
}Notes
- Paddle never deletes catalog records; this sets status to archived, which is reversible by updating the record back to active.
See Archive 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.