Product Inventory API

Created by Ezra Weinstein, Modified on Tue, 23 Aug 2022 at 05:26 PM by Ethan Harris

There is now an API call for this. The method is update_product_inventory.

It takes the following parameters: product_inventory_updates - an array of any number of the following parameters. This allows you to send inventory updates for multiple products product_id or upc_code or product_code - what product is being updated location_id or location_code - What location is being updated. Neither of these should be hard coded.

The list of locations should be gotten from the API and displayed in the POS as a list of locations from which the user can choose.

If there is only one location, it could be set in settings. quantity - positive value of how many are being added or subtracted from inventory inventory_adjustment_type_id or inventory_adjustment_type_code - Determines what the system will do with the quantity.

These values should be gotten from the API. notes - notes to be added to inventory log total_cost - total cost of all quantity of this product cost - cost of each product in this inventory update. Total cost will be calculated. Related API's: get_locations get_inventory_adjustment_types

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article