question

richa avatar image
richa asked David Marginian Deactivated edited

getting line items array in orders list

Hello, I have an issue.I am not getting list of orders line items along with orders list. Is there any way to get line items along with orders list ?


Orders
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

You need to use an expansion, please see https://docs.clover.com/docs/expanding-fields and then look at the REST API reference for the request you are making (it will list the expandeable fields).

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.

richa avatar image richa commented ·

But it will provide for single order.I need it with list of all orders only.

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

I am not sure what you are asking, line items belong to an order. If you make a request to the orders endpoint (https://docs.clover.com/reference/orders-1#ordergetorders-2) and expand on lineItems you will receive all orders and each order will have its lineItems.

0 Likes 0 ·

Welcome to the
Clover Developer Community