GET api/Article/{codeArticle}/pricedata/{orderKeys}/{achatOUvente}

/// Récupère les informations pour calculer le prix d'un article pour un client. /!\ Ne recupere pas une ligne de details d'une commande !!!

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderKeys

Clef de la commande (cde|date|client)

string

Required

codeArticle

Code produit

string

Required

achatOUvente

Achat ou Vente

string

Required

Body Parameters

None.

Response Information

Resource Description

JSonGenericOfDataForArticlePricesCalc
NameDescriptionTypeAdditional information
Response

DataForArticlePricesCalc

None.

Datas

DataForArticlePricesCalc

None.

ServiceName

string

None.

Parameters

string

None.

Status

ReturnErrorStatus

None.

ErrorMessage

string

None.

Error

jsonExceptionIES

None.

Response Formats

application/json, text/json

Sample:
{
  "Response": {
    "cs": {
      "rem1Cal": "sample string 1",
      "rem1Val": 2.1
    },
    "vente": {
      "exist": true,
      "prix_reel": 2.1,
      "prix_reel_bl": 3.1,
      "prix_tarif": 4.1,
      "prix_tarif_bl": 5.1,
      "decimales": "sample string 6"
    },
    "tarif": {
      "exist": true,
      "hors_gamme": "sample string 2",
      "origine": "sample string 3",
      "coeff_bl": 4.1,
      "coefficient": 5.1,
      "deci": "sample string 6"
    },
    "achat": {
      "exist": true,
      "prix_reel": 2.1,
      "prix_base_calc": 3.1,
      "prix_base_calc_reel": 4.1,
      "prix_base": 5.1
    },
    "article": {
      "major_prix_vente": 1.1,
      "deci_prix": "sample string 2"
    },
    "ve_qte": {
      "exist": true,
      "tarifs": [
        {
          "qte": 1.1,
          "prix_tarif": 2.1,
          "prix_revient": 3.1,
          "prix_base_calcul": 4.1,
          "remise_calcul": 5.1,
          "marge": 6.1
        },
        {
          "qte": 1.1,
          "prix_tarif": 2.1,
          "prix_revient": 3.1,
          "prix_base_calcul": 4.1,
          "remise_calcul": 5.1,
          "marge": 6.1
        }
      ]
    }
  },
  "Datas": {
    "cs": {
      "rem1Cal": "sample string 1",
      "rem1Val": 2.1
    },
    "vente": {
      "exist": true,
      "prix_reel": 2.1,
      "prix_reel_bl": 3.1,
      "prix_tarif": 4.1,
      "prix_tarif_bl": 5.1,
      "decimales": "sample string 6"
    },
    "tarif": {
      "exist": true,
      "hors_gamme": "sample string 2",
      "origine": "sample string 3",
      "coeff_bl": 4.1,
      "coefficient": 5.1,
      "deci": "sample string 6"
    },
    "achat": {
      "exist": true,
      "prix_reel": 2.1,
      "prix_base_calc": 3.1,
      "prix_base_calc_reel": 4.1,
      "prix_base": 5.1
    },
    "article": {
      "major_prix_vente": 1.1,
      "deci_prix": "sample string 2"
    },
    "ve_qte": {
      "exist": true,
      "tarifs": [
        {
          "qte": 1.1,
          "prix_tarif": 2.1,
          "prix_revient": 3.1,
          "prix_base_calcul": 4.1,
          "remise_calcul": 5.1,
          "marge": 6.1
        },
        {
          "qte": 1.1,
          "prix_tarif": 2.1,
          "prix_revient": 3.1,
          "prix_base_calcul": 4.1,
          "remise_calcul": 5.1,
          "marge": 6.1
        }
      ]
    }
  },
  "ServiceName": "sample string 1",
  "Parameters": "sample string 2",
  "Status": 0,
  "ErrorMessage": "sample string 3",
  "Error": {
    "Code": "sample string 1",
    "Details": "sample string 2",
    "Message": "sample string 3",
    "Level": 1
  }
}

application/xml, text/xml

Sample:
<JSonGenericOfDataForArticlePricesCalcq8b3XWLw xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ForSagaMiddleware">
  <Error>
    <Code>sample string 1</Code>
    <Details>sample string 2</Details>
    <Level>Info</Level>
    <Message>sample string 3</Message>
  </Error>
  <ErrorMessage>sample string 3</ErrorMessage>
  <Parameters>sample string 2</Parameters>
  <ServiceName>sample string 1</ServiceName>
  <Status>Error</Status>
  <Datas xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore">
    <d2p1:achat>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:prix_base>5.1</d2p1:prix_base>
      <d2p1:prix_base_calc>3.1</d2p1:prix_base_calc>
      <d2p1:prix_base_calc_reel>4.1</d2p1:prix_base_calc_reel>
      <d2p1:prix_reel>2.1</d2p1:prix_reel>
    </d2p1:achat>
    <d2p1:article>
      <d2p1:deci_prix>sample string 2</d2p1:deci_prix>
      <d2p1:major_prix_vente>1.1</d2p1:major_prix_vente>
    </d2p1:article>
    <d2p1:cs>
      <d2p1:rem1Cal>sample string 1</d2p1:rem1Cal>
      <d2p1:rem1Val>2.1</d2p1:rem1Val>
    </d2p1:cs>
    <d2p1:tarif>
      <d2p1:coeff_bl>4.1</d2p1:coeff_bl>
      <d2p1:coefficient>5.1</d2p1:coefficient>
      <d2p1:deci>sample string 6</d2p1:deci>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:hors_gamme>sample string 2</d2p1:hors_gamme>
      <d2p1:origine>sample string 3</d2p1:origine>
    </d2p1:tarif>
    <d2p1:ve_qte>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:tarifs>
        <d2p1:TarifVEQte>
          <d2p1:marge>6.1</d2p1:marge>
          <d2p1:prix_base_calcul>4.1</d2p1:prix_base_calcul>
          <d2p1:prix_revient>3.1</d2p1:prix_revient>
          <d2p1:prix_tarif>2.1</d2p1:prix_tarif>
          <d2p1:qte>1.1</d2p1:qte>
          <d2p1:remise_calcul>5.1</d2p1:remise_calcul>
        </d2p1:TarifVEQte>
        <d2p1:TarifVEQte>
          <d2p1:marge>6.1</d2p1:marge>
          <d2p1:prix_base_calcul>4.1</d2p1:prix_base_calcul>
          <d2p1:prix_revient>3.1</d2p1:prix_revient>
          <d2p1:prix_tarif>2.1</d2p1:prix_tarif>
          <d2p1:qte>1.1</d2p1:qte>
          <d2p1:remise_calcul>5.1</d2p1:remise_calcul>
        </d2p1:TarifVEQte>
      </d2p1:tarifs>
    </d2p1:ve_qte>
    <d2p1:vente>
      <d2p1:decimales>sample string 6</d2p1:decimales>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:prix_reel>2.1</d2p1:prix_reel>
      <d2p1:prix_reel_bl>3.1</d2p1:prix_reel_bl>
      <d2p1:prix_tarif>4.1</d2p1:prix_tarif>
      <d2p1:prix_tarif_bl>5.1</d2p1:prix_tarif_bl>
    </d2p1:vente>
  </Datas>
  <Response xmlns:d2p1="http://schemas.datacontract.org/2004/07/SAGACore">
    <d2p1:achat>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:prix_base>5.1</d2p1:prix_base>
      <d2p1:prix_base_calc>3.1</d2p1:prix_base_calc>
      <d2p1:prix_base_calc_reel>4.1</d2p1:prix_base_calc_reel>
      <d2p1:prix_reel>2.1</d2p1:prix_reel>
    </d2p1:achat>
    <d2p1:article>
      <d2p1:deci_prix>sample string 2</d2p1:deci_prix>
      <d2p1:major_prix_vente>1.1</d2p1:major_prix_vente>
    </d2p1:article>
    <d2p1:cs>
      <d2p1:rem1Cal>sample string 1</d2p1:rem1Cal>
      <d2p1:rem1Val>2.1</d2p1:rem1Val>
    </d2p1:cs>
    <d2p1:tarif>
      <d2p1:coeff_bl>4.1</d2p1:coeff_bl>
      <d2p1:coefficient>5.1</d2p1:coefficient>
      <d2p1:deci>sample string 6</d2p1:deci>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:hors_gamme>sample string 2</d2p1:hors_gamme>
      <d2p1:origine>sample string 3</d2p1:origine>
    </d2p1:tarif>
    <d2p1:ve_qte>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:tarifs>
        <d2p1:TarifVEQte>
          <d2p1:marge>6.1</d2p1:marge>
          <d2p1:prix_base_calcul>4.1</d2p1:prix_base_calcul>
          <d2p1:prix_revient>3.1</d2p1:prix_revient>
          <d2p1:prix_tarif>2.1</d2p1:prix_tarif>
          <d2p1:qte>1.1</d2p1:qte>
          <d2p1:remise_calcul>5.1</d2p1:remise_calcul>
        </d2p1:TarifVEQte>
        <d2p1:TarifVEQte>
          <d2p1:marge>6.1</d2p1:marge>
          <d2p1:prix_base_calcul>4.1</d2p1:prix_base_calcul>
          <d2p1:prix_revient>3.1</d2p1:prix_revient>
          <d2p1:prix_tarif>2.1</d2p1:prix_tarif>
          <d2p1:qte>1.1</d2p1:qte>
          <d2p1:remise_calcul>5.1</d2p1:remise_calcul>
        </d2p1:TarifVEQte>
      </d2p1:tarifs>
    </d2p1:ve_qte>
    <d2p1:vente>
      <d2p1:decimales>sample string 6</d2p1:decimales>
      <d2p1:exist>true</d2p1:exist>
      <d2p1:prix_reel>2.1</d2p1:prix_reel>
      <d2p1:prix_reel_bl>3.1</d2p1:prix_reel_bl>
      <d2p1:prix_tarif>4.1</d2p1:prix_tarif>
      <d2p1:prix_tarif_bl>5.1</d2p1:prix_tarif_bl>
    </d2p1:vente>
  </Response>
</JSonGenericOfDataForArticlePricesCalcq8b3XWLw>