Basket
Add Product to Basket
curl --request POST --location 'https://{COMMERCE_URL}/b2b/basket/' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token {token}' \
--data '{
"product_remote_id": 1,
"division": 10,
"quantity": 3
}'{
"id": 7,
"total_amount": "81.65",
"total_quantity": 6,
"basket_items": [
{
"total_amount": "31.65",
"price": "10.55",
"quantity": 3,
"divisions": [
{
"id": 11,
"name": "sub",
"erp_code": "ERP02",
"quantity": 2
},
{
"id": 10,
"name": "main",
"erp_code": "ERP01",
"quantity": 1
}
],
"product": {
"sku": "SKU01"
},
"product_remote_id": 1
},
{
"total_amount": "40.00",
"price": "20.00",
"quantity": 2,
"divisions": [
{
"id": 11,
"name": "sub",
"erp_code": "ERP02",
"quantity": 2
}
],
"product": {
"sku": "SKU02"
},
"product_remote_id": 2
},
{
"total_amount": "10.00",
"price": "10.00",
"quantity": 1,
"divisions": [
{
"id": 10,
"name": "main",
"erp_code": "ERP01",
"quantity": 1
}
],
"product": {
"sku": "SKU03",
"name": "product name",
"price": "10.00",
"currency": "try",
"variants": {
"color": "red"
},
"product_image": "http://example.com/image.jpg"
},
"product_remote_id": 3
}
],
"segment_remote_id": null
}Remove/Update Product From Basket
List Basket
Delete Basket Item
List Draft Baskets
Save Basket
Load Basket
Import Basket
Field
Description
Export Basket
Parameter
Description
Export File Status
Field
Description
Last updated
Was this helpful?

