Skip to main content
POST
/
v1
/
registrar
/
domains
/
{domain}
/
renew
renewDomain
import { Vercel } from "@vercel/sdk";

const vercel = new Vercel({
  bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});

async function run() {
  const result = await vercel.domainsRegistrar.renewDomain({
    domain: "scaly-daughter.biz",
    teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l",
    requestBody: {
      years: 1981.72,
      expectedPrice: 7096.16,
    },
  });

  console.log(result);
}

run();
{
  "orderId": "<string>",
  "_links": {}
}

Authorizations

Authorization
string
header
required

Default authentication mechanism

Path Parameters

domain
string
required

Query Parameters

teamId
string
Example:

"team_1a2b3c4d5e6f7g8h9i0j1k2l"

Body

application/json
years
number
required

The number of years to renew the domain for.

expectedPrice
number
required

The expected price for the domain. Use the Get price data for a domain endpoint to retrieve the price data for a domain.

Required range: x >= 0.01
contactInformation
object

Response

Success

orderId
string
required
I