Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Create a new product
displayed on invoices
FIXED
, fixed
, USAGE
, usage
, COMPOSITE
, composite
, SUBSCRIPTION
, subscription
Required for USAGE products
Required for COMPOSITE products
Required for COMPOSITE products
Beta feature only available for composite products. If true, products with $0 will not be included when computing composite usage. Defaults to false
For USAGE products only. If set, pricing for this product will be determined for each pricing_group_key value, as opposed to the product as a whole. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.
For USAGE products only. Groups usage line items on invoices. The superset of values in the pricing group key and presentation group key must be set as one compound group key on the billable metric.
Optional. Only valid for USAGE products. If provided, the quantity will be converted using the provided conversion factor and operation. For example, if the operation is "multiply" and the conversion factor is 100, then the quantity will be multiplied by 100. This can be used in cases where data is sent in one unit and priced in another. For example, data could be sent in MB and priced in GB. In this case, the conversion factor would be 1024 and the operation would be "divide".
Optional. Only valid for USAGE products. If provided, the quantity will be rounded using the provided rounding method and decimal places. For example, if the method is "round up" and the decimal places is 0, then the quantity will be rounded up to the nearest integer.
Custom fields to be added eg. { "key1": "value1", "key2": "value2" }
Response
Success