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
| 200 | Successful Response |
| 422 | Validation ErrorHTTPValidationError |
| 401 | Missing, 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
| Name | In | Type | Default | Description |
|---|---|---|---|---|
| stripe-signature | header | string | null |
Responses
| 200 | Successful Response |
| 422 | Validation ErrorHTTPValidationError |
Requestbash
curl -s -X POST "$OSR_URL/api/v1/billing/webhook"