subscribeMembership
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsPOST
Requires an sk01_ key with write scope. Paid subscriptions return a first-charge instruction; only signed result or reconciliation can activate them. Same-key replay preserves the admitted snapshot.
serverSecretKeyheader
AuthorizationBearer <token>Public integration credential: opaque sk01_ secret API key only; PAT and Customer JWT are not supported by this scheme. Requires tenant binding and the read or write scope named by the operation.
X-Idempotency-Key*stringLength
1 <= lengthapplication/json- body
planId*stringLength
1 <= lengthpriceId*stringLength
1 <= lengthcustomerId*stringLength
1 <= lengthcustomerRef*stringLength
1 <= lengthcard?Successful operation
application/json- response
membershipId*stringLength
1 <= lengthstatus*"trialing"Value in
"trialing"Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/memberships/subscribe' \ -H 'X-Idempotency-Key: string' \ -H 'Content-Type: application/json' \ -d '{ "planId": "string", "priceId": "string", "customerId": "string", "customerRef": "string"}'Example Response
{ "membershipId": "string", "status": "trialing"}