Request
Prompt
- POSTQuery Prompts
- POSTQuery Prompt
- DELDelete Prompt
- POSTCreate Prompt
- POSTEdit Prompt Version Label
- POSTEdit Prompt Version Template
- POSTGet Prompt Version Subversion
- POSTPromote Prompt Version
- POSTQuery Prompt Version Inputs
- GETGet Prompt Experiments
- POSTQuery Prompt Versions
- GETGet Prompt Version
- DELDelete Prompt Version
- POSTCompile Prompt
- POSTQuery Prompt Template
Evals
Evaluator
Experiment
- POSTCreate Empty Experiment (v2)
- POSTCreate from Request (v2)
- POSTCreate New Experiment (v2)
- GETList Experiments
- GETGet Experiment Details
- POSTAdd Prompt Version
- GETGet Experiment Prompt Versions
- GETGet Experiment Input Keys
- POSTAdd Manual Row (v2)
- POSTBatch Insert Rows (v2)
- POSTPost v2experiment rowupdate
- POSTPost v2experiment run hypothesis
- GETGet Experiment Evaluators (v2)
- POSTAdd Evaluators (v2)
- DELDelete Experiment Evaluator (v2)
- POSTRun Evaluators (v2)
- GETCheck Evaluator Run Status
- GETGet Experiment Scores
- GETGet Experiment Score
- POSTCreate Empty Experiment
- POSTCreate New Table
- POSTQuery Experiment Table
- POSTQuery Table Metadata
- POSTQuery Tables
- POSTCreate Table Cell
- PATCHUpdate Experiment Table Cell
- POSTCreate Table Column
- POSTCreate New Table Row
- DELDelete Experiment Table Row
- POSTBatch Insert Table Rows
- POSTUpdate Metadata
- POSTCreate Experiment
- POSTCreate Experiment Hypothesis
- POSTQuery Hypothesis Scores
- GETGet Experiment Evaluators
- POSTAdd Experiment Evaluators
- POSTRun Experiment Evaluators
- DELDelete Experiment Evaluator
- POSTQuery Experiments
Property
Dataset
Dashboard
Settings
Get v1stripesubscriptionpreview invoice
GET
/
v1
/
stripe
/
subscription
/
preview-invoice
curl --request GET \
--url https://api.helicone.ai/v1/stripe/subscription/preview-invoice \
--header 'authorization: <api-key>'
{
"evaluators_usage": [
{
"model": "<string>",
"provider": "<string>",
"prompt_tokens": 123,
"completion_tokens": 123,
"total_count": 123,
"amount": 123,
"description": "<string>",
"totalCost": {
"prompt_token": 123,
"completion_token": 123
}
}
],
"experiments_usage": [
{
"model": "<string>",
"provider": "<string>",
"prompt_tokens": 123,
"completion_tokens": 123,
"total_count": 123,
"amount": 123,
"description": "<string>",
"totalCost": {
"prompt_token": 123,
"completion_token": 123
}
}
],
"total": 123,
"tax": 123,
"subtotal": 123,
"discount": {
"coupon": {
"amount_off": 123,
"percent_off": 123,
"name": "<string>"
}
},
"lines": {
"data": [
{
"description": "<string>",
"amount": 123,
"id": "<string>"
}
]
},
"next_payment_attempt": 123,
"currency": "<string>"
}
Authorizations
Response
200 - application/json
Ok
Was this page helpful?
curl --request GET \
--url https://api.helicone.ai/v1/stripe/subscription/preview-invoice \
--header 'authorization: <api-key>'
{
"evaluators_usage": [
{
"model": "<string>",
"provider": "<string>",
"prompt_tokens": 123,
"completion_tokens": 123,
"total_count": 123,
"amount": 123,
"description": "<string>",
"totalCost": {
"prompt_token": 123,
"completion_token": 123
}
}
],
"experiments_usage": [
{
"model": "<string>",
"provider": "<string>",
"prompt_tokens": 123,
"completion_tokens": 123,
"total_count": 123,
"amount": 123,
"description": "<string>",
"totalCost": {
"prompt_token": 123,
"completion_token": 123
}
}
],
"total": 123,
"tax": 123,
"subtotal": 123,
"discount": {
"coupon": {
"amount_off": 123,
"percent_off": 123,
"name": "<string>"
}
},
"lines": {
"data": [
{
"description": "<string>",
"amount": 123,
"id": "<string>"
}
]
},
"next_payment_attempt": 123,
"currency": "<string>"
}