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.
API key authentication. Pass your API key as a Bearer token.
The page number to retrieve
1The number of items per page
20Optional search term to filter the catalog
widgetOptional order by to filter the catalog
Optional order direction to filter the catalog
Optional sap compatible to filter the catalog
trueGET /v2/catalog?page=1&limit=20 HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"countWithoutFilters": 1,
"totalDocs": 1,
"limit": 1,
"totalPages": 1,
"hasNextPage": true,
"hasPrevPage": true,
"nextPage": 1,
"page": 1,
"prevPage": 1,
"docs": [
{
"id": "text",
"type": "sale_of_goods",
"unit": "unit",
"designation": "text",
"description": "text",
"reference": "text",
"vatCode": "FR_210",
"personalServiceActivity": "GARDE_ENFANT_HANDICAPE",
"isDeliveryOfGood": true,
"taxesIncluded": true,
"purchasePrice": 1,
"productMargin": 1,
"unitPrice": 1,
"priceWithoutTaxes": 1,
"vatAmount": 1,
"priceWithTaxes": 1,
"stock": 1
}
]
}Paramètres de requête
Champs requis :
page: numéro de page (à partir de1)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 (ASCouDESC)sapCompatible:truepour ne lister que les produits compatibles avec une comptabilité SAP
orderBy (CatalogOrderBy)
createdAt(défaut)designation
orderDirection (OrderDirection)
ASCDESC
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.
API key authentication. Pass your API key as a Bearer token.
Name or title of the product
Detailed description of the product
Product reference code
Indicates if the product involves delivery of physical goods
Indicates if the prices include taxes
Purchase price per unit without taxes
Product margin
Indicates if the unit price is locked
Price per unit without taxes
Total price without taxes
VAT amount
Total price including taxes
Stock
GET /v2/catalog/product/{productId} HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"type": "sale_of_goods",
"unit": "unit",
"designation": "text",
"description": "text",
"reference": "text",
"vatCode": "FR_210",
"personalServiceActivity": "GARDE_ENFANT_HANDICAPE",
"isDeliveryOfGood": true,
"taxesIncluded": true,
"purchasePrice": 1,
"productMargin": 1,
"lockUnitPrice": true,
"unitPrice": 1,
"priceWithoutTaxes": 1,
"vatAmount": 1,
"priceWithTaxes": 1,
"stock": 1
}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
API key authentication. Pass your API key as a Bearer token.
The name or title of the product
Premium WidgetThe price of the product in cents
1999The purchase price of the product in cents
1000The margin of the product in percentage
10Whether the unit price is locked or not calculating from purchase price and product margin
falseExample: trueWhether the amount includes taxes
trueWhether the product involves delivery of a physical good
trueDetailed description of the product
High-quality widget for various applicationsProduct reference or SKU
WIDGET-001The stock quantity
20Name or title of the product
Detailed description of the product
Product reference code
Indicates if the product involves delivery of physical goods
Indicates if the prices include taxes
Purchase price per unit without taxes
Product margin
Indicates if the unit price is locked
Price per unit without taxes
Total price without taxes
VAT amount
Total price including taxes
Stock
POST /v2/catalog/product HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 316
{
"type": "service_delivery",
"unit": "unit",
"designation": "Premium Widget",
"amountInCents": 1999,
"purchasePrice": 1000,
"productMargin": 10,
"lockUnitPrice": true,
"taxesIncluded": true,
"vatCode": "FR_00HT",
"isDeliveryOfGood": true,
"description": "High-quality widget for various applications",
"reference": "WIDGET-001",
"stock": 20
}{
"id": "text",
"type": "sale_of_goods",
"unit": "unit",
"designation": "text",
"description": "text",
"reference": "text",
"vatCode": "FR_210",
"personalServiceActivity": "GARDE_ENFANT_HANDICAPE",
"isDeliveryOfGood": true,
"taxesIncluded": true,
"purchasePrice": 1,
"productMargin": 1,
"lockUnitPrice": true,
"unitPrice": 1,
"priceWithoutTaxes": 1,
"vatAmount": 1,
"priceWithTaxes": 1,
"stock": 1
}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 centimespurchasePrice: prix d'achat en centimesproductMargin: marge en pourcentagelockUnitPrice: bloque le prix unitairetaxesIncluded: prix TTC sitruevatCode: code TVA (défautFR_00HT)isDeliveryOfGood: livraison d'un bien physiquedescription: description détaillée (HTML nettoyé)reference: référence / SKUstock: stock disponible
Valeurs possibles
Les champs type et unit attendent des chaînes (string) en snake_case.
type (ProductType)
sale_of_goodsservice_deliverycommercial_or_craft_servicessale_of_manufactured_goodsdisbursement
unit (ProductUnit)
vatCode (VatCode)
Le champ vatCode attend une chaîne (string).
Valeurs disponibles :
FR_210FR_550FR_850FR_1000FR_2000FR_00HT(défaut)FR_00UEFR_0HUE
Exemple
Mettre à jour un produit
Le verbe HTTP est
PUT. Tous les champs requis deUpdateProductDtodoivent être envoyés à chaque appel (pas uniquement les champs modifiés), sinon ils seront écrasés ou refusés en validation.
API key authentication. Pass your API key as a Bearer token.
The price of the product in cents
1999The purchase price of the product in cents
1000The margin of the product in percentage
10Whether the unit price is locked or not calculating from purchase price and product margin
falseExample: trueName or title of the product
Detailed description of the product
Product reference code
Indicates if the product involves delivery of physical goods
Indicates if the prices include taxes
Purchase price per unit without taxes
Product margin
Indicates if the unit price is locked
Price per unit without taxes
Total price without taxes
VAT amount
Total price including taxes
Stock
PUT /v2/catalog/product/{productId} HTTP/1.1
Host: api.abby.fr
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 255
{
"type": "sale_of_goods",
"unit": "unit",
"designation": "text",
"amountInCents": 1999,
"purchasePrice": 1000,
"productMargin": 10,
"lockUnitPrice": true,
"taxesIncluded": true,
"vatCode": "FR_210",
"isDeliveryOfGood": true,
"description": "text",
"reference": "text",
"stock": 1
}{
"id": "text",
"type": "sale_of_goods",
"unit": "unit",
"designation": "text",
"description": "text",
"reference": "text",
"vatCode": "FR_210",
"personalServiceActivity": "GARDE_ENFANT_HANDICAPE",
"isDeliveryOfGood": true,
"taxesIncluded": true,
"purchasePrice": 1,
"productMargin": 1,
"lockUnitPrice": true,
"unitPrice": 1,
"priceWithoutTaxes": 1,
"vatAmount": 1,
"priceWithTaxes": 1,
"stock": 1
}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 produitvatCode: code TVA (voir valeurs)
Champs optionnels :
amountInCents: prix de vente en centimespurchasePrice: prix d'achat en centimesproductMargin: marge en pourcentagelockUnitPrice: bloque le prix unitaire (défautfalse)taxesIncluded: prix TTC sitrueisDeliveryOfGood: livraison d'un bien physiquedescription: description détaillée (HTML nettoyé)reference: référence / SKUstock: stock disponible
Exemple
Réponse
Renvoie le produit mis à jour (ReadProductDto).
Mis à jour
Ce contenu vous a-t-il été utile ?

