Events
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.
post/v1/events
Request
- Base URLhttps://integrators.prod.api.tabsplatform.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"customerId": "550e8400-e29b-41d4-a716-446655440000",
"eventTypeId": "550e8400-e29b-41d4-a716-446655440000",
"datetime": "2024-01-15T10:30:00Z",
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440000",
"value": 1.5,
"differentiator": "mobile",
"invoiceSplitKey": "invoice-123",
"metadata": {
"key": "value"
}
}Response
Event created successfully
Example response
{
"success": true,
"message": "Event created successfully",
"data": {
"events": {
"customerId": "550e8400-e29b-41d4-a716-446655440000",
"eventTypeId": "550e8400-e29b-41d4-a716-446655440000",
"datetime": "2024-01-15T10:30:00Z",
"idempotencyKey": "550e8400-e29b-41d4-a716-446655440000",
"value": 1.5,
"differentiator": "mobile",
"invoiceSplitKey": "invoice-123",
"parentEventId": "018c1234-5678-7abc-def0-123456789000",
"metadata": {
"key": "value"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.