question

gokulselvan avatar image
gokulselvan asked gokulselvan commented

How to get unitqty of a specific order ?

Hi,

I can't able to retrieve the quantity details using clover REST API.

I tried,

curl --request GET \
     --url 'https://sandbox.dev.clover.com/v3/merchants/{MID}/orders/{OID}?expand=lineItems' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {API}'

And Also

curl --request GET \
--url 'https://sandbox.dev.clover.com/v3/merchants/{MID}/orders/{OID}/line_items' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {API}'


Still i cant get the order quantity details of the specific product.

How to achieve this?

Please help


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

gokulselvan avatar image gokulselvan commented ·
Note : Order was created using ecommerce order api
0 Likes 0 ·

1 Answer

David Marginian avatar image
David Marginian Deactivated answered gokulselvan commented
3 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.

gokulselvan avatar image gokulselvan commented ·

Need to add multiple line items when making order inorder to get quantity .


Is that right?

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ gokulselvan commented ·
That is correct.
0 Likes 0 ·
gokulselvan avatar image gokulselvan David Marginian ♦♦ commented ·
Okay, Thankns
0 Likes 0 ·

Welcome to the
Clover Developer Community