Create an event

View as Markdown
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.
customerIdstringRequiredformat: "uuid"

Tabs Customer ID - must be a valid UUID v4

eventTypeIdstringRequiredformat: "uuid"

Type of event being recorded - must be a valid UUID v4

datetimedatetimeRequired

Timestamp when the event occurred (UTC) (format: ISO-8601 datetime string)

idempotencyKeystringRequiredformat: "uuid"

Unique key to prevent duplicate event processing - must be a valid UUID v4

valuedoubleRequired
Numeric value of the event
differentiatorstringOptional

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

invoiceSplitKeystringOptional

Optional key to split events into a new invoice; the split key will be appended to the new invoice number

metadatamap from strings to objectsOptional
Optional metadata in JSON format

Response

Event created successfully
successbooleanOptional
Indicates if the operation was successful
messagestringOptional

Human-readable message about the operation result

dataobjectOptional
Event data wrapper

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error