Skip to main content
POST
/
v1
/
teams
/
{team_id}
/
billing
/
upgrade
Create Checkout Session
curl --request POST \
  --url https://api.dataraven.io/v1/teams/{team_id}/billing/upgrade \
  --header 'Authorization: Bearer <token>'
{
  "checkout_url": "<string>",
  "team_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string<uuid>
required

Response

Successful Response

Response containing Polar checkout session URL.

The frontend should open this URL in a new tab/window to redirect the user to Polar's checkout page for PRO tier upgrade.

checkout_url
string
required

URL to Polar checkout session

team_id
string
required

Team UUID being upgraded