question

Ddux avatar image
Ddux asked ·

Is there a way to retrieve a single item category per order line with REST V3 api?

Hello,

I am new to the clover app development and I really hope someone can help me out with a simple question:

Is it possible to get unique category per lineitem in orders with REST V3 api?

I figured I can get item id from lineitem from orders api end point and I can get items categories from items api endpoint, but the question is can I get category from which the item was sold.

Than you, Ddux

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

stevenblakemore avatar image
stevenblakemore answered ·

Hi Ddux, try adding "&expand=lineItems.item.categories" to your api call.

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.

Amar avatar image
Amar answered ·
How to get it from clover local DB?
1 comment 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.

Hi @Amar, if you have a follow up, please search and if you're unable to find an answer, post as a new question.

0 Likes 0 · ·

Welcome to the
Clover Developer Community