GET /v2/event/templates/{templateId}/entitlements
Gets the entitlements config for the event template ID
Input:
templateId - path variable, required. The event template Id
Header:
x-acme-api-key
Output:
The entitlements config object.
POST /v2/event/templates/{templateId}/entitlements
Gets the entitlements config for the event template ID
Input:
templateId - path variable, required. The event template Id
entitlementsConfigObject - Request body, required. The entitlement configuration for the event template.
Output:
The entitlements config object.
PUT /v2/event/templates/{templateId}/entitlements
Gets the entitlements config for the event template ID
Input:
templateId - path variable, required. The event template Id
publish - boolean, optional, defaults to false.
entitlementsConfigObject - Request body, required. The entitlement configuration for the event template.
Output:
The entitlements config object.
NO SUPPORT FOR DELETE OPERATION YET.
The appropriate operations will also happen automatically while performing GETs, POSTs and PUTs for an event template.
Entitlement config object:
Sample JSON:
There are 3 rules under entitlementConfig
- Member rules - Currently exists in prod
- limit sales of private party to 1 per instance (ridge use case)
- prevent sales of private party if Adult, Senior is greater than 5 per event instance (ridge use case)
1.Limit sales of private party to 1 per instance (ridge use case)
2. Prevent sales of private party if Adult, Senior is greater than 5 per event instance (ridge use case)
ruleApplies - forEachItem, acrossAllItems
timeFrame.period - day,week,month,year,lifetime