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
string · enumOptionnelValeurs possibles:
unitall ofRequis

The unit of measurement for the product

Example: unit
string · 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
chevron-right
201Succès
application/json
idstringRequis
typeall ofRequis

Type of the product

string · enumOptionnelValeurs possibles:
unitall ofRequis

Unit of measurement for the product

string · enumOptionnelValeurs possibles:
designationstringRequis

Name or title of the product

descriptionstring · nullableOptionnel

Detailed description of the product

referencestring · nullableOptionnel

Product reference code

vatCodeall ofRequis

VAT code applicable to this product

string · enumOptionnelValeurs possibles:
personalServiceActivityall of · nullableOptionnel

Personal service activity classification, if applicable

string · 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)

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 ?