Loyalties
Get Earning Rule
Retrieves an earning rule assigned to a campaign.
get/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}
Request
- Base URLhttps://api.voucherify.io
- URLhttps://api.voucherify.io/v1/loyalties/{campaignId}/earning-rules/{earningRuleId}
- Auth
- API key in header X-App-Id and API key in header X-App-Token
- or OAuth 2Implicit: https://api.voucherify.io/v1/oauth/tokenScopes: api, loyalties
Response
Returns an earning rule object with the earning rule details.
Example response
{
"event": "`order.paid`, `customer.segment.entered`, `customer.loyalty.tier.upgraded`, `customer.loyalty.tier.downgraded`, `customer.loyalty.tier.prolonged`, `customer.loyalty.tier.joined`, `customer.loyalty.tier.left`",
"loyalty_tier": {
"id": "ltr_pudTGWasuIqxdiDM0go31OV1"
},
"validity_timeframe": {
"duration": "PT1H",
"interval": "P2D"
},
"validity_hours": {
"daily": [
{
"start_time": "12:00",
"expiration_time": "14:00"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.