Best Way to Get customSku When Using the Order Endpoint

Hi all,
Were pulling incomplete orders in order to track outstanding/undelivered lines.
What is the best/recommended way to pull the Items relating to the OrderLines?
Is there any way to pull multiple inventory items in one call? i.e. https://api.lightspeedapp.com/API/Account/{AccountNo}/Items?1,2,3,4.json or similar?
Or am I going to have to keep a local inventory which updates occasionally?
Is there another method people are using?
Best Answer
-
Adrian Samuel Moderator, Lightspeed Staff Posts: 652 moderator
Hey @darryl_ss,
Great question! Try the query below:
https://api.lightspeedapp.com/API/Account/{accountID}/Item.json?itemID=IN,[1,2,3]
You can read more about the various queries here:
You also have the option to use the DisplayTemplate/Order endpoint which loads the SaleLine Item customSku by default:
Hope this helps!
Adrian Samuel
Software Developer
Lightspeed HQ
Answers
That is awesome and saved me some messing around!
Thanks @Adrian Samuel