Get Inventory Item

By specifying a Product Code at the end of the endpoint, you can bring up information about the corresponding product.

Endpoint: https://YOUR-ACCOUNT-NAME.despatchcloud.co.uk/ws/v1/wsorders/get_inventory/{product_code}
Method: GET
 
Example Response:
CopyCopyCopyCopyCopyCopyCopy{
  "status": "SUCCESS",
  "inventory": {
    "product_id": "21584",
    "product_code": "Test5",
    "product_type_id": "1",
    "item_barcode": "2123456",
    "item_barcode_2": "",
    "item_barcode_3": "",
    "item_barcode_4": "",
    "item_barcode_5": "",
    "name": "Test Product 5",
    "image": "Test5.jpg",
    "stock_warn_level": "0",
    "sync_stock": "1",
    "production": "0",
    "product_weight": "0.475",
    "product_height": "0.0",
    "product_width": "0.0",
    "product_length": "0.0",
    "date_added": "0",
    "data_array": "",
    "description": "",
    "supplier": "",
    "cost_price": "0.00",
    "last_updated": "1564658547",
    "vat_option": "0",
    "accounts_code": "",
    "max_level": "0",
    "multiplier": "1",
    "retail_price": "0.00",
    "shipping_service_id": "0",
    "stock_level": 0,
    "locations": [
      {
        "il_id": "21603",
        "product_id": "21584",
        "location_id": "0",
        "stock_level": "0",
        "stock_warn_level": "0",
        "priority": "10",
        "parent_location_id": "0",
        "location_name": "Default",
        "location_type_id": "1",
        "pickable": "0",
        "on_hand_stock": "1",
        "deleted_status": "0",
        "location_type": "Default",
        "location_priority": "1000"
      }
    ]
  }
}