Discount
Update Discount
Changed onUpdate a discount. Money-affecting fields are locked once the discount has been redeemed and return 422, while renaming and expiring still work. A discount that is already expired freezes its other fields and returns 422, a rename included - lift the expiry with expired: false (the API side of Remove Expiration in the app) or push apply_until into the future, then make the change and expire it again.
patch/discounts/{id}
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
idstring required
Request body
Example request
{
"discount": {
"expired": true
}
}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