Skip to main content

cart_domains

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

Overview​

Namecart_domains
TypeResource
Idovh.order.cart_domains

Fields​

The following fields are returned by SELECT queries:

Information about a product for Order/Cart

NameDatatypeDescription
offer_idstringID of the related offer (wire: offerId)
product_idstringProduct identifier (wire: productId)
actionstringAction kind (create, trade, transfer, update)
configurationsarrayInformation about the configurations required
current_nameserversarrayCurrent nameservers of the domain (from RDAP) (wire: currentNameservers)
delivery_timestringInformation about the estimated delivery time for the product (wire: deliveryTime)
durationarrayList all the duration allowed for the product
is_auth_info_requiredbooleanIndicates if an authInfo has to be provided to order this product, only set on transfer products: the incoming transfer process of some extensions does not rely on an authInfo at all. Mirrors lifecycle.transfer.isAuthInfoRequired of the extension registry configurations (wire: isAuthInfoRequired)
is_transfer_lockedbooleanIndicates if the domain has a transfer lock status (client or server transfer prohibited) (wire: isTransferLocked)
offerstringInformation about the domain's offer (gold|diamond|platinium)
orderablebooleanIndicates if the product is orderable or not
phasestringInformation about the domain phase
pricesarrayPrice details of the product
pricing_modestringPricing model identifier for this product (wire: pricingMode)
quantity_maxintegerMaximum quantity purchasable for this product (wire: quantityMax)
recommended_durationstring (duration)Recommended duration for this product (wire: recommendedDuration)
transferobjectConditions affecting the transfer of this domain, only set on transfer products. Supersedes isTransferLocked, which is kept during deprecation

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcart_id, domainGet information about a domain name
createinsertcart_id, domainPost a new domain name in your cart

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
api_hoststringThe OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}})
cart_idstringCart ID (wire: cartId)
domainstringDomain name requested

SELECT examples​

Get information about a domain name

SELECT
offer_id,
product_id,
action,
configurations,
current_nameservers,
delivery_time,
duration,
is_auth_info_required,
is_transfer_locked,
offer,
orderable,
phase,
prices,
pricing_mode,
quantity_max,
recommended_duration,
transfer
FROM ovh.order.cart_domains
WHERE cart_id = '{{ cart_id }}' -- required
AND domain = '{{ domain }}' -- required
;

INSERT examples​

Post a new domain name in your cart

INSERT INTO ovh.order.cart_domains (
domain,
duration,
offer_id,
plan_code,
pricing_mode,
quantity,
cart_id
)
SELECT
'{{ domain }}' /* required */,
'{{ duration }}',
'{{ offer_id }}',
'{{ plan_code }}',
'{{ pricing_mode }}',
{{ quantity }},
'{{ cart_id }}'
RETURNING
cart_id,
item_id,
offer_id,
parent_item_id,
product_id,
configurations,
duration,
options,
prices,
settings
;