---
title: "Create dimensional price group"
method: POST
path: "/dimensional_price_groups"
tags: ["Dimensional Price Group"]
---

# Create dimensional price group

`POST /dimensional_price_groups`

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 partition 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

- NewDimensionalPriceGroup
  - `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`.
  - `name` string, required
  - `external_dimensional_price_group_id` string, nullable
  - `dimensions` string[], required — The set of keys (in order) used to disambiguate prices in the group.
  - `billable_metric_id` string, required

## Response `201`

Created

- DimensionalPriceGroup — 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 partition used to derive their usage.
  - `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`.
  - `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 — 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.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `409` — Conflict
- `413` — Content Too Large
- `429` — Too Many Requests
- `500` — Internal Server Error

---

[API](https://skmtc.dev/orbcorp/apis/api-reference.md) · [All operations](https://skmtc.dev/orbcorp/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/orbcorp/api-reference/revisions/2580a0ee8d4c/schema)
