Create a usage event
Creates a usage event. The idempotencyKey is used to ensure the event is processed only once by downstream consumers, even if the same event is submitted multiple times. Duplicate submissions will be accepted and return the same response.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Unique key to ensure the event is processed only once. Duplicate submissions might generate different event IDs, but events will be deduplicated at process time.
ID of the customer that generated this usage event.
ID of the merchant organization that owns this usage event.
Timestamp the usage event occurred at, for external reference. This is not equivalent to the time Sulu receives and processes the event, it is the time the event actually occurred at (or equivalent). ISO 8601 date-time string
Key-value pairs for storing additional data about the usage event.
Response
Unique identifier for a usage event
usageEvent
Billing information for the usage event when it has been billed.