Create Web Cart Item
POST
{{web_ecommercev2_url}}/carts
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{web_ecommercev2_url}}/carts' \
--header 'Content-Type: application/json' \
--header 'x-access-token;' \
--data-raw '{
"itemId": "68223108e028b7dd8391a918",
"quantity": 1,
"type": "product",
"branchId": "68335a932a94fd5621e6537f",
"addons": [
{
"id": "682c9b6e2d8bcfe98e6952ea",
"values": [
{
"id": "682c9b6e2d8bcfe98e6952e8",
"quantity": 2
}
]
}
],
"additionalInformation": {
"note": "some note",
"logo": {
"_id": "507f1f77bcf86cd799439013",
"path": "https://example.com/images/mens-accessories-2.jpg",
"variants": [
"thumbnail",
"medium",
"large"
],
"originalName": "wallet_main.jpg",
"service": "s3"
},
"image": {
"_id": "507f1f77bcf86cd799439013",
"path": "https://example.com/images/mens-accessories-2.jpg",
"variants": [
"thumbnail",
"medium",
"large"
],
"originalName": "wallet_main.jpg",
"service": "s3"
}
}
}'
Response Response Example
{}
Request
Header Params
x-access-token
stringÂ
optional
Example:
{{admin-token}}
x-client
stringÂ
optional
Example:
{{client}}
accept-language
stringÂ
optional
Example:
{{acceptLanguage}}
Body Params application/json
Responses
Modified at 2025-06-15 10:46:24