Read product
Get data of exisitng product by reference.
GET/product/read
Parameters
reference - string required
Product's reference
.
EXAMPLE
{
"identifier": "ProductAPI_5"
}
Response
status 200
product data object.
Response
{
"id": 20,
"reference": "ProductAPI_5",
"max_discount": null,
"stock": 1,
"active": false,
"product_category_id": 1,
"created_at": "2024-01-30 17:40:28",
"updated_at": "2024-01-31 10:31:30",
"deleted_at": null,
"vat_id": 2,
"taxes": null,
"store_visible": true,
"store_rate_id": null,
"slug": "productapi-5",
"provider_id": null,
"name_ref": "(ProductAPI_5) New name",
"name": "New name",
"description": null,
"store_name": null,
"store_description": null,
"rates": [
{
"id": 20,
"product_id": 20,
"sku": "ProductAPI_rate_1",
"cost": 1,
"price": 5,
"services": 0,
"primary": true,
"created_at": "2024-01-30 17:40:28",
"updated_at": "2024-01-30 17:40:28",
"name": "ProductAPI_rate_1 (5.000)"
}
],
"category": {
"id": 1,
"name": "Llicències",
"reference": "001",
"parent_id": 0,
"created_at": "2019-01-16 09:57:51",
"updated_at": "2019-04-16 23:49:59",
"name_ref": "(001) Llicències",
"childs": [
{
"id": 3,
"name": "A25",
"reference": "001",
"parent_id": 1,
"created_at": "2019-04-16 23:51:13",
"updated_at": "2022-05-17 18:06:04",
"name_ref": "(001) A25",
"childs": []
},
{
"id": 4,
"name": "M19",
"reference": "002",
"parent_id": 1,
"created_at": "2019-04-16 23:52:03",
"updated_at": "2022-05-17 18:06:45",
"name_ref": "(002) M19",
"childs": []
},
{
"id": 5,
"name": "C15",
"reference": "003",
"parent_id": 1,
"created_at": "2019-04-16 23:53:00",
"updated_at": "2022-05-17 18:07:19",
"name_ref": "(003) C15",
"childs": []
}
]
},
"vat": {
"id": 2,
"vat": "21.00",
"created_at": null,
"updated_at": null,
"erp_flag": ""
},
"translations": [
{
"id": 59,
"locale": "ca",
"product_id": 20,
"name": "Product API",
"description": "Product API description",
"created_at": "2024-01-30 17:40:28",
"updated_at": "2024-01-30 17:40:28",
"store_name": null,
"store_description": null
},
{
"id": 60,
"locale": "en",
"product_id": 20,
"name": "Product API",
"description": "Product API description",
"created_at": "2024-01-30 17:40:28",
"updated_at": "2024-01-30 17:40:28",
"store_name": null,
"store_description": null
},
{
"id": 58,
"locale": "es",
"product_id": 20,
"name": "New name",
"description": null,
"created_at": "2024-01-30 17:40:28",
"updated_at": "2024-01-31 10:31:30",
"store_name": null,
"store_description": null
}
]
}