Skip to main content

see_offers

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

Overview​

Namesee_offers
TypeResource
Idovh.sms.see_offers

Fields​

The following fields are returned by SELECT queries:

A structure describing all information about an sms pack offer

NameDatatypeDescription
country_destinationstring (wire: countryDestination)
gift_pricenumber (wire: giftPrice)
gift_quantitynumber (wire: giftQuantity)
languagestring
pricenumber
quantityinteger
sms_quantitynumber (wire: smsQuantity)
total_pricenumber (wire: totalPrice)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectcountry_currency_price, country_destination, quantity, service_nameList SMS offers. Returns the SMS pack offers available for the account, by quantity and destination country.

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"}})
country_currency_pricestringFilter to have the currency country prices (wire: countryCurrencyPrice)
country_destinationstringFilter to have the country destination (wire: countryDestination)
quantityintegerSms pack offer quantity
service_namestringThe internal name of your SMS offer (wire: serviceName)

SELECT examples​

List SMS offers. Returns the SMS pack offers available for the account, by quantity and destination country.

SELECT
country_destination,
gift_price,
gift_quantity,
language,
price,
quantity,
sms_quantity,
total_price
FROM ovh.sms.see_offers
WHERE country_currency_price = '{{ country_currency_price }}' -- required
AND country_destination = '{{ country_destination }}' -- required
AND quantity = '{{ quantity }}' -- required
AND service_name = '{{ service_name }}' -- required
;