Order with modifier was giving error

I am trying to create an order with modifier , got modifier name not found error . even though i am passing modifier id

Request:

{
“idempotency_key”: “66647291-5e78-42b4-86e0-a85f686a3f8a”,
“order”: {
“location_id”: “LF2CPEMJ8C402”,
“customer_id”: “RPWV7RR1CRRGVBY8WZYXJF224C”,
“line_items”: [
{
“catalog_object_id”: “34VAF224ZZTLEXHRHGV75J3K”,
“modifiers”: [
{
“catalog_object_id”: “NDZFASRG3GCTLDELZKSJIEUR”
}
],
“quantity”: “1”
}
]
}
}

Response:
{
“errors”: [
{
“code”: “MISSING_REQUIRED_PARAMETER”,
“detail”: “Missing required parameter.”,
“field”: “order.line_items[0].modifiers[0].catalog_object.modifier_list.name”,
“category”: “INVALID_REQUEST_ERROR”
}
]
}

it look’s like the error is from missing a name under modifier_list
I hope this help

if i provide name with modifier catalog id. i am getting different error

Request:

{
“idempotency_key”: “80a949fe-1664-42c4-92bb-e7c3457d341e”,
“order”: {
“location_id”: “LF2CPEMJ8C402”,
“customer_id”: “RPWV7RR1CRRGVBY8WZYXJF224C”,
“line_items”: [
{
“quantity”: “1”,
“modifiers”: [
{
“catalog_object_id”: “NDZFASRG3GCTLDELZKSJIEUR”,
“name”: “Spicy”
}
],
“catalog_object_id”: “34VAF224ZZTLEXHRHGV75J3K”
}
]
}
}

Response::

{
“errors”: [
{
“code”: “INVALID_VALUE”,
“detail”: “Do not provide a value for name if you provide a value for catalog_object_id.”,
“field”: “order.line_items[0].modifiers[0].name”,
“category”: “INVALID_REQUEST_ERROR”
}
]
}

:wave: Wanted to provide an update for this. The team is looking at this. I haven’t been able to replicate and this appears to be a valid modifier. I’ll be sure to reach out with any updates. :slightly_smiling_face: