GET

Get Cart


Deprecated

This method has been replaced with Get Cart, and will be removed on September 4, 2024.

Get a cart by ID.

Deprecation Notice:

This endpoint has been replaced with Get Cart and will be removed on September 4, 2024.

To help with migration from the Stores Cart API to the eCommerce Cart API, refer to the Cart Conversion Table for field changes in name and/or location.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Read Orders
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/cart-proxy/v1/carts/{id}

Path Params
idstringRequired

Cart ID

Response Object
cartCart

Cart details

Get Cart Example 1
Request
cURL
curl -X GET 'https://www.wixapis.com/stores/v1/carts/6000dbd9-cb49-4066-820e-2d95cb1e228b' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "cart": { "id": "6000dbd9-cb49-4066-820e-2d95cb1e228b", "status": "COMPLETE", "weightUnit": "LB", "currency": { "code": "USD", "symbol": "$" }, "convertedCurrency": { "code": "USD", "symbol": "$" }, "billingAddress": { "address": { "country": "US", "city": "New York", "postalCode": "10001", "addressLine": "123123" }, "contactDetails": { "firstName": "John", "lastName": "Doe", "phone": "0548799654", "email": "johndoe@anydomain.com" } }, "totals": { "subtotal": 50.0, "shipping": 0.0, "tax": 0.0, "discount": 0.0, "total": 50.0, "weight": 0.0, "quantity": 2 }, "convertedTotals": { "subtotal": 50.0, "shipping": 0.0, "tax": 0.0, "discount": 0.0, "total": 50.0, "weight": 0.0, "quantity": 2 }, "shippingInfo": { "shippingAddress": { "address": { "country": "US", "city": "New York", "postalCode": "10001", "addressLine": "123123" }, "contactDetails": { "firstName": "John", "lastName": "Doe", "phone": "0548799654", "email": "johndoe@anydomain.com" } } }, "buyerInfo": { "id": "d24e958a-85f7-4bea-1f75-4d7678a42019", "identityType": "MEMBER", "email": "johndoe@anydomain.com", "phone": "0548799654", "firstName": "John", "lastName": "Doe" }, "lineItems": [ { "quantity": 1, "price": "25.00", "name": "Gadget", "productId": "d956c56d-4fc7-9420-480e-ae6544287fff", "totalPrice": "50.00", "lineItemType": "DIGITAL", "customTextFields": [], "mediaItem": { "mediaType": "IMAGE", "url": "https://static.wixstatic.com/media/8ed856_a70af7fc0eca9f1ab5b5c966b5274b79~mv2.gif/v1/fit/w_322,h_322,q_90/file.webp", "width": 322, "height": 322 }, "sku": "5678", "options": [], "id": 1 } ] } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?