question

richa avatar image
richa asked ·

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 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.

1 Answer

David Marginian avatar image
David Marginian answered ·

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 Share
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.

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

0 Likes 0 · ·

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