loyalty
GET
https://hermeticor.com /v1/loyalty/programs/{id}/members/{profileId} Parameters
idstringpathrequiredprofileIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/members/{profileId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"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"
}Schema
programIdstringrequiredprofileIdstringrequiredbalanceintegerrequiredlifetimePointsintegerrequiredtierIdstringrequiredtierNamestringrequiredexpiringSoonintegerrequiredcreatedAtstringrequiredupdatedAtstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/loyalty/programs/{id}/members/{profileId}/vouchers Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageidstringpathrequiredprofileIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/members/{profileId}/vouchers" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"programId": "string",
"profileId": "string",
"rewardId": "string",
"code": "string",
"status": "issued",
"usedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem235[]requiredShow child parameters
idstringrequiredprogramIdstringrequiredprofileIdstringrequiredrewardIdstringrequiredcodestringrequiredstatusstringrequiredusedAtstringrequiredcreatedAtstringrequirednextCursorstringrequiredGET
https://hermeticor.com /v1/loyalty/programs/{id}/transactions The points ledger (append-only), newest first
Parameters
limitintegerquerycursorstringqueryprofileIdstringquerykindstringqueryidstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/transactions" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"programId": "string",
"profileId": "string",
"delta": 0,
"kind": "earn",
"reason": "string",
"sourceKey": "string",
"ruleId": "string",
"rewardId": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"balanceAfter": 0,
"createdAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem236[]requiredShow child parameters
idstringrequiredprogramIdstringrequiredprofileIdstringrequireddeltaintegerrequiredkindstringrequiredreasonstringrequiredsourceKeystringrequiredruleIdstringrequiredrewardIdstringrequiredexpiresAtstringrequiredbalanceAfterintegerrequiredcreatedAtstringrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/loyalty/programs/{id}/adjust Add or remove points by hand (send `key` to make a retry count once)
Parameters
idstringpathrequiredRequest body
application/json
profileIdstringrequireddeltaintegerrequiredreasonstringrequiredkeystring{
"profileId": "string",
"delta": 0,
"reason": "string",
"key": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/programs/{id}/adjust" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","delta":0,"reason":"string","key":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"programId": "string",
"profileId": "string",
"delta": 0,
"kind": "earn",
"reason": "string",
"sourceKey": "string",
"ruleId": "string",
"rewardId": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"balanceAfter": 0,
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredprogramIdstringrequiredprofileIdstringrequireddeltaintegerrequiredkindstringrequiredreasonstringrequiredsourceKeystringrequiredruleIdstringrequiredrewardIdstringrequiredexpiresAtstringrequiredbalanceAfterintegerrequiredcreatedAtstringrequiredPOST
https://hermeticor.com /v1/loyalty/programs/{id}/redeem Spend points on a reward; returns the coupon code
Parameters
idstringpathrequiredRequest body
application/json
profileIdstringrequiredrewardIdstringrequiredkeystring{
"profileId": "string",
"rewardId": "string",
"key": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/programs/{id}/redeem" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","rewardId":"string","key":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"programId": "string",
"profileId": "string",
"rewardId": "string",
"code": "string",
"status": "issued",
"usedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredprogramIdstringrequiredprofileIdstringrequiredrewardIdstringrequiredcodestringrequiredstatusstringrequiredusedAtstringrequiredcreatedAtstringrequiredPOST
https://hermeticor.com /v1/loyalty/vouchers/{id}/use Mark a reward code used (also redeems the coupon code)
Parameters
idstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/vouchers/{id}/use" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/loyalty/programs/{id}/wallet Wallet pass settings (never the certificate or keys)
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/programs/{id}/wallet" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"programId": "string",
"organizationName": "string",
"backgroundColor": "string",
"foregroundColor": "string",
"labelColor": "string",
"applePassTypeId": "string",
"appleTeamId": "string",
"appleReady": true,
"googleIssuerId": "string",
"googleReady": true,
"logoUrl": "string"
}Schema
programIdstringrequiredorganizationNamestringrequiredbackgroundColorstringrequiredforegroundColorstringrequiredlabelColorstringrequiredapplePassTypeIdstringrequiredappleTeamIdstringrequiredappleReadybooleanrequiredgoogleIssuerIdstringrequiredgoogleReadybooleanrequiredlogoUrlstringrequiredUpdated