Typescript
import { Vercel } from "@vercel/sdk"; const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>", }); async function run() { const result = await vercel.domainsRegistrar.getOrder({ orderId: "<id>", }); console.log(result); } run();
{ "orderId": "<string>", "domains": [ { "purchaseType": "purchase", "autoRenew": true, "domainName": "<string>", "status": "pending", "price": 1.01, "years": 123 } ], "status": "draft", "error": { "code": "payment-failed" } }
Get a domain order
Default authentication mechanism
Success
Show child attributes
draft
purchasing
completed
failed