POST /v1/billing/cancel
Tags: billing
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string,null |
Responses
200 — Subscription scheduled to cancel at period end
JSON
{
"$ref": "#/components/schemas/CancelResponse"
}402 — BILLING_NOT_CONFIGURED — or no Stripe customer
Code samples
TypeScript
TypeScript
import { firecase } from "@firecase/sdk";
const result = await firecase.post("/billing/cancel", { /* body */ });
console.log(result);Python
Python
import firecase
result = firecase.post("/billing/cancel", json={})
print(result)curl
Bash
curl -X POST https://api.firecase.ai/v1/billing/cancel \
-H "Authorization: Bearer $FIRECASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'