PUT api/CUSTOMER_CARTS?cartId={cartId}&quantity={quantity}&weight={weight}
Update a single cart item's quantity that belongs to current customer
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| cartId |
Obligatory. The CART_ID value of the record passed that need to be updated |
integer |
Required |
| quantity |
Obligatory. New quantity of cart item |
integer |
Required |
| weight |
Optional. Livestock weight |
decimal number |
None. |
Body Parameters
None.
Response Information
Resource Description
Returns all cart items belongs to current customer
CUSTOMER_CARTS_CMD_RESPONSE| Name | Description | Type | Additional information |
|---|---|---|---|
| Status | Status |
None. |
|
| DATA | Collection of CART_ITEM |
None. |
Response Formats
application/json, text/json
Sample:
{
"Status": {
"Success": true,
"MessageEn": "sample string 2",
"MessageAr": "sample string 3",
"DetailedMessage": "sample string 4",
"Code": 0,
"CartErrors": [
{
"ResultStatusCode": 0,
"CartId": 1,
"CorrectValue": {},
"MessageEn": "sample string 2",
"MessageAr": "sample string 3",
"CartCorrectAction": 0
},
{
"ResultStatusCode": 0,
"CartId": 1,
"CorrectValue": {},
"MessageEn": "sample string 2",
"MessageAr": "sample string 3",
"CartCorrectAction": 0
}
]
},
"DATA": [
{
"CART_ID": 1,
"CART_ID_IMAGE": "sample string 2",
"TITLE_AR": "sample string 3",
"TITLE_EN": "sample string 4",
"TITLE2_AR": "sample string 5",
"TITLE2_EN": "sample string 6",
"FK_CUSTOMER": 7,
"FK_LIVESTOCK": 1,
"FK_PROMO": 1,
"QUANTITY": 8,
"FK_PACKAGING_METHOD": 1,
"PACKAGING_CHARGE": 1.0,
"FK_SLICING_METHOD": 1,
"SLICING_CHARGE": 1.0,
"UNIT_PRICE": 9.0,
"TOTAL_PRICE": 10.0,
"FK_CLASS": 1,
"FK_CATEGORY": 1,
"FK_AGE": 1,
"FK_WEIGHT": 1,
"AGE_NAME_AR": "sample string 11",
"AGE_NAME_EN": "sample string 12",
"WEIGHT_NAME_AR": "sample string 13",
"WEIGHT_NAME_EN": "sample string 14",
"SLICING_ID_IMAGE": "67bb877d-9670-4129-a51d-2af2fb8a56b7",
"SLICING_NAME_AR": "sample string 15",
"SLICING_NAME_EN": "sample string 16",
"SLICING_PRICE": 17.0,
"PACKAGING_ID_IMAGE": "51618a21-bb74-4503-a5b6-1add9b8e6393",
"PACKAGING_NAME_AR": "sample string 18",
"PACKAGING_NAME_EN": "sample string 19",
"PACKAGING_PRICE": 20.0,
"NOTES": "sample string 21",
"WEIGHT": 22.0,
"APPROVED": true,
"SECONDARY_PARTS_DESC_AR": "sample string 24",
"SECONDARY_PARTS_DESC_EN": "sample string 25",
"SECONDARY_PARTS_TOTAL": 26.0,
"SECONDARY_PARTS": [
{
"PART_ID": 1,
"PART_NAME_AR": "sample string 2",
"PART_NAME_EN": "sample string 3",
"PART_PRICE": 4.0
},
{
"PART_ID": 1,
"PART_NAME_AR": "sample string 2",
"PART_NAME_EN": "sample string 3",
"PART_PRICE": 4.0
}
],
"SLICING_CUTTINGS_DESC_AR": "sample string 27",
"SLICING_CUTTINGS_DESC_EN": "sample string 28",
"SLICING_CUTTINGS_ITEMS": [
{
"CUTTING_ID": 1,
"CUTTING_NAME_AR": "sample string 2",
"CUTTING_NAME_EN": "sample string 3"
},
{
"CUTTING_ID": 1,
"CUTTING_NAME_AR": "sample string 2",
"CUTTING_NAME_EN": "sample string 3"
}
]
},
{
"CART_ID": 1,
"CART_ID_IMAGE": "sample string 2",
"TITLE_AR": "sample string 3",
"TITLE_EN": "sample string 4",
"TITLE2_AR": "sample string 5",
"TITLE2_EN": "sample string 6",
"FK_CUSTOMER": 7,
"FK_LIVESTOCK": 1,
"FK_PROMO": 1,
"QUANTITY": 8,
"FK_PACKAGING_METHOD": 1,
"PACKAGING_CHARGE": 1.0,
"FK_SLICING_METHOD": 1,
"SLICING_CHARGE": 1.0,
"UNIT_PRICE": 9.0,
"TOTAL_PRICE": 10.0,
"FK_CLASS": 1,
"FK_CATEGORY": 1,
"FK_AGE": 1,
"FK_WEIGHT": 1,
"AGE_NAME_AR": "sample string 11",
"AGE_NAME_EN": "sample string 12",
"WEIGHT_NAME_AR": "sample string 13",
"WEIGHT_NAME_EN": "sample string 14",
"SLICING_ID_IMAGE": "67bb877d-9670-4129-a51d-2af2fb8a56b7",
"SLICING_NAME_AR": "sample string 15",
"SLICING_NAME_EN": "sample string 16",
"SLICING_PRICE": 17.0,
"PACKAGING_ID_IMAGE": "51618a21-bb74-4503-a5b6-1add9b8e6393",
"PACKAGING_NAME_AR": "sample string 18",
"PACKAGING_NAME_EN": "sample string 19",
"PACKAGING_PRICE": 20.0,
"NOTES": "sample string 21",
"WEIGHT": 22.0,
"APPROVED": true,
"SECONDARY_PARTS_DESC_AR": "sample string 24",
"SECONDARY_PARTS_DESC_EN": "sample string 25",
"SECONDARY_PARTS_TOTAL": 26.0,
"SECONDARY_PARTS": [
{
"PART_ID": 1,
"PART_NAME_AR": "sample string 2",
"PART_NAME_EN": "sample string 3",
"PART_PRICE": 4.0
},
{
"PART_ID": 1,
"PART_NAME_AR": "sample string 2",
"PART_NAME_EN": "sample string 3",
"PART_PRICE": 4.0
}
],
"SLICING_CUTTINGS_DESC_AR": "sample string 27",
"SLICING_CUTTINGS_DESC_EN": "sample string 28",
"SLICING_CUTTINGS_ITEMS": [
{
"CUTTING_ID": 1,
"CUTTING_NAME_AR": "sample string 2",
"CUTTING_NAME_EN": "sample string 3"
},
{
"CUTTING_ID": 1,
"CUTTING_NAME_AR": "sample string 2",
"CUTTING_NAME_EN": "sample string 3"
}
]
}
]
}
