curl --request GET \
--url https://ingest.hyperline.co/v1/events/prices \
--header 'Authorization: Bearer <token>'
[
{
"id": "cal_1234567890",
"result": [
{
"customer_id": "cus_CrqwefTRWBWRT",
"event_timestamp": "2024-12-20T16:04:11Z",
"subscription_id": "<string>",
"event_type": "api_call",
"product_id": "itm_AweveQEoewer",
"price_group": {
"id": "grp_QalW2vTAdkR6IY",
"name": "mastercard"
},
"record": {
"id": "D32NAA8",
"durationInMs": 32,
"isVerified": true
},
"amount_excluding_tax": 10000,
"tax_amount": 2000,
"total_amount": 12000,
"currency": "EUR",
"ingested": true,
"pre_calculated_at": "2024-12-20T16:04:11Z"
}
]
}
]
Get previous calculation results for a billable event. You can search by either calculation_id / record_id or both.
curl --request GET \
--url https://ingest.hyperline.co/v1/events/prices \
--header 'Authorization: Bearer <token>'
[
{
"id": "cal_1234567890",
"result": [
{
"customer_id": "cus_CrqwefTRWBWRT",
"event_timestamp": "2024-12-20T16:04:11Z",
"subscription_id": "<string>",
"event_type": "api_call",
"product_id": "itm_AweveQEoewer",
"price_group": {
"id": "grp_QalW2vTAdkR6IY",
"name": "mastercard"
},
"record": {
"id": "D32NAA8",
"durationInMs": 32,
"isVerified": true
},
"amount_excluding_tax": 10000,
"tax_amount": 2000,
"total_amount": 12000,
"currency": "EUR",
"ingested": true,
"pre_calculated_at": "2024-12-20T16:04:11Z"
}
]
}
]
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
A unique identifier for your event, used to identify the event in your system and prevent duplicates.
"D32NAA8"
ID of the calculation.
"cal_1234567890"
Event prices previously calculated
The response is of type object[]
.
Was this page helpful?