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

                            products/info

                            Type Info
                            List Products
                            URL http://{domain}/api/v2/products/info.json
                            Accepts Filters No
                            Output Attributes
                            Yes


                            Products Info Data

                            Gets Products info.
                            Filters
                            Filter the Products into a list.
                            Parameter Type Rules Example
                            id int / array one id or multiple Lead Commerce product ids
                            1 or array(3,8,9,45)

                            Request

                            Example cURL sent
                            curl -X POST 'https://{yourdomain}/api/v2/products/info.json' 
                            -u '{your-identifier}:{your-key}' 
                            -H 'Content-Type: application/x-www-form-urlencoded' 
                            --data-urlencode 'id[0]=1' 
                            --data-urlencode 'id[1]=2'
                            

                            Response

                            Example JSON returned
                            {
                              "code": "200",
                              "data": {
                                "1": [
                                  {
                                    "id": "1",
                                    "display_id": "20000",
                                    "name": "Modern-Fit Vest",
                                    "price": "22.99",
                                    "cost": "8.95",
                                    "available_on": "0",
                                    "unavailable_after": "0",
                                    "product_description": "<p>Sophisticated style. Delivers a classic look.</p>",
                                    "status": "1",
                                    "product_type": [
                                      {
                                        "id": "1",
                                        "name": "Retail Products"
                                      }
                                    ],
                                    "tax_code": [
                                      {
                                        "id": "2",
                                        "name": "Generic Product/Service"
                                      }
                                    ],
                                    "bulk_pricing": "",
                                    "terms_and_conditions": "",
                                    "categories": [
                                      {
                                        "id": "1",
                                        "name": "Products"
                                      },
                                      {
                                        "id": "2",
                                        "name": "Sale Items"
                                      }
                                    ],
                                    "subcategories": [
                                      {
                                        "id": "6",
                                        "name": "Men"
                                      },
                                      {
                                        "id": "1",
                                        "name": "Men Shirts"
                                      }
                                    ],
                                    "attributes": [
                                      {
                                        "id": "5",
                                        "name": "MSRP",
                                        "display_name": "MSRP",
                                        "slug": "attr_msrp",
                                        "value": "35.00"
                                      },
                                      {
                                        "id": "6",
                                        "name": "QC Code",
                                        "display_name": "QC Code",
                                        "slug": "attr_qc_code",
                                        "value": "AAD"
                                      }
                                    ]
                                  }
                                ],
                                "2": [
                                  {
                                    "id": "2",
                                    "display_id": "20001",
                                    "name": "Fleece Curved Pocket Hoodie",
                                    "price": "32.99",
                                    "cost": "6.95",
                                    "available_on": "0",
                                    "unavailable_after": "0",
                                    "product_description": "<p>This hoodie has a layer for warmth and comfort.</p>",
                                    "status": "1",
                                    "product_type": [
                                      {
                                        "id": "2",
                                        "name": "Wholesale Products"
                                      }
                                    ],
                                    "tax_code": [
                                      {
                                        "id": "2",
                                        "name": "Generic Product/Service"
                                      }
                                    ],
                                    "bulk_pricing": "",
                                    "terms_and_conditions": "",
                                    "categories": [
                                      {
                                        "id": "1",
                                        "name": "Products"
                                      }
                                    ],
                                    "subcategories": [
                                      {
                                        "id": "5",
                                        "name": "Women"
                                      },
                                      {
                                        "id": "2",
                                        "name": "Women Shirts"
                                      }
                                    ],
                                    "attributes": ""
                                  }
                                ]
                              }
                            }
                            

                            Start your free, no-risk trial today.