Skip to main content

Create dimensional price group

A dimensional price group is used to partition the result of a billable metric by a set of dimensions. Prices in a price group must specify the parition used to derive their usage.

For example, suppose we have a billable metric that measures the number of widgets used and we want to charge differently depending on the color of the widget. We can create a price group with a dimension "color" and two prices: one that charges $10 per red widget and one that charges $20 per blue widget.

Request Body required
    metadata object nullable

    User-specified key/value pairs for the resource. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

    property name* string nullable
    name string required
    external_dimensional_price_group_id string nullable
    dimensions string[] required

    Possible values: >= 1

    The set of keys (in order) used to disambiguate prices in the group.

    billable_metric_id string required
Responses

Created

Response Headers

    Schema
      metadata object required

      User specified key-value pairs for the resource. If not present, this defaults to an empty dictionary. Individual keys can be removed by setting the value to null, and the entire metadata mapping can be cleared by setting metadata to null.

      property name* string
      id string required
      name string required

      The name of the dimensional price group

      external_dimensional_price_group_id string nullable required

      An alias for the dimensional price group

      dimensions string[] required

      Possible values: >= 1

      The dimensions that this dimensional price group is defined over

      billable_metric_id string required

      The billable metric associated with this dimensional price group. All prices associated with this dimensional price group will be computed using this billable metric.

    Loading...