cURL
curl --request POST \ --url https://{cluster}.voucherify.io/v1/promotions/tiers/{promotionTierId}/enable \ --header 'Authorization: Bearer <token>' \ --header 'X-App-Id: <api-key>' \ --header 'X-App-Token: <api-key>'
{ "id": "promo_NzjTc3ZXTe7md5SziK3uYtei", "created_at": "2022-09-21T11:38:34.962Z", "updated_at": "2022-09-22T10:32:07.712Z", "name": "Order more than $100", "banner": "Order more than $100", "action": { "discount": { "type": "AMOUNT", "amount_off": 3000, "effect": "APPLY_TO_ORDER" } }, "metadata": {}, "hierarchy": 1, "campaign": { "id": "camp_VEL7UX0jZjrvLx3hfNZBVzpq", "start_date": "2022-09-21T00:00:00.000Z", "expiration_date": "2022-09-30T00:00:00.000Z", "validity_day_of_week": [ 1, 2, 3, 4, 5 ], "active": true, "object": "campaign" }, "campaign_id": null, "active": true, "start_date": "2022-09-21T00:00:00.000Z", "expiration_date": "2022-09-30T00:00:00.000Z", "validity_day_of_week": [ 1, 2, 3, 4, 5 ], "summary": { "redemptions": { "total_redeemed": 2 }, "orders": { "total_amount": 37650, "total_discount_amount": 6000 } }, "object": "promotion_tier", "validation_rule_assignments": null }
This method enables a promotion tier, i.e. makes the active parameter = true.
active
true
Show child attributes
Was this page helpful?