The Stock data model defines every field associated with stock updates. When a product is imported into Connect, its stock is also imported. The connector populates the fields associated with product stocks. When stock is exported from Connect, each of those fields is mapped to its counterpart in the external platform.
The data model gives insight into the data saved with each stock update and what data is available for rule building.
In this article you will learn more about:
Data model
| Field | Description | Example of input | Required |
|---|---|---|---|
| Stocks.Total | Total number of stock units | "300" | Yes |
| Stocks.Warehouses.* | UUID of stock warehouse location | "ec0cbe66-2d57-44b4-955a-1d3453c88b53" | |
| Stocks.Warehouses.*.Quantity | Stock quantity at warehouse location | "300" | |
| StockStatus | Stock status | "InStock" |
API documentation
If you are looking into using this data model for your own connector, please visit the API documentation for Spotler Connect.