newsletter
GET
https://hermeticor.com /v1/newsletter/revenue MRR, ARR, churn, ARPU, LTV, trial conversion, by tier and by month
Parameters
monthsintegerqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/revenue" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"currency": "string",
"mrrMinor": 0,
"arrMinor": 0,
"activePaid": 0,
"trialing": 0,
"newLast30": 0,
"churnedLast30": 0,
"churnRate": 0,
"arpuMinor": 0,
"ltvMinor": 0,
"trialConversion": 0,
"byTier": [
{
"tierId": "string",
"name": "string",
"members": 0,
"mrrMinor": 0
}
],
"byMonth": [
{
"month": "string",
"newPaid": 0,
"churned": 0,
"netNew": 0,
"mrrMinor": 0,
"revenueMinor": 0,
"tipsMinor": 0
}
]
}Schema
currencystringrequiredmrrMinorintegerrequiredarrMinorintegerrequiredactivePaidintegerrequiredtrialingintegerrequirednewLast30integerrequiredchurnedLast30integerrequiredchurnRatenumberrequiredarpuMinorintegerrequiredltvMinorintegerrequiredtrialConversionnumberrequiredbyTierobject[]requiredShow child parameters
tierIdstringrequirednamestringrequiredmembersintegerrequiredmrrMinorintegerrequiredbyMonthobject[]requiredShow child parameters
monthstringrequirednewPaidintegerrequiredchurnedintegerrequirednetNewintegerrequiredmrrMinorintegerrequiredrevenueMinorintegerrequiredtipsMinorintegerrequired4XX Default Response
Example
{
"error": {
"code": "string",
"message": "string",
"details": {}
}
}Schema
errorobjectrequiredShow child parameters
codestringrequiredmessagestringrequireddetailsobjectGET
https://hermeticor.com /v1/newsletter/revenue.csv Revenue by month as CSV
Parameters
monthsintegerqueryCode samples
cURL
curl -X GET "https://hermeticor.com/v1/newsletter/revenue.csv" \
-H "Authorization: Bearer $HERMETICOR_API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /webhooks/stripe-memberships/{workspaceId} Parameters
workspaceIdstringpathrequiredCode samples
cURL
curl -X POST "https://hermeticor.com/webhooks/stripe-memberships/{workspaceId}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"received": true
}Schema
receivedbooleanrequiredPOST
https://hermeticor.com /p/checkout/{ws} Public: start a paid subscription Checkout (used by paywall and subscribe pages)
Parameters
wsstringpathrequiredRequest body
application/json
emailstringrequiredtierIdstringrequiredintervalstringcouponCodestringseatsintegersuccessUrlstringcancelUrlstringoptInbooleanfromPostIdstring{
"email": "string",
"tierId": "string",
"interval": "month",
"couponCode": "string",
"seats": 0,
"successUrl": "string",
"cancelUrl": "string",
"optIn": false,
"fromPostId": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/p/checkout/{ws}" \
-H "Content-Type: application/json" \
-d '{"email":"string","tierId":"string","interval":"month","couponCode":"string","seats":0,"successUrl":"string","cancelUrl":"string","optIn":false,"fromPostId":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"url": "string"
}Schema
urlstringrequiredPOST
https://hermeticor.com /p/tip/{ws} Public: tip or pay-what-you-want one-off payment
Parameters
wsstringpathrequiredRequest body
application/json
emailstringamountMinorintegerrequiredcurrencystringmessagestringsuccessUrlstringcancelUrlstring{
"email": "string",
"amountMinor": 0,
"currency": "string",
"message": "string",
"successUrl": "string",
"cancelUrl": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/p/tip/{ws}" \
-H "Content-Type: application/json" \
-d '{"email":"string","amountMinor":0,"currency":"string","message":"string","successUrl":"string","cancelUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
POST
https://hermeticor.com /p/gift-buy/{ws} Public: buy a gift subscription (returns the Checkout link)
Parameters
wsstringpathrequiredRequest body
application/json
buyerEmailstringrequiredrecipientEmailstringtierIdstringrequiredintervalstringmessagestringsuccessUrlstringcancelUrlstring{
"buyerEmail": "string",
"recipientEmail": "string",
"tierId": "string",
"interval": "year",
"message": "string",
"successUrl": "string",
"cancelUrl": "string"
}Code samples
cURL
curl -X POST "https://hermeticor.com/p/gift-buy/{ws}" \
-H "Content-Type: application/json" \
-d '{"buyerEmail":"string","recipientEmail":"string","tierId":"string","interval":"year","message":"string","successUrl":"string","cancelUrl":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
Example
{
"gift": {
"id": "string",
"tierId": "string",
"interval": "month",
"status": "pending_payment",
"recipientEmail": "string",
"buyerEmail": "string",
"redeemUrl": "string",
"redeemedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
},
"checkoutUrl": "string"
}Schema
giftobjectrequiredShow child parameters
idstringrequiredtierIdstringrequiredintervalstringrequiredstatusstringrequiredrecipientEmailstringrequiredbuyerEmailstringrequiredredeemUrlstringrequiredredeemedAtstringrequiredcreatedAtstringrequiredcheckoutUrlstringrequiredGET
https://hermeticor.com /p/gift/{ws}/{code} Gift redeem page
Parameters
wsstringpathrequiredcodestringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/gift/{ws}/{code}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/gift/{ws}/{code} Redeem a gift subscription for an email address
Parameters
wsstringpathrequiredcodestringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/gift/{ws}/{code}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
GET
https://hermeticor.com /p/account/{token} Reader account page behind a signed link: plan, invoices, change plan, cancel
Parameters
tokenstringpathrequiredCode samples
cURL
curl -X GET "https://hermeticor.com/p/account/{token}"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
POST
https://hermeticor.com /p/account/{token}/{action} Account page actions (change plan, cancel, resume, billing portal, team seats)
Parameters
tokenstringpathrequiredactionstringpathrequiredRequest body
application/json
{}Code samples
cURL
curl -X POST "https://hermeticor.com/p/account/{token}/{action}" \
-H "Content-Type: application/json" \
-d '{}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 Default Response
"string"
Updated