Skip to main content

price

Creates, updates, deletes, gets or lists a price resource.

Overview

Nameprice
TypeResource
Idvercel.domains.price

Fields

The following fields are returned by SELECT queries:

Successful response which returns the price of the domain and the period.

NameDatatypeDescription
periodnumberThe number of years the domain could be held before paying again.
pricenumberThe domain price in USD.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_domain_priceselectname, teamIdtypeCheck the price to purchase a domain and how long a single purchase period is.

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
namestringThe name of the domain for which the price needs to be checked.
teamIdstringThe Team identifier or slug to perform the request on behalf of.
typestringIn which status of the domain the price needs to be checked.

SELECT examples

Check the price to purchase a domain and how long a single purchase period is.

SELECT
period,
price
FROM vercel.domains.price
WHERE name = '{{ name }}' -- required
AND teamId = '{{ teamId }}' -- required
AND type = '{{ type }}'
;