newsletter
GET
https://hermeticor.com /v1/newsletter/members Parameters
statusstringquerytierIdstringquerylimitintegerquerycursorstringqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/members" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"items": [
{
"id": "string",
"profileId": "string",
"email": "string",
"tierId": "string",
"tierName": "string",
"status": "trialing",
"interval": "month",
"source": "string",
"mrrMinor": 0,
"currency": "string",
"periodEnd": "2024-01-01T00:00:00Z",
"trialEnd": "2024-01-01T00:00:00Z",
"cancelAtPeriodEnd": true,
"stripeCustomerId": "string",
"stripeSubscriptionId": "string"
}
],
"nextCursor": "string"
}Schema
itemsItemsItem194[]requiredShow child parameters
idstringrequiredprofileIdstringrequiredemailstringrequiredtierIdstringrequiredtierNamestringrequiredstatusstringrequiredintervalstringrequiredsourcestringrequiredmrrMinorintegerrequiredcurrencystringrequiredperiodEndstringrequiredtrialEndstringrequiredcancelAtPeriodEndbooleanrequiredstripeCustomerIdstringrequiredstripeSubscriptionIdstringrequirednextCursorstringrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectPOST
https://hermeticor.com /v1/newsletter/members/comp Grant free paid access (optionally until a date)
Request body
application/json
emailstringprofileIdstringtierIdstringrequiredexpiresAtstring{
"email": "string",
"profileId": "string",
"tierId": "string",
"expiresAt": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/comp" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"email":"string","profileId":"string","tierId":"string","expiresAt":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"id": "string",
"profileId": "string",
"email": "string",
"tierId": "string",
"tierName": "string",
"status": "trialing",
"interval": "month",
"source": "string",
"mrrMinor": 0,
"currency": "string",
"periodEnd": "2024-01-01T00:00:00Z",
"trialEnd": "2024-01-01T00:00:00Z",
"cancelAtPeriodEnd": true,
"stripeCustomerId": "string",
"stripeSubscriptionId": "string"
}Schema
idstringrequiredprofileIdstringrequiredemailstringrequiredtierIdstringrequiredtierNamestringrequiredstatusstringrequiredintervalstringrequiredsourcestringrequiredmrrMinorintegerrequiredcurrencystringrequiredperiodEndstringrequiredtrialEndstringrequiredcancelAtPeriodEndbooleanrequiredstripeCustomerIdstringrequiredstripeSubscriptionIdstringrequiredDELETE
https://hermeticor.com /v1/newsletter/members/{profileId}/comp Parameters
profileIdstringpathrequiredCode samples
cURL
curl -X DELETE "https://hermeticor.com/v1/newsletter/members/{profileId}/comp" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"ok": true
}Schema
okbooleanrequiredPOST
https://hermeticor.com /v1/newsletter/members/import Import paid subscribers with their existing Stripe customer/subscription ids. Reads from Stripe only: nobody is charged or re-subscribed.
Request body
application/json
rowsobject[]requiredShow child parameters
emailstringrequiredstripeCustomerIdstringstripeSubscriptionIdstringtierIdstringrequiredintervalstringstatusstringperiodEndstringamountMinorintegerdryRunbooleanattestedBystring{
"rows": [
{
"email": "string",
"stripeCustomerId": "string",
"stripeSubscriptionId": "string",
"tierId": "string",
"interval": "month",
"status": "active",
"periodEnd": "2024-01-01T00:00:00Z",
"amountMinor": 0
}
],
"dryRun": false,
"attestedBy": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/import" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"rows":[{"email":"string","stripeCustomerId":"string","stripeSubscriptionId":"string","tierId":"string","interval":"month","status":"active","periodEnd":"2024-01-01T00:00:00Z","amountMinor":0}],"dryRun":false,"attestedBy":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"imported": 0,
"failed": [
{
"row": 0,
"error": "string"
}
],
"dryRun": true
}Schema
importedintegerrequiredfailedErrorsItem2[]requiredShow child parameters
rowintegerrequirederrorstringrequireddryRunbooleanrequiredPOST
https://hermeticor.com /v1/newsletter/members/{profileId}/change-plan Upgrade or downgrade (prorated)
Parameters
profileIdstringpathrequiredRequest body
application/json
tierIdstringrequiredintervalstring{
"tierId": "string",
"interval": "month"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/{profileId}/change-plan" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"tierId":"string","interval":"month"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/members/{profileId}/cancel Cancel at period end, or immediately
Parameters
profileIdstringpathrequiredRequest body
application/json
immediatelyboolean{
"immediately": false
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/{profileId}/cancel" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"immediately":false}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/members/{profileId}/resume Parameters
profileIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/{profileId}/resume" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/members/{profileId}/pause Parameters
profileIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/{profileId}/pause" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /v1/newsletter/members/{profileId}/portal Stripe customer portal link for this member
Parameters
profileIdstringpathrequiredRequest body
application/json
returnUrlstring{
"returnUrl": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/v1/newsletter/members/{profileId}/portal" \
-H "Authorization: Bearer $HERMETICOR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"returnUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string"
}Schema
urlstringrequiredUpdated