Skip to main content

purchase_options

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

Overview

Namepurchase_options
TypeResource
Idaws.marketplace_discovery.purchase_options

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
associated_entitiesarrayThe products, offers, and offer sets associated with this purchase option.
available_from_timestring (date-time)The date and time when the purchase option became available to the buyer.
badgesarrayBadges indicating special attributes of the purchase option, such as private pricing or future dated.
catalogstringThe name of the catalog that the purchase option belongs to. (pattern: <code>[\w-]+</code>)
expiration_timestring (date-time)The date and time when the purchase option expires and is no longer available for procurement.
purchase_option_idstringThe unique identifier of the purchase option. (pattern: <code>.\S.</code>)
purchase_option_namestringThe display name of the purchase option. (pattern: <code>.\S.</code>)
purchase_option_typestringThe type of purchase option. Values are OFFER for a single-product offer or OFFERSET for a bundled offer set. (OFFER, OFFERSET)
seller_of_recordobjectThe entity responsible for selling the product under this purchase option.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_purchase_optionsselectregionReturns the purchase options (offers and offer sets) available to the buyer. You can filter results by product, seller, purchase option type, visibility scope, and availability status. You must include at least one of the following filters in the request: a PRODUCT_ID filter to specify the product for which to retrieve purchase options, or a VISIBILITY_SCOPE filter to retrieve purchase options by visibility.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Returns the purchase options (offers and offer sets) available to the buyer. You can filter results by product, seller, purchase option type, visibility scope, and availability status. You must include at least one of the following filters in the request: a PRODUCT_ID filter to specify the product for which to retrieve purchase options, or a VISIBILITY_SCOPE filter to retrieve purchase options by visibility.

SELECT
associated_entities,
available_from_time,
badges,
catalog,
expiration_time,
purchase_option_id,
purchase_option_name,
purchase_option_type,
seller_of_record
FROM aws.marketplace_discovery.purchase_options
WHERE region = '{{ region }}' -- required
;