GET warehouses/get_stock_balance_per_product
Available from CRM.COM R9.0.0
This method returns information related with the stock balance of a specific product across all warehouses.
Resource URL
Parameters
Name | Type | Description | ||||||||||||
token | String | The token retrieved from the login method | ||||||||||||
product_identifier (semi-optional) | Product Identifier | The identifier of the product whose stock balance that should be returned as a result. The allowed product identifier fields are the following:
| ||||||||||||
product_type_identifier (semi-optional) | Product Type Identifier | The identifier of the product type based on which the stock balance of all products of this type will be returned as a results. The allowed product type identifier fields are the following:
| ||||||||||||
product_family_identifier (semi-optional) | Product Family Identifier | The identifier of the product family based on which the stock balance of all products of this family will be returned as a results. The allowed product family identifier fields are the following:
| ||||||||||||
fields_set (optional) | List of Strings, comma separated | A list of fields that should be included in the results. If not specified then all the available fields will be returned |
Restrictions
- It is mandatory to specify one of the semi-optional parameters. Only one of those parameters is allowed to be specified.
Response Data
Name | Type | Description |
---|---|---|
quantity | Number | The stock balance of the product across all warehouses |
number_of_products_included_in_bundles | Number | The number of items included in physical good bundles |
product | Product Object | The product whose stock balance across all warehouses is calculated |
stock_balance_per_warehouse | Set of Stock Balance Per Warehouse Objects | The warehouses based on which the product's stock balance was calculated |
Referred Objects Response Data