Sign in

Create checkout session

documented

Create a Checkout Session for a payment.

POST /v1/checkout/sessionsCheckout Sessionsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.stripe.com/v1/checkout/sessions" \
  -X POST \
  -H "Authorization: Bearer {{STRIPE_API_KEY}}" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "Accept: application/json" \
  -d "mode={{mode}}" \
  -d "success_url={{success_url}}" \
  -d "cancel_url={{cancel_url}}" \
  -d "line_items[0][price]={{price_id}}" \
  -d "line_items[0][quantity]={{quantity}}" \
  -d "payment_method_types[]=card" \
  -d "customer={{customer_id}}"
Create checkout session · Stripe · OpenIntegrations