Chi tiết sản phẩm
Lấy thông tin chi tiết một sản phẩm
HTTP Request
[GET] /api/v6/products/{id}
Query Parameters
Fields
| Fields | Type | Description |
|---|---|---|
| id | integer | Định danh |
| category_id | integer | Danh mục sản phẩm |
| origin_id | integer | Nguồn gốc |
| unit_id | integer | Đơn vị tính |
| manufacturer_id | integer | Nhà sản xuất |
| services | bool | Là sản phẩm dịch vụ |
| saleoff_price | float | Chiết khấu online |
| created_at | timestamp | Ngày tạo |
| updated_at | timestamp | Ngày sửa |
| featured_image | string | Logo sản phẩm |
| product_name | string | Tên sản phẩm |
| product_code | string | Mã sản phẩm |
| last_active | timestamp | Thời gian hoạt động cuối |
| description | string | Mô tả |
| cover_price | float | Giá bán lẻ |
| price_wholesale | float | Giá bán buôn |
| discount | float | Chiết khấu sản phẩm |
| short_description | string | Mô tả ngắn |
| discount_wholesale | float | Chiết khấu bán buôn |
| price_online | float | Giá bán online |
| discount_online | float | Chiết khấu bán online |
| price_average_in | float | Giá mua |
| discount_in | float | Chiết khấu giá mua |
| product_vat | float | VAT sản phẩm |
| images | string[] | Ảnh sản phẩm |
| custom_fields | object | Thông tin định nghĩa dữ liệu |
Example
HTTP Request
GET api/v6/products/4?fields=product_name HTTP/1.1
Host: example.getflycrm.com
Content-Type: application/json
Status
200 OK
Response
{
"id": 4,
"product_name": "TEST PRODUCT API"
}