Dashboard
APISubscription Bot User Membership Extension API
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Examples
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Extend a User’s Subscription Bot Memberships

Move all eligible memberships belonging to the specified user within this project forward to a target date. This can affect memberships for multiple plans.

Only extend is accepted in the body. Sending membership_ids or all_memberships returns 422. To select a particular membership or a batch by ID, use selected membership extension.

Memberships that already end later, lifetime memberships, and expired memberships whose plan is full are skipped. More than 10,000 memberships for this user returns 409 without changes. This sets an end date, not an additional duration; sending the same date again does not extend twice.

Use the project membership list to inspect the resulting memberships.

PATCH/v2/projects/{project_id}/memberships/{user_id}/extend

Authorization

Bearer API KeyRequired

API key scope: memberships:update (required for restricted keys).

Path Parameters

project_idstringrequired

The unique identifier of the project.

user_idstringrequired

The user whose eligible memberships to extend across all plans in this project.

Request Body

extendstring | numberrequired

Future absolute expiry in UTC ISO format YYYY-MM-DDTHH:mm:ss.sssZ, for example 2030-01-01T00:00:00.000Z. Also accepts 13-digit Unix milliseconds for compatibility.

Last updated: