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

api_key
Type: API Key (header: X-CSRF-Token)

Parameters

Path Parameters

basketId*
Typestring
Required

Responses

Authorization
api_key
Variables
Key
Value
basketId*
cURL
curl -X GET \
'http://localhost/api/baskets/{basketId}'

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())