logoAccess

Cancel my subscription

POST
/api/v1/customers/portal/me/subscriptions/{id}/cancel

Cancel a subscription at the end of its current period. It stays active until current_period_end and stops renewing.

Authorization

portalToken
headerAuthorizationBearer <token>

Portal session token. Obtain via POST /v1/portal/sessions.

Path Parameters

id*string

Header Parameters

x-api-key*string

API key for authentication

Length1 <= length

Response Body

Response for status 200

application/json
  1. response
id*string
status*string
cancel_at_period_end*boolean
current_period_end*string

The 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?