Cancel my subscription
POST
Cancel a subscription at the end of its current period. It stays active until current_period_end and stops renewing.
portalTokenheader
AuthorizationBearer <token>Portal session token. Obtain via POST /v1/portal/sessions.
id*stringx-api-key*stringAPI key for authentication
Length
1 <= lengthResponse for status 200
application/json- response
id*stringstatus*stringcancel_at_period_end*booleancurrent_period_end*stringThe customer keeps access until this time
curl -X POST 'https://api.tryaccess.xyz/api/v1/customers/portal/me/subscriptions/string/cancel' \ -H 'x-api-key: string'{ "id": "string", "status": "string", "cancel_at_period_end": true, "current_period_end": "string"}How is this guide?