Skip to main content
DELETE
/
v1
/
loyalties
/
{campaignId}
/
earning-rules
/
{earningRuleId}
Delete Earning Rule
curl --request DELETE \
  --url https://{cluster}.voucherify.io/v1/loyalties/{campaignId}/earning-rules/{earningRuleId} \
  --header 'Authorization: Bearer <token>' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>'
This response does not have an example.

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required
Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

campaignId
string
required

The campaign ID or name of the loyalty campaign. You can either pass the campaign ID, which was assigned by Voucherify, or the name of the campaign as the path parameter value, e.g., Loyalty%20Campaign.

Example:

"camp_rRsfatlwN7unSeUIJDCYedal"

earningRuleId
string
required

A unique earning rule ID.

Example:

"ern_CFuv1O0IDl8Jgph0ojhMu8bH"

Response

Returns no content if deletion is successful.

I