Is it possible to create multiple items in one API call?
in Development
Is it possible to create multiple items in one create call to the /Item/
endpoint? e.g. a POST call that would look something like this:
[ {description: 'item_1', ...}, {description: 'item_2', ...}, {description: 'item_3', ...} ]
Best Answer
-
LucienVersendaal Moderator, Lightspeed Staff Posts: 579 moderator
Hi @rafdizzle ,
Thank you for contacting us.
Unfortunately this is not possible with the API. This is only possible with an import, you can find this in the UI of Lightspeed Retail.
I hope this will help.
Answers
@LucienVersendaal is it possible to put in a feature request for this? Considering the API is throttled and limits you from making a certain amount of calls per second I think it is only fair to have some of the endpoints allow multi-object payloads - starting with item creation.
I agree with LucienVersendaal this would be great. As we are severly contstrained by the auto trotteling of the API so it can take a long time to call multiple put requests.