question

yilipiao avatar image
yilipiao asked David Marginian Deactivated edited

regarding lineItems of orde

The following only give me one line of the order, what should i do to fix it to get correct quantity of the item?

1622748854388.png

REST API
1622748854388.png (57.0 KiB)
10 |2000

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

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

It looks like the ui is grouping the items, have you tried hitting the "Ungroup line items" link above and to the right of the table?

2 comments
10 |2000

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

yilipiao avatar image yilipiao commented ·

but when I use API to get this order, it only returns one line instead of 3 lines:1622748982092.png

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ yilipiao commented ·

I am not sure what API you are calling, but 3 line items are returned if you call the orders/{orderId} endpoint and expand on lineItems. Checkout the call in the network tab from the dashboard to confirm this.

0 Likes 0 ·

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