Documentation
¶
Overview ¶
Package invite exposes the commerce paywall's invite-code HTTP surface:
POST /v1/commerce/invite/redeem {code} — the caller's org claims a code
POST /v1/commerce/invite {code,note?} — platform-admin mints a code
The engine (billing/invite) is the referrals code→org primitive reimplemented natively on commerce's datastore. Redeem binds the code to the VALIDATED caller's org (first-touch, idempotent); mint is platform-superadmin only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Mint ¶
Mint creates an invite code. Platform-superadmin only: invite codes grant subscription-free access, so an org-level admin must never mint one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.