Create an event
Creates a new usage event. Requires valid authentication and unique idempotency key. Reach out to your account manager if you would like to participate in the Beta for the new Usage API.
Authentication
Authorizationstring
API Key authentication via header
Request
This endpoint expects an object.
customerId
Tabs Customer ID - must be a valid UUID v4
eventTypeId
Type of event being recorded - must be a valid UUID v4
datetime
Timestamp when the event occurred (UTC) (format: ISO-8601 datetime string)
idempotencyKey
Unique key to prevent duplicate event processing - must be a valid UUID v4
value
Numeric value of the event
differentiator
Optional key to separate events with the same event type and customer into different invoice line items; differentiator will be appended to the description of the new invoice line item
invoiceSplitKey
Optional key to split events into a new invoice; the split key will be appended to the new invoice number
metadata
Optional metadata in JSON format
Response
Event created successfully
success
Indicates if the operation was successful
message
Human-readable message about the operation result
data
Event data wrapper
Errors
400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error

