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

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

aliassad110 avatar image aliassad110 commented ·

@David Marginian

0 Likes 0 ·

1 Answer

·
David Marginian avatar image
David Marginian Deactivated 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

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

aliassad110 avatar image aliassad110 commented ·

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

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

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 ♦♦ commented ·

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