POST /user/:userID/upgrade

Upgrade users from your backend, the simple way. You can upgrade them to Basic, Pro or lifetime and get billed monthly.

Upgrade the subscription plan of your user

Call the Rezi API below with the information required.

Upgrade plan of your user

POST https://open-api.rezi.ai/v1/plan/upgrade

This endpoint allows you to upgrade an already created users. You will need to provide email of your user

Headers

Name
Type
Description

Content-type*

string

"application/json"

Authentication*

string

"Bearer PRIVATE_TOKEN_API_KEY" Authentication token to secure and track down your usage. Use this specific format with your Private API key

Request Body

Name
Type
Description

planId*

string

ID of target plan to upgrade. Those plan ID is provided by your account manager

email*

string

Email of the user your want to upgrade.

aiTokenId

string

ID of AI credits join to the upgrade. This ID is provided by your account manager

{
    "status": "success",
    "data": {
        "created": 1646034967,
        "current_period_start": 1646296033,
        "current_period_end": 1648974433,
        "status": "active",
        "plan_id": "planId_from_api"
    }
}

Last updated