Skip to main content

offers

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

Overview​

Nameoffers
TypeResource
Idovh.commercial_catalog.offers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUnique identifier of the offer
codestringUnique code for the offer
commercial_rating_valuesarrayApplicable commercial rating values (wire: commercialRatingValues)
descriptionsarrayOffer description
engagementsarrayList of engagements available to subscribe the offer to
legacyobjectOffer information based on previous model used for migration to the new model
naturestringOffer nature (BILLING_PLAN, PACK, REGULAR, STRUCTURAL)
offersarraySub offers when type is composite
productobjectProduct linked to the offer
technical_requirementsarrayList of technical requirements of the product linked to the offer (wire: technicalRequirements)
typestringOffer type (ATOMIC, COMPOSITE)
validityobjectOffer validity information
versionintegerOffer version, increase on update

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet details of an offer
listselectx_pagination_cursor, x_pagination_size, merchants, nature, product_code, state, technical_requirements, typeList all offers

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"}})
idstringId
merchantsarrayOffer merchant
naturestringOffer nature
product_codestringCommercial product code (wire: productCode)
statearrayOffer state
technical_requirementsarrayOffer config fields (wire: technicalRequirements)
typestringOffer type
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Get details of an offer

SELECT
id,
code,
commercial_rating_values,
descriptions,
engagements,
legacy,
nature,
offers,
product,
technical_requirements,
type,
validity,
version
FROM ovh.commercial_catalog.offers
WHERE id = '{{ id }}' -- required
;