question

aliassad110 avatar image
aliassad110 asked aliassad110 commented

How can i group similar lineItems when getting the order from clover Orders rest API ?

Hi, i am using clover Rest API to get orders, In my order there are many line items that can be grouped but the Order API is not grouping them, how can i group the similar line items

OrdersLineItems
1 comment
10 |2000 characters needed characters left characters exceeded

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

@David Marginian

0 Likes 0 ·

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered aliassad110 commented

I don't believe that is possible via the API, there is a "groupLineItems" property on an order but I believe the applies to the receipt (and perhaps some other internal views) and not the API response.

5 comments
10 |2000 characters needed characters left characters exceeded

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

okay can i know what logic groupLineItems is using ? how can i implement that internally any guide or tips ?

0 Likes 0 ·

If you are working with Clover inventory, it should be fairly easy to do based on the item uuid.

0 Likes 0 ·
aliassad110 avatar image aliassad110 David Marginian ♦♦ ·

What about modifiers ?

0 Likes 0 ·
Show more comments

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