← Back to Interactive Docs

Raw Swagger JSON Documentation

{
  "openapi": "3.0.0",
  "info": {
    "title": "Electrical Glove Customer Portal Application",
    "version": "1.0.0",
    "description": "API documentation for customer-related endpoints\n\nThis API facilitates the resource allocation within the Electrical Glove Customer Portal Application.\n\n
\nN-able Private Limited - Website\n
\nSend email to N-able Private Limited\n" }, "servers": [ { "url": "http://localhost:3000", "description": "Local server" }, { "url": "http://52.118.205.242:3000", "description": "Production server" } ], "paths": { "/api/customerView/getDetails": { "get": { "summary": "Get customer details by inner bag batch code", "description": "Returns left and right hand glove details, size, spec code, etc.", "parameters": [ { "in": "query", "name": "innerbagBatchCode", "required": true, "description": "Inner bag batch code to search", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successful response with glove details", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "salesOrderNumber": { "type": "string" }, "size": { "type": "string" }, "innerbagBatchCode": { "type": "string" }, "specCode": { "type": "string" }, "commodityCode": { "type": "string" }, "commodityDetails": { "type": "string" }, "leftHandBatchCode": { "type": "string" }, "leftHandTestDate": { "type": "string" }, "leftHandLeakageCurrent": { "type": "number" }, "leftHandStatus": { "type": "string" }, "rightHandBatchCode": { "type": "string" }, "rightHandTestDate": { "type": "string" }, "rightHandLeakageCurrent": { "type": "number" }, "rightHandStatus": { "type": "string" }, "customerType": { "type": "string" } } } } } } }, "400": { "description": "Missing innerbagBatchCode" }, "404": { "description": "No data found" } } } }, "/api/customerDetailsById/getDetailsByBatchCode": { "get": { "summary": "Get glove details by Batch Code", "description": "Returns glove details such as leakage current, size, commodity details, spec code, and test information for the given batch code.", "parameters": [ { "in": "query", "name": "batchCode", "required": true, "description": "The batch code to search for glove details.", "schema": { "type": "string" } } ], "responses": { "200": { "description": "Successfully retrieved glove details.", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "salesOrderNumber": { "type": "string", "example": "SO123456" }, "size": { "type": "string", "example": "L" }, "innerBagBatchCode": { "type": "string", "example": "IB00001015" }, "specCode": { "type": "string", "example": "SPEC123" }, "commodityCode": { "type": "string", "example": "CMD567" }, "commodityDetails": { "type": "string", "example": "Natural Rubber Gloves" }, "customerType": { "type": "string", "example": "Export" }, "leftHandBatchCode": { "type": "string", "example": "LH12345" }, "leftHandTestDate": { "type": "string", "format": "date", "example": "2025-10-01" }, "leftHandLeakageCurrent": { "type": "number", "example": 0.35 }, "leftHandStatus": { "type": "string", "example": "PASS" }, "rightHandBatchCode": { "type": "string", "example": "RH12345" }, "rightHandTestDate": { "type": "string", "format": "date", "example": "2025-10-01" }, "rightHandLeakageCurrent": { "type": "number", "example": 0.42 }, "rightHandStatus": { "type": "string", "example": "FAIL" } } } } } } }, "400": { "description": "Missing batchCode parameter." }, "404": { "description": "No data found for the given batchCode." }, "500": { "description": "Internal server error while fetching data." } } } } }, "components": {}, "tags": [] }