Skip to main content

orders

Creates, updates, deletes, gets or lists an orders resource.

Overview

Nameorders
TypeResource
Idvercel.domains_registrar.orders

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
order_idstringA valid order ID (wire: orderId)
domainsarray
errorobject
statusstring (draft, purchasing, completed, failed)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorder_idteam_idGet information about a domain order by its ID
buy_domainexecdomain, autoRenew, years, expectedPrice, contactInformationteamIdBuy a domain
buy_domainsexecdomains, contactInformationteamIdBuy multiple domains at once
transfer_in_domainexecdomain, authCode, autoRenew, years, expectedPrice, contactInformationteamIdTransfer a domain in from another registrar
renew_domainexecdomain, years, expectedPriceteamIdRenew a domain

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
domainstring
order_idstring
teamIdstring
team_idstring (wire: teamId)

SELECT examples

Get information about a domain order by its ID

SELECT
order_id,
domains,
error,
status
FROM vercel.domains_registrar.orders
WHERE order_id = '{{ order_id }}' -- required
AND team_id = '{{ team_id }}'
;

Lifecycle Methods

EXEC variables use wire (API) names.

Buy a domain

EXEC vercel.domains_registrar.orders.buy_domain
@domain='{{ domain }}' --required,
@teamId='{{ teamId }}'
@@json=
'{
"autoRenew": {{ autoRenew }},
"years": {{ years }},
"expectedPrice": {{ expectedPrice }},
"contactInformation": "{{ contactInformation }}",
"languageCode": "{{ languageCode }}"
}'
;