DELETE api/CUSTOMER_CARTS/{id}
Deletes a single CUSTOMER_CARTS record according to passed CART_ID value
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
Obligatory. The CART_ID value of the record passed that need to be deleted |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
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": "df525ef3-e585-4d60-8263-91c81ec2a14c",
"SLICING_NAME_AR": "sample string 15",
"SLICING_NAME_EN": "sample string 16",
"SLICING_PRICE": 17.0,
"PACKAGING_ID_IMAGE": "1f88d463-62be-4613-b00b-46477746d0ed",
"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": "df525ef3-e585-4d60-8263-91c81ec2a14c",
"SLICING_NAME_AR": "sample string 15",
"SLICING_NAME_EN": "sample string 16",
"SLICING_PRICE": 17.0,
"PACKAGING_ID_IMAGE": "1f88d463-62be-4613-b00b-46477746d0ed",
"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"
}
]
}
]
}
