List Discounts
Changed onList the discounts in a workspace.
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
ID of item after which the collection should be returned. More examples and info about pagination in our guides.
Records per page. Defaults to 20; raise it up to 100 for bulk reads. A larger value returns 100 records. Zero, a negative or a non-integer value is a 422. The Link next-page URL keeps the value, so a client following it keeps the page size. More in our guides.
Sort order of a list response. Use 'desc' to reverse the default 'asc' (ascending) sort order. Examples in our guides.
Sort property of a list response. The default is id and thus the created_at order. If you sort by other properties, we additionally sort by id implicitly as a secondary sort property, so that you can rely on the sort order to be deterministic even if the main sort property ends up with the same values.
Filter by available properties in query params, like this: api/v2/resources?filter[id]=value&filter[another_property]=value1,value2. Check our Filtering guide for examples and all about filtering here.
{
"id": "1,2,3"
}Response
OK
Example response
[
{
"id": 771,
"public_id": "gBEDMo",
"workspace_id": 42000,
"name": "Launch 20",
"code": "LAUNCH20",
"discount_type": "code",
"discount_method": "percentage",
"amount": null,
"percent": "20.0",
"currency": "usd",
"applies_to": "all_products",
"apply_from": "2025-01-01T00:00:00.000Z",
"apply_until": null,
"limit_1_per_customer": false,
"require_minimum_spend": false,
"require_minimum_spend_amount": null,
"discounts_per_redemption": null,
"redemptions_count": 0,
"product_ids": [],
"variant_ids": [],
"products_collection_ids": [],
"active": true,
"expired": false,
"scheduled": false,
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z"
}
]Changes
- info
endpoint added
- info