Skip to content

Returns details of the basket with the given ID. Returns 200 and the basket, 500 if the basket does not exist, or 401 if not logged in.

GET
/api/baskets/{basketId}

Authorizations

Parameters

Path Parameters

basketId*
Typestring
Required

Responses

Samples

cURL
curl -X GET http://localhost/api/baskets/{basketId}
JavaScript
fetch("http://localhost/api/baskets/{basketId}")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("http://localhost/api/baskets/{basketId}");
Python
import requests
response = requests.get("http://localhost/api/baskets/{basketId}")
print(response.json())