Update a shopping cart by ID
PATCH/api/cart/:id
Update a shopping cart using its ID.
Request
Path Parameters
id stringrequired
The ID of the cart to update
- application/json
Body
required
shipping_country string
The ID from the shipping country
Responses
- 200
Successful update of the cart
- application/json
- Schema
- Example (from schema)
- Example
Schema
any
{
"cart_id": "a0fe94b4-ef94-4c4c-90e8-d285e879ffcf",
"customer_session_id": "my-session",
"shippingCountry": "c07d8af8-9d37-403b-aede-427c4b5fba3c",
"line_items": [],
"total_amount": 0,
"currency": "EUR",
"available_shipping_countries": []
}
{
"cart_id": "a0fe94b4-ef94-4c4c-90e8-d285e879ffcf",
"customer_session_id": "my-session",
"shippingCountry": "c07d8af8-9d37-403b-aede-427c4b5fba3c",
"line_items": [],
"total_amount": 0,
"currency": "EUR",
"available_shipping_countries": []
}
Loading...