loyalty
PUT
https://hermeticor.com /v1/loyalty/programs/{id}/wallet Set up Apple and Google Wallet passes (secrets are write-only and stored sealed)
Parameters
idstringpathrequiredRequest body
application/json
organizationNamestringrequiredbackgroundColorstringforegroundColorstringlabelColorstringapplePassTypeIdstringappleTeamIdstringappleCertPemstringappleKeyPemstringappleKeyPassphrasestringappleWwdrPemstringgoogleIssuerIdstringgoogleServiceAccountJsonstringlogoPngBase64string{
"organizationName": "string",
"backgroundColor": "#1f2937",
"foregroundColor": "#ffffff",
"labelColor": "#d1d5db",
"applePassTypeId": "string",
"appleTeamId": "string",
"appleCertPem": "string",
"appleKeyPem": "string",
"appleKeyPassphrase": "string",
"appleWwdrPem": "string",
"googleIssuerId": "string",
"googleServiceAccountJson": "string",
"logoPngBase64": "string"
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/loyalty/programs/{id}/wallet" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"organizationName":"string","backgroundColor":"#1f2937","foregroundColor":"#ffffff","labelColor":"#d1d5db","applePassTypeId":"string","appleTeamId":"string","appleCertPem":"string","appleKeyPem":"string","appleKeyPassphrase":"string","appleWwdrPem":"string","googleIssuerId":"string","googleServiceAccountJson":"string","logoPngBase64":"string"}'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
programIdstringrequiredorganizationNamestringrequiredbackgroundColorstringrequiredforegroundColorstringrequiredlabelColorstringrequiredapplePassTypeIdstringrequiredappleTeamIdstringrequiredappleReadybooleanrequiredgoogleIssuerIdstringrequiredgoogleReadybooleanrequiredlogoUrlstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/loyalty/programs/{id}/passes Issue (or fetch) a member card or reward pass and its install links
Parameters
idstringpathrequiredRequest body
application/json
profileIdstringrequiredvoucherIdstring{
"profileId": "string",
"voucherId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/programs/{id}/passes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"profileId":"string","voucherId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"serialNumber": "string",
"appleUrl": "string",
"googleUrl": "string"
}Schema
serialNumberstringrequiredappleUrlstringrequiredgoogleUrlstringrequiredPOST
https://hermeticor.com /v1/loyalty/programs/{id}/passes/{serial}/replace-link Revoke a pass's install link and return a new one (a card already added to a wallet keeps working)
Parameters
idstringpathrequiredserialstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/loyalty/programs/{id}/passes/{serial}/replace-link" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/loyalty/hub Customer hub settings and its public URL
Code samples
cURL
curl -X GET "https://hermeticor.com/v1/loyalty/hub" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"enabled": true,
"title": "string",
"accentColor": "string",
"shopUrl": "string",
"programId": "string",
"sections": {
"orders": true,
"wishlist": true,
"recommendations": true,
"loyalty": true,
"preferences": true
},
"url": "string"
}Schema
enabledbooleanrequiredtitlestringrequiredaccentColorstringrequiredshopUrlstringprogramIdstringsectionsobjectrequiredShow child parameters
ordersbooleanrequiredwishlistbooleanrequiredrecommendationsbooleanrequiredloyaltybooleanrequiredpreferencesbooleanrequiredurlstringrequiredPUT
https://hermeticor.com /v1/loyalty/hub Request body
application/json
enabledbooleanrequiredtitlestringrequiredaccentColorstringrequiredshopUrlstringprogramIdstringsectionsobjectrequiredShow child parameters
ordersbooleanrequiredwishlistbooleanrequiredrecommendationsbooleanrequiredloyaltybooleanrequiredpreferencesbooleanrequired{
"enabled": true,
"title": "string",
"accentColor": "string",
"shopUrl": "string",
"programId": "string",
"sections": {
"orders": true,
"wishlist": true,
"recommendations": true,
"loyalty": true,
"preferences": true
}
}Code samples
cURL
curl -X PUT "https://hermeticor.com/v1/loyalty/hub" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled":true,"title":"string","accentColor":"string","shopUrl":"string","programId":"string","sections":{"orders":true,"wishlist":true,"recommendations":true,"loyalty":true,"preferences":true}}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /wallet/logo/{ws}/{file} A programme's wallet logo (Google Wallet fetches it from here)
Parameters
wsstringpathrequiredfilestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/wallet/logo/{ws}/{file}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}GET
https://hermeticor.com /loyalty/v1/program Programme name, tiers and rewards for a storefront widget (no member data)
Parameters
programIdstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/loyalty/v1/program" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"pointsName": "string",
"tiers": [
{
"id": "string",
"name": "string",
"threshold": 0,
"benefits": [
"string"
]
}
],
"rewards": [
{
"id": "string",
"name": "string",
"description": "string",
"cost": 0
}
]
}Schema
idstringrequirednamestringrequiredpointsNamestringrequiredtiersobject[]requiredShow child parameters
idstringrequirednamestringrequiredthresholdintegerrequiredbenefitsstring[]requiredrewardsobject[]requiredShow child parameters
idstringrequirednamestringrequireddescriptionstringrequiredcostintegerrequiredGET
https://hermeticor.com /wallet/install/{token} Add a pass to Apple Wallet (download) or Google Wallet (redirect)
Parameters
tostringqueryrequiredtokenstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/wallet/install/{token}?to=apple"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
{}POST
https://hermeticor.com /wallet/apple/{ws}/v1/devices/{device}/registrations/{passType}/{serial} Parameters
wsstringpathrequireddevicestringpathrequiredpassTypestringpathrequiredserialstringpathrequiredRequest body
application/json
pushTokenstringrequired{
"pushToken": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/wallet/apple/{ws}/v1/devices/{device}/registrations/{passType}/{serial}" \
-H "Content-Type: application/json" \
-d '{"pushToken":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
{}Updated