younifyd
Menu

Create Earning Rule

Create Earning Rule

POST/v1/loyalties/{campaignId}/earning-rules

Use it in a workflow

  1. Add a step and choose the Voucherify connector.
  2. Pick the Create Earning Rule action (under Loyalties).
  3. Fill in the fields below, then reference the result from later steps as {{createEarningRule.response.data}}.

Request

Path parameters

campaignIdstringrequired

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`.

Response

Returns 200 with a array<object>. Read it in later steps with {{createEarningRule.response.data.<field>}}.

Need more? See the Voucherify guide for connection setup and behaviour shared by every action.

Create Earning Rule — Voucherify — Documentation