Skip to content

Get Cart By ID

GET

/carts/:id

https://api.storefront.wdb.skooldio.dev/carts/:id

Require Authentication: No


Get cart items by ID sorted by updated_at

Request Parameters

Path

id type: string required

The ID of the cart.

Example Request

Terminal window
curl --request GET \
--url https://api.storefront.wdb.skooldio.dev/carts/1

Responses

Results

{
"id": "cart-1",
"items": [
{
"id": "aehIBBlqv4",
"skuCode": "sku-1",
"quantity": 2,
"productPermalink": "1"
},
{
"id": "Nljuq9tjFi",
"skuCode": "sku-2",
"quantity": 1,
"productPermalink": "2"
}
]
}