GET /v1/billing/upcoming
Tags: billing
Responses
200 — Preview of the next invoice; null if none
JSON
{
"oneOf": [
{
"type": "null"
},
{
"$ref": "#/components/schemas/UpcomingInvoice"
}
]
}402 — BILLING_NOT_CONFIGURED
Code samples
TypeScript
TypeScript
import { firecase } from "@firecase/sdk";
const result = await firecase.get("/billing/upcoming");
console.log(result);Python
Python
import firecase
result = firecase.get("/billing/upcoming")
print(result)curl
Bash
curl -X GET https://api.firecase.ai/v1/billing/upcoming \
-H "Authorization: Bearer $FIRECASE_API_KEY" \
-H "Content-Type: application/json"