REST API
cURL
curl --request GET \ --url http://localhost:3002/api/v1/products/{id} \ --header 'Authorization: Bearer <token>'
{ "id": "prod_123", "sku": "PROD-001", "name": "Product Name", "price": 100000, "description": "<string>", "category": "electronics", "cost": 75000, "stock": 50, "status": "active", "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Get product detail by ID
JWT Bearer token authentication
Product ID
Product detail
"prod_123"
"PROD-001"
"Product Name"
100000
"electronics"
75000
50
active
inactive
"active"
Was this page helpful?