catalog
POST
https://hermeticor.com /v1/coupon-pools/{id}/codes/one Add one code with an optional expiry
Parameters
idstringpathrequiredRequest body
application/json
codestringrequiredexpiresAtstringredemptionUrlstring{
"code": "string",
"expiresAt": "2024-01-01T00:00:00Z",
"redemptionUrl": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/coupon-pools/{id}/codes/one" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"string","expiresAt":"2024-01-01T00:00:00Z","redemptionUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"poolId": "string",
"code": "string",
"status": "active",
"expired": true,
"expiresAt": "2024-01-01T00:00:00Z",
"assignedProfileId": "string",
"assignedAt": "2024-01-01T00:00:00Z",
"redeemedAt": "2024-01-01T00:00:00Z",
"usageCount": 0,
"redemptionUrl": "string"
}Schema
idstringrequiredpoolIdstringrequiredcodestringrequiredstatusstringrequiredexpiredbooleanrequiredexpiresAtstringrequiredassignedProfileIdstringrequiredassignedAtstringrequiredredeemedAtstringrequiredusageCountintegerrequiredredemptionUrlstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/coupon-pools/{id}/codes/redeem Mark a code redeemed (from an order event)
Parameters
idstringpathrequiredRequest body
application/json
codestringrequiredkeystring{
"code": "string",
"key": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/coupon-pools/{id}/codes/redeem" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"code":"string","key":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/coupon-pools/{id}/codes/{codeId} Parameters
idstringpathrequiredcodeIdstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/coupon-pools/{id}/codes/{codeId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
DELETE
https://hermeticor.com /v1/coupon-pools/{id}/codes/{codeId} Parameters
idstringpathrequiredcodeIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/coupon-pools/{id}/codes/{codeId}" \
-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/coupon-pools/{id}/codes/{codeId} Disable/enable, set expiry, or assign to / release from a profile
Parameters
idstringpathrequiredcodeIdstringpathrequiredRequest body
application/json
statusstringexpiresAtstringprofileIdstringredemptionUrlstring{
"status": "active",
"expiresAt": "2024-01-01T00:00:00Z",
"profileId": "string",
"redemptionUrl": "string"
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/coupon-pools/{id}/codes/{codeId}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"active","expiresAt":"2024-01-01T00:00:00Z","profileId":"string","redemptionUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/web-feeds Parameters
limitintegerqueryPage size; omitted returns the whole list
cursorstringqueryOpaque: the
nextCursor of the previous pageCode samples
cURL
curl -X GET "https://hermeticor.com/v1/web-feeds" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"name": "string",
"url": "string",
"format": "json",
"refreshHours": 0,
"method": "GET",
"requestBody": "string",
"lastFetchedAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"cached": true
}
],
"nextCursor": "string"
}Schema
itemsItemsItem95[]requiredShow child parameters
idstringrequirednamestringrequiredurlstringrequiredformatstringrequiredrefreshHoursintegerrequiredmethodstringrequiredrequestBodystringrequiredlastFetchedAtstringrequiredlastErrorstringrequiredcachedbooleanrequirednextCursorstringrequiredPOST
https://hermeticor.com /v1/web-feeds JSON or RSS URL fetched on a schedule and cached; first fetch is queued now
Request body
application/json
namestringrequiredurlstringrequiredformatstringrefreshHoursintegermethodstringrequestBodystring{
"name": "string",
"url": "string",
"format": "json",
"refreshHours": 6,
"method": "GET",
"requestBody": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/web-feeds" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","url":"string","format":"json","refreshHours":6,"method":"GET","requestBody":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
201 Default Response
Example
{
"id": "string",
"name": "string",
"url": "string",
"format": "json",
"refreshHours": 0,
"method": "GET",
"requestBody": "string",
"lastFetchedAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"cached": true
}Schema
idstringrequirednamestringrequiredurlstringrequiredformatstringrequiredrefreshHoursintegerrequiredmethodstringrequiredrequestBodystringrequiredlastFetchedAtstringrequiredlastErrorstringrequiredcachedbooleanrequiredGET
https://hermeticor.com /v1/web-feeds/{id} Includes the cached body
Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/web-feeds/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"url": "string",
"format": "json",
"refreshHours": 0,
"method": "GET",
"requestBody": "string",
"lastFetchedAt": "2024-01-01T00:00:00Z",
"lastError": "string",
"cached": true,
"cache": {}
}Schema
idstringrequirednamestringrequiredurlstringrequiredformatstringrequiredrefreshHoursintegerrequiredmethodstringrequiredrequestBodystringrequiredlastFetchedAtstringrequiredlastErrorstringrequiredcachedbooleanrequiredcacherequiredDELETE
https://hermeticor.com /v1/web-feeds/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/web-feeds/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
Updated