Get Single Product
GET/api/products/:id
Get Single Product
Request
Path Parameters
id integerrequired
Header Parameters
X-Company-Slug stringrequired
Responses
- 200
Successful response
- application/json
- Schema
- Example (from schema)
Schema
id string
quick_sale booleannullable
name string
slug stringnullable
sku string
description string
stock integernullable
shipping_required boolean
price float
original_price floatnullable
brand_id stringnullable
created_at date-time
updated_at date-time
inventory_track booleannullable
inventory_type InventoryType (string)
Possible values: [volume
, unit
]
inventory_quantity integernullable
brand
object
nullable
id string
name string
slug string
image_url stringnullable
categories number[]
barcodes string[]
{
"id": "2",
"quick_sale": false,
"name": "product2",
"slug": null,
"sku": "awdawdaw1adw",
"description": "adw2d",
"stock": null,
"shipping_required": true,
"price": 11,
"original_price": 12,
"brand_id": "25",
"created_at": "2024-04-08T17:01:13.204+03:00",
"updated_at": "2024-06-16T23:15:11.113+03:00",
"inventory_track": true,
"inventory_type": "volume",
"inventory_quantity": 2002,
"brand": {
"id": "1",
"name": "Merveillance",
"slug": "merveillance",
"image_url": null
},
"categories": [
0
],
"barcodes": [
"string"
]
}
Loading...