GET Produits/GetProduit/{CodeProduit}

Retourne les informations d'un base d'un produit

Request Information

URI Parameters

NameDescriptionTypeAdditional information
CodeProduit

Référence unique du produit

string

Required

Body Parameters

None.

Response Information

Resource Description

Informations de base d'un produit

ProduitsModel
NameDescriptionTypeAdditional information
id

integer

None.

CodeProduit

string

None.

Libelle

string

None.

Poids

decimal number

None.

CodeBarre

string

None.

CodesBarresAnnexes

Collection of CodeBarreAnnexe

None.

QteAlerte

integer

None.

UrlPhoto

string

None.

IsUpdatable

boolean

None.

DoUpdateStock

boolean

None.

GestionParLot

boolean

None.

GestionParIMEI

boolean

None.

GestionParDLUO

boolean

None.

IsDocument

boolean

None.

TypeProduit

string

None.

Commentaire

string

None.

Response Formats

application/json, text/json

Sample:
{
  "id": 1,
  "CodeProduit": "sample string 2",
  "Libelle": "sample string 3",
  "Poids": 4.1,
  "CodeBarre": "sample string 5",
  "CodesBarresAnnexes": [
    {
      "CodeBarre": "sample string 1",
      "TypeCode": "sample string 2"
    },
    {
      "CodeBarre": "sample string 1",
      "TypeCode": "sample string 2"
    }
  ],
  "QteAlerte": 6,
  "UrlPhoto": "sample string 7",
  "IsUpdatable": true,
  "DoUpdateStock": true,
  "GestionParLot": true,
  "GestionParIMEI": true,
  "GestionParDLUO": true,
  "IsDocument": true,
  "TypeProduit": "sample string 14",
  "Commentaire": "sample string 15"
}

text/html

Sample:
{"id":1,"CodeProduit":"sample string 2","Libelle":"sample string 3","Poids":4.1,"CodeBarre":"sample string 5","CodesBarresAnnexes":[{"CodeBarre":"sample string 1","TypeCode":"sample string 2"},{"CodeBarre":"sample string 1","TypeCode":"sample string 2"}],"QteAlerte":6,"UrlPhoto":"sample string 7","IsUpdatable":true,"DoUpdateStock":true,"GestionParLot":true,"GestionParIMEI":true,"GestionParDLUO":true,"IsDocument":true,"TypeProduit":"sample string 14","Commentaire":"sample string 15"}

application/xml, text/xml

Sample:
<ProduitsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IGSWebAPI.Models">
  <CodeBarre>sample string 5</CodeBarre>
  <CodeProduit>sample string 2</CodeProduit>
  <CodesBarresAnnexes>
    <CodeBarreAnnexe>
      <CodeBarre>sample string 1</CodeBarre>
      <TypeCode>sample string 2</TypeCode>
    </CodeBarreAnnexe>
    <CodeBarreAnnexe>
      <CodeBarre>sample string 1</CodeBarre>
      <TypeCode>sample string 2</TypeCode>
    </CodeBarreAnnexe>
  </CodesBarresAnnexes>
  <Commentaire>sample string 15</Commentaire>
  <DoUpdateStock>true</DoUpdateStock>
  <GestionParDLUO>true</GestionParDLUO>
  <GestionParIMEI>true</GestionParIMEI>
  <GestionParLot>true</GestionParLot>
  <IsDocument>true</IsDocument>
  <IsUpdatable>true</IsUpdatable>
  <Libelle>sample string 3</Libelle>
  <Poids>4.1</Poids>
  <QteAlerte>6</QteAlerte>
  <TypeProduit>sample string 14</TypeProduit>
  <UrlPhoto>sample string 7</UrlPhoto>
  <id>1</id>
</ProduitsModel>