Create Stripe Checkout Session
Changed onCreate a Stripe Checkout Session for the customer.
Creates a Checkout Session for collecting payment method information from customers. The session operates in "setup" mode, which collects payment details without charging the customer immediately. The collected payment method can be used for future subscription billing.
For hosted checkout sessions, redirect customers to the returned URL. For embedded sessions, use the client_secret to initialize Stripe.js in your application.
Request
- Base URL: https://global.api.konghq.com
- URL: https://global.api.konghq.com/v3/openmeter/customers/{customerId}/billing/stripe/checkout-sessions
- Auth: one of:
- HTTP bearer
- HTTP bearer
- HTTP bearer
- HTTP bearer
Path parameters
ULID (Universally Unique Lexicographically Sortable Identifier).
Request body
Example request
{
"stripe_options": {
"currency": "USD"
}
}Response
CreateStripeCheckoutSessionResult created response.
Example response
{
"customer_id": "01G65Z755AFWAKHE12NY0CQ9FH",
"currency": "USD",
"created_at": "2023-01-01T01:01:01.001Z",
"expires_at": "2023-01-01T01:01:01.001Z"
}Changes
- breaking
added to the
/response propertyoneOflist for the response status - warning
added the new
key_invalidenum value to the//////response property for the response status - warning
added the new
uniqueenum value to the//////response property for the response status
- breaking
- warning
added the new
400.00enum value to theresponse property for the response status - warning
added the new
403.00enum value to theresponse property for the response status - warning
added the new
404.00enum value to theresponse property for the response status - warning
added the new
410.00enum value to theresponse property for the response status
- warning