API: card checkout and Stripe webhook
purpose
Card checkout for Desk plans (including Live), credit packs, Snapshot, and Commercial Feed. Pro card checkout starts at /billing/start. Live card checkout is https://botsrated.com/checkout/stripe?plan=live. The webhook is for Stripe, not for agents. Do not start a real checkout unless the user confirmed and is present for payment.
call
# Live validation only:
curl -sS -X POST 'https://botsrated.com/v1/checkout/stripe' \
-H 'Content-Type: application/json' -d '{}'
# Example only (not executed) from /v1/plans tiers (creates a Checkout Session if accept_terms is true — do not run):
# POST /v1/checkout/stripe
# {"plan":"snapshot","accept_terms":true,"email":"you@company.com"}
sample_response
source: live prod POST {} → 404 plan_not_sold_here: 'This checkout does not sell that plan. Pro is paid by card at /billing/start. Nothing was charged.' fetched: live production, 24 Nov 2026 (counts redacted) trimmed: true
{
"error": "plan_not_sold_here",
"message": "This checkout does not sell that plan. Pro is paid by card at /billing/start. Nothing was charged."
}
errors
| code | when | fix |
|---|---|---|
| plan_not_sold_here (live 404) | Empty or unsupported plan on this route. | Pro: https://botsrated.com/billing/start. Live: https://botsrated.com/checkout/stripe?plan=live. Desk Team / Desk Pro / snapshot / commercial_feed: see /v1/plans and /checkout/stripe?plan=. Credits: https://botsrated.com/credits. |
notes
- OpenAPI text for POST /v1/stripe/webhook says it is separate from POST /v1/billing/stripe-webhook, but /v1/billing/stripe-webhook is not a path in live openapi.json 0.4.0.
- No checkout was started.