question

ddux avatar image
ddux asked Miguel Deactivated edited

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

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.

10 |2000

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 Miguel Deactivated commented
How to get it from clover local DB?
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.

Miguel avatar image Miguel commented ·

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