POST /v1/billing/checkout

Tags: billing

Parameters

NameInTypeRequiredDescription
Idempotency-Keyheaderstring,null

Request body

Required.

JSON
{
  "$ref": "#/components/schemas/CheckoutRequest"
}

Responses

200 — Stripe Checkout URL

JSON
{
  "$ref": "#/components/schemas/CheckoutResponse"
}

402 — BILLING_NOT_CONFIGURED or plan not synced

Code samples

TypeScript

TypeScript
import { firecase } from "@firecase/sdk";

const result = await firecase.post("/billing/checkout", { /* body */ });
console.log(result);

Python

Python
import firecase

result = firecase.post("/billing/checkout", json={})
print(result)

curl

Bash
curl -X POST https://api.firecase.ai/v1/billing/checkout \
  -H "Authorization: Bearer $FIRECASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'