Endpoint
- Method: PUT
- URI: https://api.jooraccess.com/v2/style-number/[style_number]/[style_identifier]/inventory
Params
- Accept: application/xml OR application/json
- Content-Type: application/xml OR application/json
- Authorization: OAuth2 [Base64 encoded token]
Parameters
PARAMETERS | REQUIRED | TYPE | NOTES |
---|---|---|---|
color_code | X | String | Color code. If provided “size” also required. |
size | X | String | Size name. If provided, “color_code” also required. |
upc | X | String | If provided, “color_code” and “size” will be ignored in favor of UPC match. |
inventory | Y | String | The inventory amount for the SKU. |
inventory_date | N | String | Date assigned to the inventory positions. Can be in YYYY-MM-DD or MM-DD-YYYY format. |
warehouse | N | String | The warehouse name in which the inventory positions should be stored. Must be set up in JOOR before loading. |
dec_pending | N | Integer [0,1] | Value of "1" makes pending quantities deducted from incoming quantity to populate the available to sell. If not included in the request, the default is dec_pending = 0 |
Request Examples
PUT | https://api.jooraccess.com/v2/style-number/00123/ST1234566/inventory/?color_code=001&size=M&inventory=123
Updates the inventory based on item SKU (Style Number + Color Code + Size)
PUT | https://api.jooraccess.com/v2/style-number/00123/ST1234566/inventory/?upc=8001234567898&inventory=123
Updates the inventory based on UPC (note, UPC will need to have been previously inserted)
Response Field Details
FIELD NAME | TYPE | DESCRIPTION |
---|---|---|
sku_count | Integer | The total number of style – color – season – size inventory updates performed. |
inventory_log | N/A | Container for the update log |
sku | String | A concatenated version of the SKU data provided in the request |
inventory_log_id | UUID | The unique JOOR ID for the transactions |
status | String | A pass/fail response for each inventory request |