À quoi sert la ressource « Catalogue produits » ?
Articles, services, nomenclatures — identification GS1, douane, transport, ADR, éco-contribution AGEC, conservation
Quels endpoints sont disponibles ?
| Méthode | Adresse | Action |
|---|---|---|
| GET | /api/v1/products et /{id} | lire (liste paginée ou un élément par identifiant) |
| POST | /api/v1/products | créer un élément |
| PUT | /api/v1/products/{id} | remplacer un élément |
| PATCH | /api/v1/products/{id} | modifier certains champs |
| DELETE | /api/v1/products/{id} | supprimer un élément |
Quels champs contient la ressource « Catalogue produits » ?
| Champ | Type et description |
|---|---|
| id | string |
| tenantId | string |
| name | string |
| sku | string |
| type | string |
| price | number |
| cost | number |
| stock | number |
| categoryId | string |
| unitCode | string |
| taxRate | number |
| taxCategoryCode | string |
| status | string |
| minStock | number |
| maxStock | number |
| reorderPoint | number |
| leadTime | number |
| moq | number |
| manageStock | boolean |
| salesAccount | string |
| purchaseAccount | string |
| ean | string (GTIN-8/12/13/14, clé de contrôle GS1 vérifiée) |
| barcode | string |
| supplierRef | string |
| supplierSku | string |
| mainSupplierId | string |
| hsCode | string (nomenclature combinée CN8) |
| originCountry | string (ISO 3166-1 alpha-2) |
| preferentialOrigin | boolean |
| originCriterion | string |
| defaultIncoterm | string (Incoterms 2020) |
| weight | number (poids net kg) |
| grossWeight | number (poids brut kg) |
| length | number (cm) |
| width | number (cm) |
| height | number (cm) |
| volume | number (m³, déduit des dimensions) |
| packSize | number |
| packagingCode | string |
| unitsPerPallet | number |
| stackable | boolean |
| maxStackLayers | number |
| purchaseUnitCode | string |
| unitConversionCoeff | number |
| hazardousMaterial | boolean |
| unNumber | string (n° ONU 4 chiffres) |
| adrClass | string |
| adrPackingGroup | I|II|III |
| adrProperShippingName | string |
| repCategory | string (filière REP) |
| ecoContribution | number (€ HT) |
| ecoContributionAuto | boolean |
| ademeUid | string |
| weeeCategory | string |
| trimanApplicable | boolean |
| sortingInfo | string |
| recycledContentPercent | number |
| traceability | none|serial|batch |
| batchManagement | boolean |
| expiryManagement | boolean |
| expiryType | DLC|DLUO |
| shelfLifeDays | number |
| productionDate | ISO8601 |
| expiryDate | ISO8601 |
| isPerishable | boolean |
| temperatureCondition | string |
| storageTempMin | number (°C) |
| storageTempMax | number (°C) |
| locationBin | string |
| locationDetail | string |
| material | string |
| warrantyMonths | number |
| maxDiscountPercent | number |
| brand | string |
| tags | string[] |
| imageUrl | string |
| shortDescription | string |
| longDescription | string |
| seoTitle | string |
| seoDescription | string |
| slug | string |
| batchNumber | string — lot par défaut |
| serialNumber | string — n° de série par défaut |
| replacementProductId | string — article de remplacement |
| seasonality | string |
| isCentralCatalog | boolean — article du catalogue de la centrale |
| centralPrice | number — prix centrale |
| sharedToAdherents | boolean — partagé aux adhérents |
| centralSupplierId | string — fournisseur référencé par la centrale |
| priceGroupOverrides | Record<string, number> — prix dérogatoire par groupe tarifaire |
| customFields | Record<string, any> — champs personnalisés du tenant |
| createdAt | ISO8601 |
| updatedAt | ISO8601 |
| mrpProcurement | make|buy — fabriqué ou acheté (absent = fabriqué s’il a une nomenclature active) |
| mrpLotRule | l4l|foq|minmult|poq — règle de lotissement du calcul des besoins |
| mrpFixedQty | number — quantité fixe (règle foq) |
| mrpMinQty | number — minimum de lot |
| mrpMultiple | number — multiple de lot |
| mrpPeriodDays | number — couverture en jours (règle poq) |
| mrpManufLeadDays | number — délai de fabrication en jours ouvrés |
| plmLifecycle | conception|prototype|valide|production|fin_de_vie|obsolete — état du cycle de vie (absent = production) |
| plmLifecycleAt | ISO8601 (date) — dernière transition du cycle de vie |
| cpqModelId | string — modèle du configurateur (article à configurer) |
| cpqConfigurationId | string — configuration d’origine d’un article configuré |
| cpqConfigKey | string — empreinte stable de la configuration (même configuration, même article) |
Comment filtrer, trier et paginer ?
Exemple de lecture filtrée et triée : GET /api/v1/products?filter[name]=…&sort=sku:desc&limit=50.
Le filtre est une égalité stricte sur un champ déclaré, le tri s’écrit champ:asc ou champ:desc, la page contient 50 éléments par défaut et 200 au plus, un champ inconnu renvoie une erreur 400 plutôt qu’un résultat faux.
Quelles autorisations faut-il ?
- Une offre qui inclut l’API publique : Enterprise.
- Une clé d’API créée dans Système › Intégrations, envoyée dans l’en-tête Authorization: Bearer, limitée au dossier qui l’a émise.
- Une portée accordée à la clé pour cette ressource : lecture, écriture et suppression.