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>", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", }); console.log(result); } run();
{ "orderId": "<string>", "domains": [ { "purchaseType": "purchase", "autoRenew": true, "years": 123, "domainName": "<string>", "status": "pending", "price": 1.01, "error": { "code": "unsupported-language-code", "details": { "detectedLanguageCode": "<string>" } } } ], "status": "draft", "error": { "code": "payment-failed" } }
Get information about a domain order by its ID
Default authentication mechanism
"team_1a2b3c4d5e6f7g8h9i0j1k2l"
Success
Show child attributes
purchase
The number of years the domain is being purchased for.
A valid domain name
pending
completed
failed
refunded
refund-failed
x >= 0.01
unsupported-language-code
draft
purchasing
payment-failed