Creates a checkout session and returns the URL the client should redirect the user to.
Use this as the final “continue to payment” step from basket/checkout pages.
What this endpoint checks before creating a session:
Response behavior:
Heads up:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The ID of the basket to retrieve
The URL to redirect to after a successful payment. A ?purchase= query parameter will be appended to this URL containing the ID of the resulting purchase.
The response containing the checkout URL
The URL to redirect the user to for checkout