v1
latestOpenAPI 3.0.02026-07-26318168886.7 KBCarts
Add cart items
Add items to cart by cart id and mid
post/carts/{cart_id}/items
Path parameters
cart_idstring required
Cart identifier
Request body
Example request
{
"items": [
{
"main_product_id": "67cfa5a44029af003b96d6d9",
"product_id": "6125ac5b95c022004560d146",
"quantity": 1,
"type": "addon_product",
"created_by": "openapi",
"variation_id": "680ee3fcb45601001d9834d7"
}
]
}Response
Bad Request
Example response
{
"error": {
"message": [
{
"code": "INVALID_ITEM",
"reason": "invalid cart item at index 0: invalid item"
}
]
}
}