v14

OpenAPI 3.1.02026-08-03122113375.9 KB
basket

Add item to basket

Adds a listing to the basket and gives you the updated basket state back.

Typical usage:

  • user clicks "Add to basket" on a listing page
  • client sends listingId and quantity
  • UI refreshes from the returned basket payload

Why this response is handy:

  • You can re-render the whole basket immediately without an extra read call.

Important behavior:

  • Requires authentication.
  • If stock is unavailable (or the listing is invalid), the API returns structured listing errors.
post/basket/{id}

Path parameters

idstring required

The ID of the basket to retrieve

The ID of the basket to retrieve

Request body

listingIdstring required

The ID of the listing

quantityinteger

The quantity of the item in the basket, defaults to 1

Response

Updated list of items in the basket

object required