Update Item Put API - Using category ID & category

gchavezgchavez Member Posts: 4

I am looking to update an item through the PUT API, and see there are two attributes for category. The Category ID attribute is a string and the Category attribute is an object. I would like to use the object based category attribute since my items include sub-categories.

Does anyone have documentation or an example of how to format the category attribute? I wasn't able to find this information on their API page (https://developers.lightspeedhq.com/retail/endpoints/Item/#put-update-an-item) or anywhere else on the website.

In addition, do you need the category id's for this, or can you use the title/name of the category/sub-category for the API call?

Tags:

1 comment

  • gregaricangregarican Member Posts: 868 

    Looking at the API docs, the CategoryID appears to be listed for this particular endpoint. Are you sure you can't put pass along a different CategoryID value in your PUT request and see the change? The CategoryID associated with an item will display the text string in the web UI I'm assuming.

Sign In or Register to comment.