cancelMembership
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsOwning customer JWT or tenant sk01_ write key; a customer JWT takes precedence. Omitted immediate cancels at period end. Only immediate=true revokes benefits now. Cancellation remains available after membership feature loss.
X-Publishable-Key<token>Tenant publishable key for authentication (sent via X-Publishable-Key header)
AuthorizationBearer <JWT>Customer JWT for same-tenant authenticated customer actions
id*stringDocument ID
Customer JWT lane accepts an absent/empty body as {}; sk01_ lane requires a JSON object.
application/json- body
immediate?booleanSuccessful operation
application/json- response
status*string"incomplete""trialing""active""past_due""cancelled""expired"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/string/cancel' \ -H 'Content-Type: application/json' \ -d '{}'{ "status": "incomplete"}