For the complete documentation index, see llms.txt. This page is also available as Markdown.

Produits

Créez des produits dans le catalogue et configurez type, unité et code TVA.

Créez et gérez des produits dans votre catalogue.

Lister les produits

Récupère les produits du catalogue, paginés et filtrables.

List products with pagination

get
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de requête
pagenumber · min: 1Requis

The page number to retrieve

Example: 1
limitnumber · min: 1Requis

The number of items per page

Example: 20
searchstringOptionnel

Optional search term to filter the catalog

Example: widget
orderBystring · enumOptionnel

Optional order by to filter the catalog

Valeurs possibles:
orderDirectionstring · enumOptionnel

Optional order direction to filter the catalog

Valeurs possibles:
sapCompatiblebooleanOptionnel

Optional sap compatible to filter the catalog

Example: true
Réponses
200Succès
application/json
countWithoutFiltersnumberRequis
totalDocsnumberRequis
limitnumberRequis
totalPagesnumberRequis
hasNextPagebooleanRequis
hasPrevPagebooleanRequis
nextPagenumberRequis
pagenumberRequis
prevPagenumberRequis
get/v2/catalog
200Succès

Paramètres de requête

Champs requis :

  • page : numéro de page (à partir de 1)

  • limit : nombre d'éléments par page

Champs optionnels :

  • search : terme de recherche (filtre sur la désignation, la référence, etc.)

  • orderBy : champ de tri (voir valeurs ci-dessous)

  • orderDirection : sens du tri (ASC ou DESC)

  • sapCompatible : true pour ne lister que les produits compatibles avec une comptabilité SAP

orderBy (CatalogOrderBy)

  • createdAt (défaut)

  • designation

orderDirection (OrderDirection)

  • ASC

  • DESC

Exemple

Réponse (ReadCatalogCollectionDto)

Réponse paginée contenant un tableau docs de produits, ainsi que les métadonnées de pagination (total, page, limit, pages, etc.).

Récupérer un produit

Renvoie le détail complet d'un produit à partir de son identifiant.

Retrieve a product by id

get
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
productIdstringRequis
Réponses
200Succès
application/json
idstringRequis
typenumber · enumRequisValeurs possibles:
unitnumber · enumRequisValeurs possibles:
designationstringRequis

Name or title of the product

descriptionstring · nullableOptionnel

Detailed description of the product

referencestring · nullableOptionnel

Product reference code

vatCodestring · enumRequisValeurs possibles:
personalServiceActivitystring · enumOptionnelValeurs possibles:
isDeliveryOfGoodbooleanRequis

Indicates if the product involves delivery of physical goods

taxesIncludedbooleanRequis

Indicates if the prices include taxes

purchasePricenumberOptionnel

Purchase price per unit without taxes

productMarginnumberOptionnel

Product margin

lockUnitPricebooleanOptionnel

Indicates if the unit price is locked

unitPricenumberRequis

Price per unit without taxes

priceWithoutTaxesnumberRequis

Total price without taxes

vatAmountnumberRequis

VAT amount

priceWithTaxesnumberRequis

Total price including taxes

stocknumberRequis

Stock

get/v2/catalog/product/{productId}
200Succès

Paramètres de chemin

  • productId : identifiant du produit

Réponse (ReadProductDto)

Renvoie l'objet produit complet avec ses prix, sa TVA, son stock, sa description, etc.

Créer un produit

Create a new product

post
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Corps
typenumber · enumRequisValeurs possibles:
unitnumber · enumRequisValeurs possibles:
designationstringRequis

The name or title of the product

Example: Premium Widget
amountInCentsnumberOptionnel

The price of the product in cents

Example: 1999
purchasePricenumberOptionnel

The purchase price of the product in cents

Example: 1000
productMarginnumberOptionnel

The margin of the product in percentage

Example: 10
lockUnitPricebooleanOptionnel

Whether the unit price is locked or not calculating from purchase price and product margin

Default: falseExample: true
taxesIncludedbooleanOptionnel

Whether the amount includes taxes

Example: true
vatCodestring · enumOptionnelValeurs possibles:
isDeliveryOfGoodbooleanOptionnel

Whether the product involves delivery of a physical good

Example: true
descriptionstringOptionnel

Detailed description of the product

Example: High-quality widget for various applications
referencestringOptionnel

Product reference or SKU

Example: WIDGET-001
stocknumberOptionnel

The stock quantity

Example: 20
Réponses
201Succès
application/json
idstringRequis
typenumber · enumRequisValeurs possibles:
unitnumber · enumRequisValeurs possibles:
designationstringRequis

Name or title of the product

descriptionstring · nullableOptionnel

Detailed description of the product

referencestring · nullableOptionnel

Product reference code

vatCodestring · enumRequisValeurs possibles:
personalServiceActivitystring · enumOptionnelValeurs possibles:
isDeliveryOfGoodbooleanRequis

Indicates if the product involves delivery of physical goods

taxesIncludedbooleanRequis

Indicates if the prices include taxes

purchasePricenumberOptionnel

Purchase price per unit without taxes

productMarginnumberOptionnel

Product margin

lockUnitPricebooleanOptionnel

Indicates if the unit price is locked

unitPricenumberRequis

Price per unit without taxes

priceWithoutTaxesnumberRequis

Total price without taxes

vatAmountnumberRequis

VAT amount

priceWithTaxesnumberRequis

Total price including taxes

stocknumberRequis

Stock

post/v2/catalog/product
201Succès

Corps de requête (CreateProductDto)

Champs requis :

  • type : type de produit (ex: service_delivery)

  • unit : unité de mesure (ex: unit)

  • designation : libellé du produit

Champs optionnels :

  • amountInCents : prix de vente en centimes

  • purchasePrice : prix d'achat en centimes

  • productMargin : marge en pourcentage

  • lockUnitPrice : bloque le prix unitaire

  • taxesIncluded : prix TTC si true

  • vatCode : code TVA (défaut FR_00HT)

  • isDeliveryOfGood : livraison d'un bien physique

  • description : description détaillée (HTML nettoyé)

  • reference : référence / SKU

  • stock : stock disponible

Valeurs possibles

Les champs type et unit attendent des chaînes (string) en snake_case.

type (ProductType)

  • sale_of_goods

  • service_delivery

  • commercial_or_craft_services

  • sale_of_manufactured_goods

  • disbursement

unit (ProductUnit)

Voir toutes les valeurs

vatCode (VatCode)

Le champ vatCode attend une chaîne (string).

Valeurs disponibles :

  • FR_210

  • FR_550

  • FR_850

  • FR_1000

  • FR_2000

  • FR_00HT (défaut)

  • FR_00UE

  • FR_0HUE

Exemple

Mettre à jour un produit

Le verbe HTTP est PUT. Tous les champs requis de UpdateProductDto doivent être envoyés à chaque appel (pas uniquement les champs modifiés), sinon ils seront écrasés ou refusés en validation.

Update a product

put
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Paramètres de chemin
productIdstringRequis
Corps
typenumber · enumRequisValeurs possibles:
unitnumber · enumRequisValeurs possibles:
designationstringRequis
amountInCentsnumberOptionnel

The price of the product in cents

Example: 1999
purchasePricenumberOptionnel

The purchase price of the product in cents

Example: 1000
productMarginnumberOptionnel

The margin of the product in percentage

Example: 10
lockUnitPricebooleanOptionnel

Whether the unit price is locked or not calculating from purchase price and product margin

Default: falseExample: true
taxesIncludedbooleanOptionnel
vatCodestring · enumRequisValeurs possibles:
isDeliveryOfGoodbooleanOptionnel
descriptionstringOptionnel
referencestringOptionnel
stocknumberOptionnel
Réponses
200Succès
application/json
idstringRequis
typenumber · enumRequisValeurs possibles:
unitnumber · enumRequisValeurs possibles:
designationstringRequis

Name or title of the product

descriptionstring · nullableOptionnel

Detailed description of the product

referencestring · nullableOptionnel

Product reference code

vatCodestring · enumRequisValeurs possibles:
personalServiceActivitystring · enumOptionnelValeurs possibles:
isDeliveryOfGoodbooleanRequis

Indicates if the product involves delivery of physical goods

taxesIncludedbooleanRequis

Indicates if the prices include taxes

purchasePricenumberOptionnel

Purchase price per unit without taxes

productMarginnumberOptionnel

Product margin

lockUnitPricebooleanOptionnel

Indicates if the unit price is locked

unitPricenumberRequis

Price per unit without taxes

priceWithoutTaxesnumberRequis

Total price without taxes

vatAmountnumberRequis

VAT amount

priceWithTaxesnumberRequis

Total price including taxes

stocknumberRequis

Stock

put/v2/catalog/product/{productId}
200Succès

Paramètres de chemin

  • productId : identifiant du produit à mettre à jour

Corps de requête (UpdateProductDto)

Champs requis :

  • type : type de produit (voir valeurs)

  • unit : unité de mesure (voir valeurs)

  • designation : libellé du produit

  • vatCode : code TVA (voir valeurs)

Champs optionnels :

  • amountInCents : prix de vente en centimes

  • purchasePrice : prix d'achat en centimes

  • productMargin : marge en pourcentage

  • lockUnitPrice : bloque le prix unitaire (défaut false)

  • taxesIncluded : prix TTC si true

  • isDeliveryOfGood : livraison d'un bien physique

  • description : description détaillée (HTML nettoyé)

  • reference : référence / SKU

  • stock : stock disponible

Exemple

Réponse

Renvoie le produit mis à jour (ReadProductDto).

Mis à jour

Ce contenu vous a-t-il été utile ?