Billing

Create Stripe Checkout session

Durable account-scoped Stripe saga. Requires a stable Idempotency-Key, serializes all billing session creation for the account, forwards deterministic per-phase Stripe keys, and encrypts the bearer-like checkout_url with AGENTRY_TOKEN_ENC_KEY. Exact retries recover the same URL; changed evidence conflicts.

post/v1/billing/checkout

Request

  • Base URL: https://api.agentry.sh
  • URL: https://api.agentry.sh/v1/billing/checkout
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Stable 8-500 character command key. Preserve it only when replaying the exact same request; use a new key for a distinct command.

Request body

plan'nerve' required
success_urlstring
cancel_urlstring

Response

OK

command_idstring required
checkout_urlstring required
session_idstring required
customer_idstring required
subscription_idstring nullable
plan'nerve' required
price_idstring required
idempotent_replayboolean required
next_actionstring

Changes

No recorded changes to this operation across all 1 revision of this API.