Events
Retrieve a specific event
This endpoint is used for retrieving a specific usage measurement event that has been sent to a customer or a subscription.
GET
/
events
/
{transaction_id}
Authorization
Path
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/events/:transaction_id" \
--header "Authorization: Bearer $API_KEY"
{
"event": {
"code": "storage",
"created_at": "2022-04-29T08:59:51Z",
"external_customer_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"external_subscription_id": "sub_1234567890",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_subscription_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"properties": {
"gb": 10
},
"timestamp": "2022-04-29T08:59:51.123Z",
"transaction_id": "transaction_1234567890"
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
transaction_id
string
requiredThis field represents the unique identifier sent for this specific event.
Response
200 - application/json
event
object
requiredWas this page helpful?
LAGO_URL="https://api.getlago.com"
API_KEY="__YOUR_API_KEY__"
curl --location --request GET "$LAGO_URL/api/v1/events/:transaction_id" \
--header "Authorization: Bearer $API_KEY"
{
"event": {
"code": "storage",
"created_at": "2022-04-29T08:59:51Z",
"external_customer_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"external_subscription_id": "sub_1234567890",
"lago_customer_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"lago_subscription_id": "1a901a90-1a90-1a90-1a90-1a901a901a90",
"properties": {
"gb": 10
},
"timestamp": "2022-04-29T08:59:51.123Z",
"transaction_id": "transaction_1234567890"
}
}