catalog
GET
https://hermeticor.com /v1/catalog/bulk-jobs Filter by resource, op and status; page with nextCursor
Parameters
resourcestringqueryopstringquerystatusstringquerycursorstringquerylimitintegerqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/catalog/bulk-jobs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"resource": "items",
"op": "create",
"status": "queued",
"total": 0,
"succeeded": 0,
"failed": 0,
"errors": [
{
"index": 0,
"message": "string"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:00:00Z"
}
],
"nextCursor": "string"
}Schema
itemsPostV1CatalogBulkJobsResponse[]requiredShow child parameters
idstringrequiredresourcestringrequiredopstringrequiredstatusstringrequiredtotalintegerrequiredsucceededintegerrequiredfailedintegerrequirederrorsErrorsItem3[]requiredShow child parameters
indexintegerrequiredmessagestringrequiredcreatedAtstringrequiredcompletedAtstringrequirednextCursorstring4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/catalog/bulk-jobs Queue up to 1000 records; poll GET /v1/catalog/bulk-jobs/{id}
Request body
application/json
resourcestringrequiredopstringrequiredrecordsobject[]requiredpoolIdstring{
"resource": "items",
"op": "create",
"records": [
{}
],
"poolId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/catalog/bulk-jobs" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"resource":"items","op":"create","records":[{}],"poolId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
202 Default Response
Example
{
"id": "string",
"resource": "items",
"op": "create",
"status": "queued",
"total": 0,
"succeeded": 0,
"failed": 0,
"errors": [
{
"index": 0,
"message": "string"
}
],
"createdAt": "2024-01-01T00:00:00Z",
"completedAt": "2024-01-01T00:00:00Z"
}Schema
idstringrequiredresourcestringrequiredopstringrequiredstatusstringrequiredtotalintegerrequiredsucceededintegerrequiredfailedintegerrequirederrorsErrorsItem3[]requiredShow child parameters
indexintegerrequiredmessagestringrequiredcreatedAtstringrequiredcompletedAtstringrequiredGET
https://hermeticor.com /v1/catalog/bulk-jobs/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/catalog/bulk-jobs/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/coupon-pools/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/v1/coupon-pools/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"name": "string",
"kind": "string",
"lowStockThreshold": 0,
"total": 0,
"available": 0,
"description": "string",
"discountType": "string",
"amount": 0,
"target": "string",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-01-01T00:00:00Z",
"enabled": true,
"redemptionUrl": "string",
"maxUses": 0
}Schema
idstringrequirednamestringrequiredkindstringrequiredlowStockThresholdintegerrequiredtotalintegerrequiredavailableintegerrequireddescriptionstringrequireddiscountTypestringrequiredamountintegerrequiredtargetstringrequiredstartsAtstringrequiredendsAtstringrequiredenabledbooleanrequiredredemptionUrlstringrequiredmaxUsesintegerrequiredDELETE
https://hermeticor.com /v1/coupon-pools/{id} Parameters
idstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/coupon-pools/{id}" \
-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} Rename, set threshold, or edit the promo rule (type, amount, target, dates, enabled)
Parameters
idstringpathrequiredRequest body
application/json
namestringlowStockThresholdintegerdescriptionstringdiscountTypestringamountintegertargetstringstartsAtstringendsAtstringenabledbooleanredemptionUrlstringmaxUsesinteger{
"name": "string",
"lowStockThreshold": 0,
"description": "string",
"discountType": "fixed",
"amount": 0,
"target": "per_item",
"startsAt": "2024-01-01T00:00:00Z",
"endsAt": "2024-01-01T00:00:00Z",
"enabled": true,
"redemptionUrl": "string",
"maxUses": 0
}Code samples
cURL
curl -X PATCH "https://hermeticor.com/v1/coupon-pools/{id}" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"string","lowStockThreshold":0,"description":"string","discountType":"fixed","amount":0,"target":"per_item","startsAt":"2024-01-01T00:00:00Z","endsAt":"2024-01-01T00:00:00Z","enabled":true,"redemptionUrl":"string","maxUses":0}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
GET
https://hermeticor.com /v1/coupon-codes Codes across every pool: by profile, status, expiry range
Parameters
limitintegerquerycursorstringquerystatusstringqueryassignedstringqueryqstringqueryprofileIdstringqueryexpiresFromstringqueryexpiresTostringquerypoolIdstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/coupon-codes" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"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"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem91[]requiredShow child parameters
idstringrequiredpoolIdstringrequiredcodestringrequiredstatusstringrequiredexpiredbooleanrequiredexpiresAtstringrequiredassignedProfileIdstringrequiredassignedAtstringrequiredredeemedAtstringrequiredusageCountintegerrequiredredemptionUrlstringrequirednextCursorstringrequiredUpdated