We integrated the clover application. For clover merchant there is a below scenario
1> Customer placed order through browser
2> Item name Pizza added with quantity 2 in order cart (price for 1 quantity is $2.67)
3> Below Json request sent to clover api (Create a new line item). In request
passed 2 quntity.
-- Json request
{"quantitySold":2,"unitQty":2,"createdTime":"1529668621","exchanged":false,"refunded":false,"price":"534","isRevenue":false,"item":{"id":"1GFZ5HY0ANQCY"},"name":"Pizza","printed":false,"note":null,"userData":null,"modifications":null,"customers":null}
-- Clover api (Create a new line item) :
POST /v3/merchants/{mId}/orders/{orderId}/line_items
Once the clover order generated successfully and later response checked under orders (Get a single order) clover api showing 1 quantity price instead of 2 quantity under "lineItems".
Question is, need to call above (Create a new line item) clover api
for each quantity even if same Item is placed with 2 or more quantities ?