Aller au contenu

Catalogue.Tarif

En bref

8 opérations sur 4 chemins. Préfixe /v2. Authentification JWT (voir Démarrer).

Opérations

Méthode Chemin Rôle
GET /v2/tarif Lister les enregistrements
POST /v2/tarif Créer l'enregistrement
PUT /v2/tarif Mettre à jour l'enregistrement
DELETE /v2/tarif Supprimer l'enregistrement
GET /v2/tarif/count Compter les enregistrements
POST /v2/tarif/count Compter les enregistrements
POST /v2/tarif/recherche Rechercher des enregistrements
POST /v2/tarif/save Créer ou mettre à jour l'enregistrement (upsert)

Rôle déduit

La spécification ne porte ni summary ni description d'opération : la colonne Rôle est déduite mécaniquement de la méthode HTTP et du chemin.

Détail

GET /v2/tarif

Lister les enregistrements.

Paramètres

Nom Emplacement Type Obligatoire Description
sort query string non
where query string non

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X GET "https://<votre-connecteur>/v2/tarif?sort=<sort>&where=<where>" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

POST /v2/tarif

Créer l'enregistrement.

Corps de la requête (application/json)

Schéma TarifDto — 39 propriétés (détail : Schémas).

Écriture partielle : seules les propriétés présentes dans le corps sont écrites (voir Conventions).

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X POST "https://<votre-connecteur>/v2/tarif" \
  -H "Authorization: Bearer <jeton>" \
  -H "Content-Type: application/json" \
  -d '{"numeroTiers": "…", "numeroCentraleAchat": "…", "referenceArticle": "…"}'

PUT /v2/tarif

Mettre à jour l'enregistrement.

Corps de la requête (application/json)

Schéma TarifDto — 39 propriétés (détail : Schémas).

Écriture partielle : seules les propriétés présentes dans le corps sont écrites (voir Conventions).

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X PUT "https://<votre-connecteur>/v2/tarif" \
  -H "Authorization: Bearer <jeton>" \
  -H "Content-Type: application/json" \
  -d '{"numeroTiers": "…", "numeroCentraleAchat": "…", "referenceArticle": "…"}'

DELETE /v2/tarif

Supprimer l'enregistrement.

Corps de la requête (application/json)

Schéma TarifDto — 39 propriétés (détail : Schémas).

Écriture partielle : seules les propriétés présentes dans le corps sont écrites (voir Conventions).

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X DELETE "https://<votre-connecteur>/v2/tarif" \
  -H "Authorization: Bearer <jeton>" \
  -H "Content-Type: application/json" \
  -d '{"numeroTiers": "…", "numeroCentraleAchat": "…", "referenceArticle": "…"}'

GET /v2/tarif/count

Compter les enregistrements.

Paramètres

Nom Emplacement Type Obligatoire Description
where query string non

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X GET "https://<votre-connecteur>/v2/tarif/count?where=<where>" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

POST /v2/tarif/count

Compter les enregistrements.

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X POST "https://<votre-connecteur>/v2/tarif/count" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

POST /v2/tarif/recherche

Rechercher des enregistrements.

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X POST "https://<votre-connecteur>/v2/tarif/recherche" \
  -H "Authorization: Bearer <jeton>" \
  -H "Accept: application/json"

POST /v2/tarif/save

Créer ou mettre à jour l'enregistrement (upsert).

Corps de la requête (application/json)

Schéma TarifDto — 39 propriétés (détail : Schémas).

Écriture partielle : seules les propriétés présentes dans le corps sont écrites (voir Conventions).

Réponses

Code Description Schéma de data
200 OK
401 Unauthorized
403 Forbidden

Exemple

curl -s -X POST "https://<votre-connecteur>/v2/tarif/save" \
  -H "Authorization: Bearer <jeton>" \
  -H "Content-Type: application/json" \
  -d '{"numeroTiers": "…", "numeroCentraleAchat": "…", "referenceArticle": "…"}'

Schémas

Schémas résolus à un niveau : les propriétés qui référencent un autre schéma sont citées par leur nom, sans être dépliées.

TarifDto

TarifDto — 39 propriétés
Propriété Type Notes
numeroTiers string nullable
numeroCentraleAchat string nullable
referenceArticle string nullable
referenceFournisseur string nullable
codeBarre string nullable
photo string nullable
designation string nullable
referenceEnumere string nullable
codeBarreEnumere string nullable
idGamme1 integer (int32)
idGamme2 integer (int32)
designationGamme1 string nullable
designationGamme2 string nullable
cO_No integer (int32)
conditionnement string nullable
borneInferieure number (double)
borneSuperieure number (double)
borneType integer (int32)
quantiteStockReelle number (double)
quantiteStockATerme number (double)
poidsNet number (double)
poidsBrut number (double)
facturationPoids boolean
prixVente number (double)
prixAchat number (double)
isTTC boolean
remiseArticle Remise
remiseFamille Remise
remiseTiers Remise
remiseTiersFiche Remise
remiseArtTiersException Remise
remiseArtTiersCategorie Remise
remiseFamTiersException Remise
remiseFamTiersCategorie Remise
typeRemise integer (int32)
tauxRemise number (double)
texteRemise string nullable
prixRemise number (double)
taxes tableau de TaxeArticle nullable

Voir aussi