Sign in

Create billing portal session

documented

Create a portal session for customer billing management.

POST /v1/billing_portal/sessionsBilling Portalno 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/billing_portal/sessions" \
  -X POST \
  -H "Authorization: Bearer {{STRIPE_API_KEY}}" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -H "Accept: application/json" \
  --data-urlencode "customer={{$customer_id}}" \
  --data-urlencode "return_url={{$return_url}}" \
  --data-urlencode "configuration={{$configuration_id}}" \
  --data-urlencode "locale={{$locale}}" \
  --data-urlencode "on_behalf_of={{$on_behalf_of}}"