price
Creates, updates, deletes, gets or lists a price resource.
Overview
| Name | price |
| Type | Resource |
| Id | vercel.domains.price |
Fields
The following fields are returned by SELECT queries:
- check_domain_price
Successful response which returns the price of the domain and the period.
| Name | Datatype | Description |
|---|---|---|
period | number | The number of years the domain could be held before paying again. |
price | number | The domain price in USD. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
check_domain_price | select | name, teamId | type | Check 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.
| Name | Datatype | Description |
|---|---|---|
name | string | The name of the domain for which the price needs to be checked. |
teamId | string | The Team identifier or slug to perform the request on behalf of. |
type | string | In which status of the domain the price needs to be checked. |
SELECT examples
- check_domain_price
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 }}'
;