Get Product


The following endpoint can be used to retrieve the details of a product within the Hyfin application.


Point de terminaison

The following endpoint can be used to retrieve a product. You must replace the {base_url} , {external_id} and {site_id} variables with the appropriate values.

GET
{base_url}/api/v3/site/{site_id}/product/{external_id}
Demande
Aucun corps n'est requis pour cet appel API
Réponse
Champ
Type
Requis
Description
_id
String
--
L'identifiant du produit.
external_id
String
The unique product id from the source system/database. If we detect a record with the same `external_id`, it will be updated, otherwise it will be added.
name
String
Le nom du produit.
description
String
La description du produit.
unit_price
Number
Le prix par unité du produit. Format = 0.00
active
Boolean
--
Ce drapeau représente si l'enregistrement du produit est actif et disponible pour être utilisé ou non.
Default = `true`
created_at
Date
--
La date à laquelle le produit a été créé.
updated_at
Date
--
La date à laquelle le produit a été dernièrement mis à jour.
Sample Response
			
				{
  "_id": "6839e415564d3cc2160d945e",
  "external_id": "1",
  "name": "Garlic Soy Tikkudak Wings",
  "description": "Tikkudak is a specialty where fried chicken is baked in a charcoal oven to create a smoky and crispy flavor.",
  "unit_price": "15.00",
  "created_at": "2025-05-30T19:19:44.143Z",
  "updated_at": "2025-05-30T19:19:44.143Z"
}