Create a usage event to charge a customer for their use of a product.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the company to which the usage will be applied.
1
An arbitrary collection of key-value pairs that can be used to categorize or tag the event.
These key-values become aggregable dimensions in usage reports.
{ "dataset_id": "123" }ISO-8601 timestamp indicating when the usage event occurred. Cannot be more than 72 hours in the past.
"2022-11-10T00:00:00Z"
The type of usage event. event_type works alongside dimensions and measures to describe the details of the
event.
"processing-dataset-ingestion"
A UUID that ensures the usage event is processed and stored only once, even if the event is sent multiple times.
This unique identifier helps to prevent duplicate usage events from being recorded and allows for reliable processing and storage of the event. If a usage event with a previously used idempotency_key is received, the original stored event is returned instead of creating a new event.
"882e0a91-10a2-47c7-8e70-69344d725a6f"
Unique identifier for the product for .
"general-purpose-processing-aws-us-east-1"
The amount of the product referred to by the sku that is being used, expressed as a numerical value and
corresponding unit of measure.
The unit field must match the unit of measure for the product, and the value field indicates the amount of the product used in terms of the given unit.
Optional. The ID of the user that triggered the usage event.
2
A set of additional numerical values associated with the usage event that are beyond what is captured in the usage field. These values may be used for reporting purposes and can provide additional context about the event.
{ "rows": 8212837 }OK
Unique identifier for the usage event.
"fe0212f6-3440-44e6-b049-ef6c5ad1f396"
The id of the application that created the usage event.
5
The ID of the company to which the usage will be applied.
1
ISO-8601 timestamp indicating when the usage event was persisted.
"2022-11-10T00:00:00Z"
An arbitrary collection of key-value pairs that can be used to categorize or tag the event.
These key-values become aggregable dimensions in usage reports.
{ "dataset_id": "123" }ISO-8601 timestamp indicating when the usage event occurred. Cannot be more than 72 hours in the past.
"2022-11-10T00:00:00Z"
The type of usage event. event_type works alongside dimensions and measures to describe the details of the
event.
"processing-dataset-ingestion"
A UUID that ensures the usage event is processed and stored only once, even if the event is sent multiple times.
This unique identifier helps to prevent duplicate usage events from being recorded and allows for reliable processing and storage of the event. If a usage event with a previously used idempotency_key is received, the original stored event is returned instead of creating a new event.
"882e0a91-10a2-47c7-8e70-69344d725a6f"
Unique identifier for the product for .
"general-purpose-processing-aws-us-east-1"
The amount of the product referred to by the sku that is being used, expressed as a numerical value and
corresponding unit of measure.
The unit field must match the unit of measure for the product, and the value field indicates the amount of the product used in terms of the given unit.
Optional. The ID of the user that triggered the usage event.
2
A set of additional numerical values associated with the usage event that are beyond what is captured in the usage field. These values may be used for reporting purposes and can provide additional context about the event.
{ "rows": 8212837 }