Skip to content
OpenSmartRoute

Billing

Plan upgrades through Stripe Checkout and the webhook that confirms them.

API version 1.0.0

Plan upgrades through Stripe Checkout and the webhook that confirms them.

post/api/v1/billing/checkout

Checkout

Requires an API key.

Responses

200Successful Response
422Validation ErrorHTTPValidationError
401Missing, invalid or revoked API key
Requestbash
curl -s -X POST "$OSR_URL/api/v1/billing/checkout" \
  -H "Authorization: Bearer $OSR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
Bodyjson
{}

post/api/v1/billing/webhook

Webhook

No authentication.

Parameters

NameInTypeDefaultDescription
stripe-signatureheaderstring | null

Responses

200Successful Response
422Validation ErrorHTTPValidationError
Requestbash
curl -s -X POST "$OSR_URL/api/v1/billing/webhook"