LogicSRC standards surface

OpenSaaS

One file a subscription service serves about how to deal with it: the way in and the way out of every plan, for a person and for an agent, in the same place.

Subscribing takes one click. Cancelling takes a support ticket, a phone call in office hours and a retention screen. The way in is on the pricing page; the way out is nowhere a search finds, and an agent asked to cancel what a person does not use cannot. The service already has a plan table, a cancel endpoint and a refund rule. OpenSaaS is those, exported, at /.well-known/opensaas.json: every action as the page a person opens and the api an agent calls with an OpenAccess scope.

Status: 0.1. The first directory reading it is the saas collection at nichedb.dev, and the first service serving one is nichedb.dev itself. The smallest valid file is a service with a name and one action with a page.

The descriptor

A cancel endpoint fetched from the service's own origin is a cancel endpoint the service says works. That is the whole verification.

{
  "service": { "name": "NicheDB", "web": "https://nichedb.dev",
               "openaccess": "https://nichedb.dev/.well-known/openaccess.json",
               "terms": "https://nichedb.dev/terms", "currency": "USD" },
  "updated": "2026-09-13T06:00:00Z",
  "plans": [
    { "id": "premium", "name": "Premium", "price": 1, "period": "day", "renews": true,
      "url": "https://nichedb.dev/premium", "includes": ["no ads", "no tracker"] },
    { "id": "pro", "name": "Pro", "price": 30, "period": "month", "trial": "14 days",
      "renews": true, "url": "https://nichedb.dev/pro" }
  ],
  "actions": {
    "subscribe": { "page": "https://nichedb.dev/premium",
                   "api": { "method": "POST", "url": "https://nichedb.dev/api/v1/billing/subscribe" },
                   "scope": "billing:subscribe", "steps": 2, "requires": ["account", "payment"] },
    "cancel":    { "page": "https://nichedb.dev/account/billing",
                   "api": { "method": "POST", "url": "https://nichedb.dev/api/v1/billing/cancel" },
                   "scope": "billing:cancel", "steps": 1, "confirm": "click",
                   "effective": "period-end", "refund": "none" },
    "unsubscribe": { "page": "https://nichedb.dev/account/mail", "scope": "mail:unsubscribe",
                     "api": { "method": "POST", "url": "https://nichedb.dev/api/v1/mail/unsubscribe" },
                     "steps": 1, "list_unsubscribe": true },
    "export":    { "page": "https://nichedb.dev/account/export", "scope": "account:export",
                   "api": { "method": "POST", "url": "https://nichedb.dev/api/v1/account/export" },
                   "steps": 1, "formats": ["json"], "within": "P1D" },
    "delete":    { "page": "https://nichedb.dev/account/delete", "scope": "account:delete",
                   "api": { "method": "POST", "url": "https://nichedb.dev/api/v1/account/delete" },
                   "steps": 2, "confirm": "email", "effective": "immediate", "retention": "P30D" }
  },
  "policies": { "auto_renew": true, "renewal_notice": "P7D", "price_change_notice": "P30D" }
}

Eight actions

unsubscribe is about mail and cancel is about the plan, and they are two actions because services conflate them on purpose. Unknown actions are kept under their own name.

actionwhat it doesits own keys
subscribestart a planrequires: account, payment, card, invoice, approval
cancelend the planeffective: immediate or period-end; refund: none, prorated, full, P14D, or a URL
pausestop paying for a whilemax: the longest pause, as a duration
resumecome back from a pause
change_planmove to another planproration: immediate, period-end, none
unsubscribestop the mail, not the planlist_unsubscribe: true when RFC 8058 headers are in the mail
exporttake your dataformats, and within: how long it takes
deleteclose the accountretention: how long the data lives after

One action, both readers

Every action carries the same five keys. An action with a page and no api can only be done by a person; one with an api and no page only by an agent; a directory shows which.

pageThe URL a person opens. The human half of the action, and the one place the way out is written down beside the way in.
api{ method, url } an agent calls with an OpenAccess bearer. Answers done, scheduled, pending with a next, or refused with a reason.
scopeThe OpenAccess scope the bearer must carry, defined in the service's own openaccess.json with a line a person reads on the consent screen.
stepsHow many things a person does from page to done. cancel.steps against subscribe.steps is the number a directory shows first.
confirmWhat the service demands before it takes: none, click, email, password, chat, call, mail. The last three are the ones a directory flags.

What is deliberately absent

No checkoutsubscribe.api starts a plan for a person with a way to pay on file, or answers pending with the page to add one. Payment is the processor's business.
No retention offersA discount on the way out is offered on page, to a person. cancel.api cancels.
No account dataThe file describes actions, not the account. The current plan comes from the service's API under the reserved entitlements scope.
No badgessteps and confirm are the service's own statements. A directory that scores exit ease labels the score as its own and shows the numbers.

Where everything lives