Skip to main content

telephony_spare_news

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

Overview​

Nametelephony_spare_news
TypeResource
Idovh.order.telephony_spare_news

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idintegerIdentifier of the order (wire: orderId)
contractsarrayList of contracts related to the order
detailsarrayDetails of the order
pricesobjectPrices of the order including with and without taxes
urlstringURL to download the order

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbrand, quantity, shipping_contact_idmondial_relay_idGet prices and contracts information
createinsertbrand, quantity, shipping_contact_idCreate 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"}})
brandstringSpare phone brand model
quantityintegerNumber of phone quantity
shipping_contact_idintegerShipping contact information id from /me entry point (wire: shippingContactId)
mondial_relay_idstringUse /supply/mondialRelay entry point to specify a relay point and ignore shipping contact address information entry. (wire: mondialRelayId)

SELECT examples​

Get prices and contracts information

SELECT
order_id,
contracts,
details,
prices,
url
FROM ovh.order.telephony_spare_news
WHERE brand = '{{ brand }}' -- required
AND quantity = '{{ quantity }}' -- required
AND shipping_contact_id = '{{ shipping_contact_id }}' -- required
AND mondial_relay_id = '{{ mondial_relay_id }}'
;

INSERT examples​

Create order

INSERT INTO ovh.order.telephony_spare_news (
brand,
mondial_relay_id,
quantity,
shipping_contact_id
)
SELECT
'{{ brand }}' /* required */,
'{{ mondial_relay_id }}',
{{ quantity }} /* required */,
{{ shipping_contact_id }} /* required */
RETURNING
order_id,
contracts,
details,
prices,
url
;