Enable Campaign
curl --request POST \
--url https://{cluster}.voucherify.io/v1/campaigns/{campaignId}/enable \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find campaign with id camp_h8RyP6FV94F3Ev2odP24j5p",
"request_id": "v-0adaf4847c9502879b",
"resource_id": "camp_h8RyP6FV94F3Ev2odP24j5p",
"resource_type": "campaign"
}Enable Campaign
Sets campaign state to active. The vouchers in this campaign can be redeemed - only if the redemption occurs after the start date of the campaign and voucher and the voucher and campaign are not expired.
POST
/
v1
/
campaigns
/
{campaignId}
/
enable
Enable Campaign
curl --request POST \
--url https://{cluster}.voucherify.io/v1/campaigns/{campaignId}/enable \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>'{}{
"code": 404,
"key": "not_found",
"message": "Resource not found",
"details": "Cannot find campaign with id camp_h8RyP6FV94F3Ev2odP24j5p",
"request_id": "v-0adaf4847c9502879b",
"resource_id": "camp_h8RyP6FV94F3Ev2odP24j5p",
"resource_type": "campaign"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Response
Returns an empty json {}.
Response body schema for POST v1/campaigns/{campaignId}/enable.

