v1
latestOpenAPI 3.0.12026-08-0620949.4 KBShoppingCarts
Creates or updates a shopping cart
Creates a new shopping cart or updates an existing shopping cart based on the shopping cart's id. The profile with id profile_id is linked to this shopping cart. When the profile does not exist, a stub profile is created. Each product in product_ids is linked to this shopping cart based on its id. When a product in product_ids does not exist, a stub product is created.
post/api/v1/languages/{language_id}/shopping_carts
Path parameters
language_idstring required
Request body
Example request
{
"shopping_cart": {
"currency": "Euro",
"price": 10.52,
"recovery_url": "www.example.com/my_shopping_cart",
"product_ids": [
1,
2,
3
]
}
}Response
ShoppingCart successfully saved
Example response
{
"shopping_cart": {
"currency": "Euro",
"price": 10.52,
"recovery_url": "www.example.com/my_shopping_cart",
"product_ids": [
1,
2,
3
]
},
"message": "Shopping cart successfully saved"
}