Skip to main content

orders

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

Overview​

Nameorders
TypeResource
Idovh.me.orders

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
order_idinteger (wire: orderId)
datestring (date-time)
expiration_datestring (date-time) (wire: expirationDate)
metadatasarray
passwordstring
pdf_urlstring (wire: pdfUrl)
price_with_taxobjectPrice with its currency and textual representation (wire: priceWithTax)
price_without_taxobjectPrice with its currency and textual representation (wire: priceWithoutTax)
retraction_datestring (date-time) (wire: retractionDate)
taxobjectPrice with its currency and textual representation
urlstring

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectorder_idGet this object properties
listselectdate.from, date.to, x_pagination_modeList of all the orders the logged account has
update_engagement_numberexecorderId, engagementNumberSet your engagement number on this order (Beta version)
payexecorderId, paymentMethodPay with a payment method reference (Beta version)
pay_with_registered_payment_meanexecorderId, paymentMeanPay with an already registered payment mean
retractionexecorderId, reasonRequest retraction of order
waive_retractionexecorderIdWaive retraction period of 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"}})
orderIdinteger
order_idinteger (wire: orderId)
date.fromstring (date-time)Filter the value of date property (>=)
date.tostring (date-time)Filter the value of date property (<=)
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_id,
date,
expiration_date,
metadatas,
password,
pdf_url,
price_with_tax,
price_without_tax,
retraction_date,
tax,
url
FROM ovh.me.orders
WHERE order_id = '{{ order_id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Set your engagement number on this order (Beta version)

EXEC ovh.me.orders.update_engagement_number
@orderId='{{ orderId }}' --required
@@json=
'{
"engagementNumber": "{{ engagementNumber }}"
}'
;