My Request
{
“order”: {
“state”: “OPEN”,
“source”: {
“name”: “CaterZen”
},
“reference_id”: “1678034”,
“location_id”: “LNMMT9D8WJNMC”,
“customer_id”: “YMWPBJDXGYV3T2DFCWHS8DA76G”,
“line_items”: [
{
“quantity”: “10”,
“name”: “1/2 1/2 TEA”,
“base_price_money”: {
“amount”: 279,
“currency”: “USD”
},
“modifiers”: [
{
“uid”: “DE3QYJCDO4SBCZLQW5UOJWZY”,
“name”: “DIET”,
“base_price_money”: {
“amount”: 2000,
“currency”: “USD”
},
“catalog_object_id”: “DE3QYJCDO4SBCZLQW5UOJWZY”
}
],
“variation”: {
“uid”: “Z6FBA6DCAJAMNFHSEVBHAUIT”,
“name”: “Small”
},
“note”: “”,
“catalog_object_id”: “Z6FBA6DCAJAMNFHSEVBHAUIT”,
“uid”: “AFOYDFJDJYHRUEF27BTD4NK7”,
“variation_name”: “Small”
}
],
“discounts”: [
{
“name”: “10% discount”,
“percentage”: “10”,
“type”: “FIXED_PERCENTAGE”,
“scope”: “ORDER”,
“uid”: “145670”
}
],
“taxes”: ,
“metadata”: {
“note”: “CaterZen Order”
},
“version”: 1,
“fulfillments”: [
{
“type”: “PICKUP”,
“pickup_details”: {
“recipient”: {
“customer_id”: “YMWPBJDXGYV3T2DFCWHS8DA76G”
},
“state”: “PROPOSED”,
“pickup_at”: “2024-08-07T22:00:00-07:00”
},
“uid”: “S0GNh9jh2pQ0PV0a62bZVD”
}
]
},
“fields_to_clear”: [
“line_items”
]
}
Response
{
“status”: 400,
“reason”: “Bad Request”,
“error”: {
“errors”: [
{
“code”: “INVALID_VALUE”,
“detail”: “Read-only field is calculated and cannot be set by a client.”,
“field”: “order.line_items[AFOYDFJDJYHRUEF27BTD4NK7].gross_sales_money”,
“category”: “INVALID_REQUEST_ERROR”
}
]
}
}
I add 2 line line item and place order.
then i remove last line item i got this error.Please anyone solve this issue??