GET inventory?token={token}&activeonly={activeonly}&count={count}&location={location}&session={session}&options={options}

GET inventory?token={token}&activeonly={activeonly}&count={count}&location={location}&session={session}&options={options}

Chargement de l'inventaire - Retourne l'inventaire modifiés depuis le token spécifié

Requête

Paramètres URL

NomDescriptionTypeInformation AdditionnelleVersion d'introduction
token Token du dernier transfert réussis bigint
activeonly Recevoir seulement les prix des produits actifs et diffusés. Boolean (1/0) Valeur par défaut: 0
count Nombre maximum de produits à retourner integer Valeur par défaut: 200
location Entrepôt string
session Identification de la session. (Doit être unique pour la session en cours) string Longueur entre 0 et 100
options Options pour traitements personalisés string Longueur entre 0 et 100

Réponse

InventoryResult
NomDescriptionTypeInformation AdditionnelleVersion d'introduction
product Structure des quantités en inventaire Collection of InventoryProduct
token Token de la dernière entrée de ce résultat. Ce token pourra être passé au prochain appel à cet API pour obtenir la suite des données modifiées string
count Nombre d'entrées dans ce lot integer
queuecount Nombre de prix restants à récupérer integer
returncode Code de retour: 0 pour succès integer
returnmsg Message de retour string
warnings Avertissements (l'instruction a fonctionné mais il faut porter attentions aux avertissements. Peut provoquer une perte partielle de donnée (Tronquage)) Collection of string
version Version de l'API string

Format de retour

application/json, text/json, application/x-www-form-urlencoded

Sample:
{
  "product": [
    {
      "product_id": 1,
      "intstatus": "sample string 2",
      "inventory": [
        {
          "name": "sample string 1",
          "description": "sample string 2",
          "qty_onhand": 3.1,
          "qty_reserved": 4.1,
          "qty_avail": 5.1,
          "qty_sec": 6.1,
          "qty_onorder": 7.1,
          "qty_lastrecp": 8.1,
          "qry_nextrecp": 9.1,
          "nextrecpinfos": {
            "recp": [
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              },
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              }
            ]
          },
          "uom": "sample string 10",
          "entrId": 11,
          "divisionId": 12,
          "parentDivisionId": 13,
          "isDefaultEntrForDivision": 14,
          "otherunits": {
            "unit": [
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              },
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              }
            ]
          }
        },
        {
          "name": "sample string 1",
          "description": "sample string 2",
          "qty_onhand": 3.1,
          "qty_reserved": 4.1,
          "qty_avail": 5.1,
          "qty_sec": 6.1,
          "qty_onorder": 7.1,
          "qty_lastrecp": 8.1,
          "qry_nextrecp": 9.1,
          "nextrecpinfos": {
            "recp": [
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              },
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              }
            ]
          },
          "uom": "sample string 10",
          "entrId": 11,
          "divisionId": 12,
          "parentDivisionId": 13,
          "isDefaultEntrForDivision": 14,
          "otherunits": {
            "unit": [
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              },
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              }
            ]
          }
        }
      ]
    },
    {
      "product_id": 1,
      "intstatus": "sample string 2",
      "inventory": [
        {
          "name": "sample string 1",
          "description": "sample string 2",
          "qty_onhand": 3.1,
          "qty_reserved": 4.1,
          "qty_avail": 5.1,
          "qty_sec": 6.1,
          "qty_onorder": 7.1,
          "qty_lastrecp": 8.1,
          "qry_nextrecp": 9.1,
          "nextrecpinfos": {
            "recp": [
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              },
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              }
            ]
          },
          "uom": "sample string 10",
          "entrId": 11,
          "divisionId": 12,
          "parentDivisionId": 13,
          "isDefaultEntrForDivision": 14,
          "otherunits": {
            "unit": [
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              },
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              }
            ]
          }
        },
        {
          "name": "sample string 1",
          "description": "sample string 2",
          "qty_onhand": 3.1,
          "qty_reserved": 4.1,
          "qty_avail": 5.1,
          "qty_sec": 6.1,
          "qty_onorder": 7.1,
          "qty_lastrecp": 8.1,
          "qry_nextrecp": 9.1,
          "nextrecpinfos": {
            "recp": [
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              },
              {
                "date": "2024-11-18",
                "qty": "sample string 2"
              }
            ]
          },
          "uom": "sample string 10",
          "entrId": 11,
          "divisionId": 12,
          "parentDivisionId": 13,
          "isDefaultEntrForDivision": 14,
          "otherunits": {
            "unit": [
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              },
              {
                "uom": "sample string 1",
                "qty_onhand": 2.1,
                "qty_reserved": 3.1,
                "qty_avail": 4.1,
                "qty_sec": 5.1,
                "facteurconv": 6.1
              }
            ]
          }
        }
      ]
    }
  ],
  "token": "sample string 1",
  "count": 2,
  "queuecount": 3,
  "returncode": 4,
  "returnmsg": "sample string 5",
  "warnings": [
    "sample string 1",
    "sample string 2"
  ],
  "version": "sample string 6"
}

application/xml, text/xml

Sample:
<result returncode="4" returnmsg="sample string 5" version="sample string 6" token="sample string 1" count="2" queuecount="3">
  <warnings>sample string 1</warnings>
  <warnings>sample string 2</warnings>
  <product product_id="1" intstatus="sample string 2">
    <inventory name="sample string 1" description="sample string 2" qty_onhand="3.1" qty_reserved="4.1" qty_avail="5.1" qty_sec="6.1" qty_onorder="7.1" qty_lastrecp="8.1" qry_nextrecp="9.1" uom="sample string 10" entrId="11" divisionId="12" parentDivisionId="13" isDefaultEntrForDivision="14">
      <nextrecpinfos>
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
      </nextrecpinfos>
      <otherunits>
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
      </otherunits>
    </inventory>
    <inventory name="sample string 1" description="sample string 2" qty_onhand="3.1" qty_reserved="4.1" qty_avail="5.1" qty_sec="6.1" qty_onorder="7.1" qty_lastrecp="8.1" qry_nextrecp="9.1" uom="sample string 10" entrId="11" divisionId="12" parentDivisionId="13" isDefaultEntrForDivision="14">
      <nextrecpinfos>
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
      </nextrecpinfos>
      <otherunits>
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
      </otherunits>
    </inventory>
  </product>
  <product product_id="1" intstatus="sample string 2">
    <inventory name="sample string 1" description="sample string 2" qty_onhand="3.1" qty_reserved="4.1" qty_avail="5.1" qty_sec="6.1" qty_onorder="7.1" qty_lastrecp="8.1" qry_nextrecp="9.1" uom="sample string 10" entrId="11" divisionId="12" parentDivisionId="13" isDefaultEntrForDivision="14">
      <nextrecpinfos>
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
      </nextrecpinfos>
      <otherunits>
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
      </otherunits>
    </inventory>
    <inventory name="sample string 1" description="sample string 2" qty_onhand="3.1" qty_reserved="4.1" qty_avail="5.1" qty_sec="6.1" qty_onorder="7.1" qty_lastrecp="8.1" qry_nextrecp="9.1" uom="sample string 10" entrId="11" divisionId="12" parentDivisionId="13" isDefaultEntrForDivision="14">
      <nextrecpinfos>
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
        <recp date="2024-11-18T23:34:19.3443647-05:00" qty="sample string 2" />
      </nextrecpinfos>
      <otherunits>
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
        <unit uom="sample string 1" qty_onhand="2.1" qty_reserved="3.1" qty_avail="4.1" qty_sec="5.1" facteurconv="6.1" />
      </otherunits>
    </inventory>
  </product>
</result>

© 2024 - Acceo Solutions inc.