applicable_product_ids
and applicable_product_tags
if you want to filter only on product ID or product family, and don’t require complex AND/OR logicspecifiers
if you want to filter based on pricing group values or presentation group values, or require complex AND/OR logicapplicable_product_ids
and applicable_product_tags
applicable_product_ids
and applicable_product_tags
fields to target your credit or commit.
Usage that matches any of the listed product IDs and product tags is eligible to consume the credit or commit.
specifiers
specifiers
field takes in an array of objects, where each object is called a specifier. Within each specifier all fields are ANDed together. If the conditions of any specifier in the array are met, the line item is eligible to consume the commit or credit. This is logic identical to override_specifiers, which you can use to grant discounts based on complex logic.
Note that if you use pricing group values and/or presentation group values in a specifier, only usage of products with the corresponding pricing and presentation group values will match that specifier. For example, if you create a credit that applies when pricing group value region
= us-east-1
, products that do not have the pricing group key region
will never draw down the credit. Subscriptions and composite products never have pricing or presentation group values, so would not draw down the commit.
regions
(pricing group value)regions
, and you’ve negotiated that the commitment only covers usage in those regions
. region
is a pricing group key for your products. Your products are available in many regions, and you use dimensional pricing to price a single product differently by region.
This example API call creates a contract that specifies the pricing_group_values
for the us-east-1
and us-east-2
regions.
user_id
(presentation group value)user_id
within an organization. You don’t price differently based on user_id
, but you want to grant this specific user a credit in return for taking part in user research. user_id
is a presentation group key across your products.
This example API call edits a contract to add credits by specifying the presentation_group_values
for a specific user_id
:
product_tags
Audio
and Basic
: