logoAccess

Change my billing interval

POST
/api/v1/customers/portal/me/subscriptions/{id}/change-interval

Change the billing interval on a subscription. By default takes effect at next renewal.

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
new_interval*string
Value in"Monthly""Yearly"
effective_now?boolean

Apply immediately or at next renewal

Defaultfalse

Response Body

Response for status 200

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

How is this guide?