question

z-order avatar image
z-order asked parquet76 commented

Missing modification in order using Create multiple line items REST API

Hi,

I am trying to add multiple line item with modifiers using the Create multiple line items REST API in sandbox env. The line item added with no issue, but no modifier added.

I use this same item data when I create an atomic order, and no problem with items and modifiers on the order. And I call Create multiple line items REST API to add line item with modifier(s).

This is the request I am sending.

{
"items":[
{
"item":{
"id": "EH6CFHQA2RC8Y"
},
"name": "LITTLE BACON CHEESEBURGER",
"alternateName": "",
"price": "1189",
"priceWithModifiers": "1389",
"priceWithModifiersAndItemAndOrderDiscounts": "1189",
"note": "",
"printed": "false",
"createdTime": "1713834740798",
"orderClientCreatedTime": "1713834740798",
"exchanged": "false",
"modifications":[
{
"name": "KETCHUP",
"alternateName": "",
"amount": "200",
"modifier":{
"id": "X52GZJB6D8WRA",
"name": "KETCHUP",
"alternateName": "",
"available": "true",
"price": "200",
"modifierGroup":{
"id": "ATPQNVEC8SG2J"
}
},
"quantitySold": "1"
}
],
"refunded": "false",
"isRevenue": "true",
"quantitySold": "1"
}
]
}


Am i missing something here? Any help regarding how to add line items with modifiers in a single api call would be appreciated.

OrdersLineItemsModifiers
1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community