Create shopping cart
POST/api/cart
Create cart.
Request
- application/json
Body
required
customer_session_id string
Customer session id
currency string
Cart's currency
Responses
- 200
Successful cart creation
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"cart_id": "a0fe94b4-ef94-4c4c-90e8-d285e879ffcf",
"customer_session_id": "my-session",
"shippingCountry": null,
"line_items": [],
"total_amount": 0,
"currency": "EUR",
"available_shipping_countries": []
}
{
"cart_id": "a0fe94b4-ef94-4c4c-90e8-d285e879ffcf",
"customer_session_id": "my-session",
"shippingCountry": null,
"line_items": [],
"total_amount": 0,
"currency": "EUR",
"available_shipping_countries": []
}
Loading...