curl --request GET \
--url https://ingest.hyperline.co/v1/events/prices \
--header 'Authorization: Bearer <token>'[
{
"id": "cal_1234567890",
"result": [
{
"event_type": "api_call",
"product_id": "itm_AweveQEoewer",
"record": {
"id": "D32NAA8",
"durationInMs": 32,
"isVerified": true
},
"amount_excluding_tax": 10000,
"currency": "EUR",
"ingested": true,
"pre_calculated_at": "2024-12-20T16:04:11Z",
"customer_id": "cus_CrqwefTRWBWRT",
"event_timestamp": "2024-12-20T16:04:11Z",
"subscription_id": "<string>",
"price_group": {
"id": "grp_QalW2vTAdkR6IY",
"name": "mastercard"
},
"tax_amount": 2000,
"total_amount": 12000
}
]
}
]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": [
{
"event_type": "api_call",
"product_id": "itm_AweveQEoewer",
"record": {
"id": "D32NAA8",
"durationInMs": 32,
"isVerified": true
},
"amount_excluding_tax": 10000,
"currency": "EUR",
"ingested": true,
"pre_calculated_at": "2024-12-20T16:04:11Z",
"customer_id": "cus_CrqwefTRWBWRT",
"event_timestamp": "2024-12-20T16:04:11Z",
"subscription_id": "<string>",
"price_group": {
"id": "grp_QalW2vTAdkR6IY",
"name": "mastercard"
},
"tax_amount": 2000,
"total_amount": 12000
}
]
}
]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
ID of the calculation.
"cal_1234567890"
Show child attributes
Type corresponding to the event. When creating a dynamic product, this type will be used to map the related events to specific prices.
"api_call"
Hyperline ID of the product.
"itm_AweveQEoewer"
Amount excluding tax.
10000
Currency code. See ISO 4217.
EUR, AED, AFN, XCD, ALL, AMD, AOA, ARS, USD, AUD, AWG, AZN, BAM, BBD, BDT, XOF, BGN, BHD, BIF, BMD, BND, BOB, BRL, BSD, BTN, NOK, BWP, BYR, BZD, CAD, CDF, XAF, CHF, NZD, CLP, CNY, COP, CRC, CUP, CVE, ANG, CZK, DJF, DKK, DOP, DZD, EGP, MAD, ERN, ETB, FJD, FKP, GBP, GEL, GHS, GIP, GMD, GNF, GTQ, GYD, HKD, HNL, HRK, HTG, HUF, IDR, ILS, INR, IQD, IRR, ISK, JMD, JOD, JPY, KES, KGS, KHR, KMF, KPW, KRW, KWD, KYD, KZT, LAK, LBP, LKR, LRD, LSL, LYD, MDL, MGA, MKD, MMK, MNT, MOP, MRO, MUR, MVR, MWK, MXN, MYR, MZN, NAD, XPF, NGN, NIO, NPR, OMR, PAB, PEN, PGK, PHP, PKR, PLN, PYG, QAR, RON, RSD, RUB, RWF, SAR, SBD, SCR, SDG, SEK, SGD, SHP, SLL, SOS, SRD, SSP, STD, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, UYU, UZS, VEF, VND, VUV, WST, YER, ZAR, ZMW, ZWL "EUR"
Whether the event has been ingested
true
Hyperline ID or external ID of the existing customer.
"cus_CrqwefTRWBWRT"
Tax estimate.
2000
Total amount. The final amount will be determined by the final invoice.
12000
Was this page helpful?