import { BuyDomainRequestBody } from "@vercel/sdk/models/buydomainop.js";
let value: BuyDomainRequestBody = {
name: "example.com",
expectedPrice: 10,
renew: true,
country: "US",
orgName: "Acme Inc.",
firstName: "Jane",
lastName: "Doe",
address1: "340 S Lemon Ave Suite 4133",
city: "San Francisco",
state: "CA",
postalCode: "91789",
phone: "+1.4158551452",
email: "[email protected]",
};
Field |
Type |
Required |
Description |
Example |
name |
string |
✔️ |
The domain name to purchase. |
example.com |
expectedPrice |
number |
➖ |
The price you expect to be charged for the purchase. |
10 |
renew |
boolean |
➖ |
Indicates whether the domain should be automatically renewed. |
true |
country |
string |
✔️ |
The country of the domain registrant |
US |
orgName |
string |
➖ |
The company name of the domain registrant |
Acme Inc. |
firstName |
string |
✔️ |
The first name of the domain registrant |
Jane |
lastName |
string |
✔️ |
The last name of the domain registrant |
Doe |
address1 |
string |
✔️ |
The street address of the domain registrant |
340 S Lemon Ave Suite 4133 |
city |
string |
✔️ |
The city of the domain registrant |
San Francisco |
state |
string |
✔️ |
The state of the domain registrant |
CA |
postalCode |
string |
✔️ |
The postal code of the domain registrant |
91789 |
phone |
string |
✔️ |
The phone number of the domain registrant |
+1.4158551452 |
email |
string |
✔️ |
The email of the domain registrant |
[email protected] |