loyalty
GET
https://hermeticor.com /v1/loyalty/programs/{id}/tiers Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/tiers" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"programId": "string",
"name": "string",
"threshold": 0,
"multiplierPct": 0,
"benefits": [
"string"
]
}
],
"nextCursor": "string"
}Schema
itemsItemsItem232[]requiredShow child parameters
idstringrequiredprogramIdstringrequirednamestringrequiredthresholdintegerrequiredmultiplierPctintegerrequiredbenefitsstring[]requirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/loyalty/programs/{id}/tiers Parameters
idstringpathrequiredRequest body
application/json
namestringrequiredthresholdintegerrequiredmultiplierPctintegerbenefitsstring[]{
"name": "string",
"threshold": 0,
"multiplierPct": 100,
"benefits": []
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/programs/{id}/tiers" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","threshold":0,"multiplierPct":100,"benefits":[]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"programId": "string",
"name": "string",
"threshold": 0,
"multiplierPct": 0,
"benefits": [
"string"
]
}Schema
idstringrequiredprogramIdstringrequirednamestringrequiredthresholdintegerrequiredmultiplierPctintegerrequiredbenefitsstring[]requiredDELETE
https://hermeticor.com /v1/loyalty/programs/{id}/tiers/{subId} Parameters
idstringpathrequiredsubIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/loyalty/programs/{id}/tiers/{subId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPATCH
https://hermeticor.com /v1/loyalty/programs/{id}/tiers/{subId} Parameters
idstringpathrequiredsubIdstringpathrequiredRequest body
application/json
namestringthresholdintegermultiplierPctintegerbenefitsstring[]{
"name": "string",
"threshold": 0,
"multiplierPct": 0,
"benefits": [
"string"
]
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/loyalty/programs/{id}/tiers/{subId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","threshold":0,"multiplierPct":0,"benefits":["string"]}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/loyalty/programs/{id}/rewards Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/rewards" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"programId": "string",
"name": "string",
"description": "string",
"cost": 0,
"poolId": "string",
"enabled": true
}
],
"nextCursor": "string"
}Schema
itemsItemsItem233[]requiredShow child parameters
idstringrequiredprogramIdstringrequirednamestringrequireddescriptionstringrequiredcostintegerrequiredpoolIdstringrequiredenabledbooleanrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/loyalty/programs/{id}/rewards A reward costs points and hands out a code from a coupon pool
Parameters
idstringpathrequiredRequest body
application/json
namestringrequireddescriptionstringcostintegerrequiredpoolIdstringrequiredenabledboolean{
"name": "string",
"description": "string",
"cost": 0,
"poolId": "string",
"enabled": true
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/programs/{id}/rewards" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","cost":0,"poolId":"string","enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"programId": "string",
"name": "string",
"description": "string",
"cost": 0,
"poolId": "string",
"enabled": true
}Schema
idstringrequiredprogramIdstringrequirednamestringrequireddescriptionstringrequiredcostintegerrequiredpoolIdstringrequiredenabledbooleanrequiredDELETE
https://hermeticor.com /v1/loyalty/programs/{id}/rewards/{subId} Parameters
idstringpathrequiredsubIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/loyalty/programs/{id}/rewards/{subId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
PATCH
https://hermeticor.com /v1/loyalty/programs/{id}/rewards/{subId} Parameters
idstringpathrequiredsubIdstringpathrequiredRequest body
application/json
namestringdescriptionstringcostintegerpoolIdstringenabledboolean{
"name": "string",
"description": "string",
"cost": 0,
"poolId": "string",
"enabled": true
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/loyalty/programs/{id}/rewards/{subId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","cost":0,"poolId":"string","enabled":true}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/loyalty/programs/{id}/members Parameters
limitintegerquerycursorstringquerytierIdstringqueryminBalanceintegerqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/members" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"programId": "string",
"profileId": "string",
"balance": 0,
"lifetimePoints": 0,
"tierId": "string",
"tierName": "string",
"expiringSoon": 0,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem234[]requiredShow child parameters
programIdstringrequiredprofileIdstringrequiredbalanceintegerrequiredlifetimePointsintegerrequiredtierIdstringrequiredtierNamestringrequiredexpiringSoonintegerrequiredcreatedAtstringrequiredupdatedAtstringrequirednextCursorstringrequiredUpdated