Hey! These docs are for version 1.0, which is no longer officially supported. Click here for the latest version, 2.0!

Activate the discount campaign

By default all new campaigns are created in draft mode. This means that vouchers can't be yet redeemed and we need to activate the campaign first. This is done to let you make sure that all settings, rules, and limitations are correct before going live.

To activate a campaign you just need to update it with status set to active.

curl --request PATCH \
     --user "username:password" \
     --url "https://preview.vouchery.io/api/v1.0/campaigns/2" \
     --header "Content-Type: application/json" \
     --data \ 
'
{
    "status": "active"
}
'
{
  "id": 2,
  "parent_id": 1,
  "campaign_type": "discount",
  "name": "Fall Haul",
  "status": "active"
}