logoAccess

Toggle auto-renew

POST
/api/v1/customers/portal/me/subscriptions/{id}/auto-renew

Enable or disable auto-renewal on a subscription.

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

Request Body

  1. body
auto_renew*boolean

Enable or disable auto-renewal

Response Body

Response for status 200

application/json
  1. response
id*string
status*string
auto_renew*boolean
curl -X POST 'https://api.tryaccess.xyz/api/v1/customers/portal/me/subscriptions/string/auto-renew' \  -H 'x-api-key: string' \  -H 'Content-Type: application/json' \  -d '{  "auto_renew": true}'
{  "id": "string",  "status": "string",  "auto_renew": true}

How is this guide?