Skip to main content

order_details

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

Overview​

Nameorder_details
TypeResource
Idovh.me.order_details

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_detail_idinteger (wire: orderDetailId)
cancelledboolean
descriptionstring
detail_typestringProduct type of item in order (ACCESSORY, CAUTION, CHOOSED, CONSUMPTION, CREATION, DELIVERY, DURATION, GIFT, INSTALLATION, LICENSE, MUTE, OTHER, OUTPLAN, QUANTITY, REFUND, RENEW, SPECIAL, SWITCH, TRANSFER, VOUCHER) (wire: detailType)
domainstring
quantitystring
total_priceobjectPrice with its currency and textual representation (wire: totalPrice)
unit_priceobjectPrice with its currency and textual representation (wire: unitPrice)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorder_detail_id, order_idGet this object properties
listselectorder_idx_pagination_modeGive access to all entries of the order

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"}})
order_detail_idinteger (wire: orderDetailId)
order_idinteger (wire: orderId)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Get this object properties

SELECT
order_detail_id,
cancelled,
description,
detail_type,
domain,
quantity,
total_price,
unit_price
FROM ovh.me.order_details
WHERE order_detail_id = '{{ order_detail_id }}' -- required
AND order_id = '{{ order_id }}' -- required
;