---
updatedAt: 2025-11-11T00:10:29.000Z
agentTools:
  projectIndex: https://docs.interswitchgroup.com/v1.1/llms.txt
---

# Get Product By Id

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "retail-ecosystem",
    "version": "1.1"
  },
  "servers": [
    {
      "url": "https://retail-ecosystem-service.k8.isw.la"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "oauth2",
        "flows": {}
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/retail-ecosystem/api/v1/products/products/{productId}": {
      "get": {
        "summary": "Get Product By Id",
        "description": "",
        "operationId": "get-product-by-id",
        "parameters": [
          {
            "name": "productId",
            "in": "path",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 110
            },
            "required": true
          },
          {
            "name": "Authorization",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 200,\n    \"message\": \"Successful\",\n    \"data\": {\n        \"id\": 110,\n        \"createdOn\": \"2022-03-23 07:16:02\",\n        \"updatedOn\": \"2022-04-06 10:00:43\",\n        \"name\": \"Indomie Noodles\",\n        \"description\": \"The best noodles\",\n        \"price\": 10,\n        \"quantity\": 1000,\n        \"sellingStatus\": \"IN_STOCK\",\n        \"currencyCode\": \"566\",\n        \"weightValue\": 0.34,\n        \"weightUnit\": \"Kg\",\n        \"uniqueIdentifier\": \"e00caf44-1191-4126-8606-5c570b58dfd4\",\n        \"batchNumber\": \"Batch-01\",\n        \"supplierId\": 14,\n        \"manufacturingDate\": \"2021-10-17\",\n        \"bestBefore\": \"2031-10-17\",\n        \"isDeleted\": false,\n        \"productImages\": [\n            {\n                \"fileName\": \"6683fdee-5202-4e71-b51c-ab17b1b0199c.jpeg\",\n                \"fileUrl\": \"https://mufasa.k8.isw.la/p/public/retailecosystemservice/assets/products/6683fdee-5202-4e71-b51c-ab17b1b0199c.jpeg\"\n            }\n        ],\n        \"productVariants\": [\n            {\n                \"stockKeepingUnit\": \"Onion\",\n                \"sellUnit\": \"carton\",\n                \"weightValue\": 0.34,\n                \"weightUnit\": \"Kg\",\n                \"unitPrice\": 100,\n                \"quantity\": 1000,\n                \"sellingStatus\": \"IN_STOCK\"\n            }\n        ],\n        \"productCategories\": [\n            {\n                \"id\": 1,\n                \"name\": \"Home Care & Toliletries\"\n            },\n            {\n                \"id\": 4,\n                \"name\": \"Alcohol\"\n            }\n        ],\n        \"hasVariant\": true\n    },\n    \"validation\": null\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 200,
                      "default": 0
                    },
                    "message": {
                      "type": "string",
                      "example": "Successful"
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "integer",
                          "example": 110,
                          "default": 0
                        },
                        "createdOn": {
                          "type": "string",
                          "example": "2022-03-23 07:16:02"
                        },
                        "updatedOn": {
                          "type": "string",
                          "example": "2022-04-06 10:00:43"
                        },
                        "name": {
                          "type": "string",
                          "example": "Indomie Noodles"
                        },
                        "description": {
                          "type": "string",
                          "example": "The best noodles"
                        },
                        "price": {
                          "type": "integer",
                          "example": 10,
                          "default": 0
                        },
                        "quantity": {
                          "type": "integer",
                          "example": 1000,
                          "default": 0
                        },
                        "sellingStatus": {
                          "type": "string",
                          "example": "IN_STOCK"
                        },
                        "currencyCode": {
                          "type": "string",
                          "example": "566"
                        },
                        "weightValue": {
                          "type": "number",
                          "example": 0.34,
                          "default": 0
                        },
                        "weightUnit": {
                          "type": "string",
                          "example": "Kg"
                        },
                        "uniqueIdentifier": {
                          "type": "string",
                          "example": "e00caf44-1191-4126-8606-5c570b58dfd4"
                        },
                        "batchNumber": {
                          "type": "string",
                          "example": "Batch-01"
                        },
                        "supplierId": {
                          "type": "integer",
                          "example": 14,
                          "default": 0
                        },
                        "manufacturingDate": {
                          "type": "string",
                          "example": "2021-10-17"
                        },
                        "bestBefore": {
                          "type": "string",
                          "example": "2031-10-17"
                        },
                        "isDeleted": {
                          "type": "boolean",
                          "example": false,
                          "default": true
                        },
                        "productImages": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "fileName": {
                                "type": "string",
                                "example": "6683fdee-5202-4e71-b51c-ab17b1b0199c.jpeg"
                              },
                              "fileUrl": {
                                "type": "string",
                                "example": "https://mufasa.k8.isw.la/p/public/retailecosystemservice/assets/products/6683fdee-5202-4e71-b51c-ab17b1b0199c.jpeg"
                              }
                            }
                          }
                        },
                        "productVariants": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "stockKeepingUnit": {
                                "type": "string",
                                "example": "Onion"
                              },
                              "sellUnit": {
                                "type": "string",
                                "example": "carton"
                              },
                              "weightValue": {
                                "type": "number",
                                "example": 0.34,
                                "default": 0
                              },
                              "weightUnit": {
                                "type": "string",
                                "example": "Kg"
                              },
                              "unitPrice": {
                                "type": "integer",
                                "example": 100,
                                "default": 0
                              },
                              "quantity": {
                                "type": "integer",
                                "example": 1000,
                                "default": 0
                              },
                              "sellingStatus": {
                                "type": "string",
                                "example": "IN_STOCK"
                              }
                            }
                          }
                        },
                        "productCategories": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 1,
                                "default": 0
                              },
                              "name": {
                                "type": "string",
                                "example": "Home Care & Toliletries"
                              }
                            }
                          }
                        },
                        "hasVariant": {
                          "type": "boolean",
                          "example": true,
                          "default": true
                        }
                      }
                    },
                    "validation": {}
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {}
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [
      {
        "key": "Authourization",
        "value": "Bearer <token>"
      }
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true
}
```