Fetch Product By Id
## Get Product Details
This endpoint retrieves detailed information about a specific product identified by its unique product code. The product code is passed as a part of the URL.
### Request
- **Method**: GET
- **Endpoint**: `{{host}}apis/external/product/getProduct/{productCode}`
- **Path Parameter**:
- `productCode`: The unique identifier for the product (e.g., `PRODUCT-INDIAN-0000013`).
### Response
On a successful request, the response will include a JSON object containing the product details. The structure of the response is as follows:
``` json
{
"product": {
"active": true,
"id": 43989,
"unit": "Nos",
"amount": 22.0,
"service": "Admin",
"categoryId": 19,
"productId": "PRODUCT-INDIAN-0000013",
"currency": "INR",
"title": "test product",
"image": "",
"hsn": "98765",
"sku": "11111",
"glcode": "",
"type": "product",
"description": "test product",
"tax": "18.0",
"orders": 0,
"orderAt": 0,
"sale": true,
"purchase": true
}
}
```
### Example Response
``` json
{
"product": {
"active": true,
"id": 43989,
"unit": "Nos",
"amount": 22.0,
"service": "Admin",
"categoryId": 19,
"productId": "PRODUCT-INDIAN-0000013",
"currency": "INR",
"title": "test product",
"image": "",
"hsn": "98765",
"sku": "11111",
"glcode": "",
"type": "product",
"description": "test product",
"tax": "18.0",
"orders": 0,
"orderAt": 0,
"sale": true,
"purchase": true
}
}
```
Headers
DICE-APP-ID
X-CLIENT-ID
X-CLIENT-SECRET
Response headers
request-id
Response
OK
product

