Get Public Basic Product
GET /api/v1/products/{productId}/public/basic
Description
Retrieve basic public information about a product.
Path Parameters
| Name | Type | Description |
|---|---|---|
productId | string | The ID of the product (path) |
Query Parameters
| Name | Type | Description |
|---|---|---|
fieldNames | string | Allowed fields separated by comma: name, code, status, user, business, tenant, sellingPrice, photos, countryCode, currencyCode, state, city, address, productUnitType, deliveryCapacity (query) |
Example
GET /api/v1/products/12345/public/basic?fieldNames=name,code,status
Response Code: 200 - OK
Description
Successful retrieval of product information.
Response Fields
The response contains the requested product fields.
Example
{
"name": "Product Name",
"code": "PRD123",
"status": "Available",
"user": "User123",
"business": "BusinessABC",
"tenant": "TenantXYZ",
"sellingPrice": 100.00,
"photos": ["photo1.jpg", "photo2.jpg"],
"countryCode": "US",
"currencyCode": "USD",
"state": "CA",
"city": "San Francisco",
"address": "123 Market Street",
"productUnitType": "piece",
"deliveryCapacity": 50
}
Method: GET
>http://your-api-url/api/v1/products/{productId}/public/basic
Headers
| Content-Type | Value |
|---|---|
| apiKey | {{apiKey}} |
🔑 Authentication bearer
| Param | Value | Type |
|---|---|---|
| token | {{accessCode}} | string |
LANGUAGE
CURL REQUEST
curl --request GET \
--url /api/v1/products/{productId}/public/basic \
--header 'accept: application/json' \
--header 'content-type: application/json'
RESPONSE
Click Try It! to start a request and see the response here!