Snag Solutions - API Docs (v 0.1)
What’s Changed
GET /api/loyalty/rules
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(array) Changed items (object):-
Changed property
loyaltyRuleChain(array)Chains attached to the loyalty rule
Changed items (object):-
Added property
operatorType(string)Type of the operator. AND if all conditions must be met, OR if any condition can be met.
Enum values:ANDOR
-
Changed property
loyaltyConditions(array) Changed items (object):-
Changed property
association(array) Changed items (object): New required properties:-
loyaltyCurrency
-
Added property
loyaltyCurrency(object)- Property
name(string)Name of the loyalty currency
- Property
-
-
Changed property
-
Added property
-
Changed property
-
Changed property
GET /api/loyalty/rule_chains
Return Type:
Changed response : 200 OK200
-
Changed content type :
application/json-
Changed property
data(array) Changed items (object):-
Added property
operatorType(string)Type of the operator. AND if all conditions must be met, OR if any condition can be met.
-
Changed property
loyaltyConditions(array) Changed items (object):-
Changed property
association(array) Changed items (object): New required properties:-
loyaltyCurrency
- Added property
loyaltyCurrency(object)
-
-
Changed property
-
Added property
-
Changed property
POST /api/loyalty/rule_chains
Request:
Changed content type :application/json
-
Added property
operatorType(string)Type of the condition. AND if all conditions must be met, OR if any condition can be met.
Enum values:ANDOR
-
Changed property
loyaltyConditions(array)Array of conditions for the rule chain
Changed items (object):-
Changed property
type(string)The type of rule
Removed enum values:sectionlevelapicsv
-
Changed property
POST /api/loyalty/rule_chains/
Request:
Changed content type :application/json
-
Added property
operatorType(string)Type of the condition. AND if all conditions must be met, OR if any condition can be met.
-
Changed property
loyaltyConditions(array)Array of conditions for the rule chain
Changed items (object):-
Changed property
type(string)The type of rule
Removed enum values:sectionlevelapicsv
-
Changed property
Result
API changes broke backward compatibility