POST /credits/checkout
This endpoint creates a Stripe checkout session to allow a user to purchase a credit package. This is an authenticated endpoint.Request Body
The ID of the credit package to purchase.
The URL to redirect to after a successful purchase.
The URL to redirect to if the purchase is canceled.
Response
The ID of the Stripe checkout session. This can be used to redirect the user to the checkout page.
The URL of the Stripe checkout page.