product-huntProduits

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

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

Créer un produit

Create a new product

post
Autorisations
AuthorizationstringRequis
Bearer authentication header of the form Bearer <token>.
Corps
typeall ofRequis

The type of the product

Example: service_delivery
number · enumOptionnelValeurs possibles:
unitall ofRequis

The unit of measurement for the product

Example: unit
number · enumOptionnelValeurs 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
vatCodeall ofOptionnel

The VAT code applicable to the product

Default: FR_00HTExample: FR_00HT
string · 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
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)

chevron-rightVoir toutes les valeurshashtag

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

Mis à jour

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