BotsRated

Help › How-tos

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

codewhenfix
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