API Version 2
  • API V2 Overview
  • Category
    • Company
      • Customers
        • Orders
          • Pages
            • Page Templates
              • Products
                • Purchase Orders
                  • SKUs
                    • Support Tickets
                      • Tax Regions
                        • Vendors
                          • Warehouses
                            API Documentation

                            skus/info_batch

                            Type Info
                            List SKUs
                            URL http://{domain}/api/v2/SKUs/info_batch.json
                            Accepts Filters No
                            Output Attributes
                            No


                            SKUs Batch Info Data

                            Gets SKUs Batch INFO. Using this API one can retrieve detailed information on the SKU batch data which have been input into Lead Commerce based on Lead Commerce SKU IDs. The specific data points include ID, SKU, status and batch data blocks. The ID is the primary key identifier for SKUs in Lead Commerce, the SKU is the SKU identifier and the batch data block includes ID, qty_added, qty_remaining, cost, location, condition, etc.
                            Filters
                            Filter the SKUs Batch Info into a list.
                            Parameter Type Rules Example
                            id int / array one id or multiple Lead Commerce sku ids
                            1 or array(3,8,9,45)
                            Condition
                            1
                            New
                            2 Like New
                            3 Used
                            4 Used-Like New
                            5 Used-Very Good
                            6 Used-Good
                            7 Used-Acceptable
                            8 Expired
                            9 Refurbished
                            10 Collectable
                            11 Vintage

                            Response

                            Example JSON returned
                            {
                              "code": "200",
                              "data": {
                                "1": [
                                  {
                                    "id": "1",
                                    "sku": "20000-0001",
                                    "status": "1",
                                    "batch": [
                                      {
                                        "id": "1",
                                        "qty_added": "100",
                                        "qty_remaining": "75",
                                        "cost": "8.95",
                                        "location": "",
                                        "condition": "1",
                                        "manufacture_date": "",
                                        "expiration_date": "",
                                        "date_added": "1433183110",
                                        "modified_on": "1433530613",
                                        "warehouse": [
                                          {
                                            "id": "1",
                                            "name": "La Mesa"
                                          }
                                        ]
                                      },
                                      {
                                        "id": "5",
                                        "qty_added": "100",
                                        "qty_remaining": "45",
                                        "cost": "8.95",
                                        "location": "",
                                        "condition": "1",
                                        "manufacture_date": "",
                                        "expiration_date": "",
                                        "date_added": "1433183114",
                                        "modified_on": "1433286873",
                                        "warehouse": [
                                          {
                                            "id": "1",
                                            "name": "La Mesa"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ],
                                "2": [
                                  {
                                    "id": "2",
                                    "sku": "20000-0002BXW",
                                    "status": "1",
                                    "batch": [
                                      {
                                        "id": "2",
                                        "qty_added": "100",
                                        "qty_remaining": "45",
                                        "cost": "8.95",
                                        "location": "",
                                        "condition": "1",
                                        "manufacture_date": "",
                                        "expiration_date": "",
                                        "date_added": "1433183110",
                                        "modified_on": "1433286873",
                                        "warehouse": [
                                          {
                                            "id": "1",
                                            "name": "La Mesa"
                                          }
                                        ]
                                      },
                                      {
                                        "id": "6",
                                        "qty_added": "100",
                                        "qty_remaining": "100",
                                        "cost": "8.95",
                                        "location": "",
                                        "condition": "1",
                                        "manufacture_date": "",
                                        "expiration_date": "",
                                        "date_added": "1433183115",
                                        "modified_on": "1433183115",
                                        "warehouse": [
                                          {
                                            "id": "1",
                                            "name": "La Mesa"
                                          }
                                        ]
                                      }
                                    ]
                                  }
                                ]
                              }
                            }
                            

                            Start your free, no-risk trial today.