GET
/api/v1/products/{id}Прочитане на продукт
Прочитане на продукт по ID. Връща пълния документ, включително default стойности на полета, URL-и на изображения, template reference и текущия `passportCount`. Брои се като едно v1 четене.
Параметри в пътя
- idзадължително
ObjectId
ID на продукта.
e.g. 6650a1b2c3d4e5f6a7b8c9d0
Хедъри
- Authorizationзадължително
string
`Bearer <api-key>`.
Заявка
curl -sS https://app.tracepass.eu/api/v1/products/6650a1b2c3d4e5f6a7b8c9d0 \
-H "Authorization: Bearer tp_REDACTED_xxxxxxxxxxxx"Отговор
{
"_id": "6650a1b2c3d4e5f6a7b8c9d0",
"name": "Li-Ion 48V Battery Pack",
"model": "BP-48V-100",
"category": "batteries",
"templateId": "6650a1b2c3d4e5f6a7b8c9d1",
"defaultFieldValues": {
"battery_chemistry": "lithium-ion",
"nominal_voltage": 48
},
"imageUrls": [
"https://cdn.example.com/products/battery-pack-hero.jpg"
],
"passportCount": 12,
"status": "active",
"createdAt": "2026-04-10T14:30:00.000Z",
"updatedAt": "2026-04-12T09:15:00.000Z"
}