v14
latestOpenAPI 3.1.02026-08-03122113375.9 KBbasket
Create checkout session
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:
- listing availability and purchasability
- seller authorization constraints
- basket consistency at checkout time
Response behavior:
- On success: returns a checkout URL.
- On failure: returns listing-level validation errors for unavailable/invalid items.
Heads up:
- Requires authentication.
post/basket/{id}/checkout
Path parameters
idstring required
The ID of the basket to retrieve
The ID of the basket to retrieve
Request body
Response
The response containing the checkout URL