Events
Bulk Ingest events
Customers
Invoices
Wallets
Entitlements
Environments
Events
Features
Payments
Integrations
Subscriptions
Tenants
Users
Events
Bulk Ingest events
Ingest bulk events into the system
POST
/
events
/
bulk
curl --request POST \
--url https://api.cloud.flexprice.io/v1/events/bulk \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"events": [
{
"customer_id": "customer456",
"event_id": "event123",
"event_name": "api_request",
"external_customer_id": "customer456",
"properties": {
"\"response_status\"": "200}",
"{\"request_size\"": "100"
},
"source": "api",
"timestamp": "2024-03-20T15:04:05Z"
}
]
}'
{}
Authorizations
Enter your API key in the format x-api-key <api-key>*
Body
application/json
Event data
Example:
"api_request"
Example:
"customer456"
Example:
"customer456"
Example:
"event123"
Handled separately for dynamic columns
Example:
{
"\"response_status\"": "200}",
"{\"request_size\"": "100"
}
Example:
"api"
Handled separately due to parsing
Example:
"2024-03-20T15:04:05Z"
Response
202
application/json
message:Event accepted for processing
curl --request POST \
--url https://api.cloud.flexprice.io/v1/events/bulk \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"events": [
{
"customer_id": "customer456",
"event_id": "event123",
"event_name": "api_request",
"external_customer_id": "customer456",
"properties": {
"\"response_status\"": "200}",
"{\"request_size\"": "100"
},
"source": "api",
"timestamp": "2024-03-20T15:04:05Z"
}
]
}'
{}