Árvore de páginas

Objetivo

A finalidade deste método é, possibilitar a consulta de produtos que estão no lote de inventário.

Chamada

GET api/v1/sm/inventories/lot-products?NumberCompany=
{NumberCompany}&LotCode=
{LotCode}&ProductCode={ProductCode}&_pageNo=
{_pageNo}&_pageSize=
{_pageSize}

Informações para Requisição (Request Information)

Parâmetros URI (URI Parameters)

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
numberCompanyCompany identifier numberintegerRequerido
lotCodeLot identifier numberintegerRequerido
productCodeProduct identifier number (Optional)decimal numberNão há.
_pageNo
integerNão há.
_pageSize
integerNão há.

Parâmetros do Corpo (Body Parameters)

Não há.

Informações para Resposta (Response Information)

Códigos do Recurso (Response Codes)

  • OK (200)
  • NotFound (404)
  • BadRequest (400)
  • Unauthorized (401)
  • InternalServerError (500)

Descrição do Recurso (Resource Description)

List of LotsResponseDTO

Collection of LotProductsResponseDTO

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
numberCompanyCompany identifier numberintegerNão há.
productDescriptionProduct DescriptionstringNão há.
lotCodeLot identifier numberintegerNão há.
productCodeProduct identifier numberdecimal numberNão há.
quantityFrozenQuantity of product frozendecimal numberNão há.
quantityPackageQuantity of packagedecimal numberNão há.
frozenNetCostFrozen product net costdecimal numberNão há.
frozenGrossCostFrozen product gross costdecimal numberNão há.
frozenSalePriceFrozen sale pricedecimal numberNão há.
frozenStatusFrozen statusstringTamanho da String: inclusive between 0 and 1
dateTimeThawDate/Time of thawing lotdateNão há.
userThawUser who thawed the lotstringTamanho da String: inclusive between 0 and 12
dateTimeFrozenLot freeze Date/TimedateNão há.
userFrozenUser who froze the lotstringTamanho da String: inclusive between 0 and 12
dateTimeInclusionDate/Time of inclusion of product in LotdateNão há.
lotStockCodeLot Stock Identifier NumberintegerNão há.
areaCodeAre CodeintegerNão há.
subareaCodeSubarea CodeintegerNão há.
countCodeCount identifier numberintegerNão há.
relatedProductCodeRelated product identifier numberdecimal numberNão há.
quantityCount1Count 1 quantitydecimal numberNão há.
quantityCount2Count 2 quantitydecimal numberNão há.
quantityCount3Count 3 quantitydecimal numberNão há.
observationObservationsstringTamanho da String: inclusive between 0 and 250
numberGondolaGondola identifier numberintegerNão há.
nameGondolaGondola namestringTamanho da string: inclusive between 0 and 20
lotPropertiesLot properties (When it controls Lot)LotPropertiesDTONão há.

Formatos de Resposta (Response Formats)

application/json, text/json

Exemplo (Sample):

[
  {
    "numberCompany": 1,
    "productDescription": "sample string 2",
    "lotCode": 3,
    "productCode": 4.0,
    "quantityFrozen": 1.1,
    "quantityPackage": 1.1,
    "frozenNetCost": 5.1,
    "frozenGrossCost": 6.1,
    "frozenSalePrice": 7.1,
    "frozenStatus": "sample string 8",
    "dateTimeThaw": "2019-10-24T16:10:17.620089-03:00",
    "userThaw": "sample string 9",
    "dateTimeFrozen": "2019-10-24T16:10:17.620089-03:00",
    "userFrozen": "sample string 10",
    "dateTimeInclusion": "2019-10-24T16:10:17.620089-03:00",
    "lotStockCode": 1,
    "areaCode": 1,
    "subareaCode": 1,
    "countCode": 1,
    "relatedProductCode": 1.0,
    "quantityCount1": 1.1,
    "quantityCount2": 1.1,
    "quantityCount3": 1.1,
    "observation": "sample string 11",
    "numberGondola": 1,
    "nameGondola": "sample string 12",
    "lotProperties": {
      "numberLot": "sample string 1",
      "fabricationDate": "2019-10-24T16:10:17.620089-03:00",
      "expirationDate": "2019-10-24T16:10:17.620089-03:00",
      "quantityFrozen": 1.1,
      "quantityPackage": 1.1
    }
  },
  {
    "numberCompany": 1,
    "productDescription": "sample string 2",
    "lotCode": 3,
    "productCode": 4.0,
    "quantityFrozen": 1.1,
    "quantityPackage": 1.1,
    "frozenNetCost": 5.1,
    "frozenGrossCost": 6.1,
    "frozenSalePrice": 7.1,
    "frozenStatus": "sample string 8",
    "dateTimeThaw": "2019-10-24T16:10:17.620089-03:00",
    "userThaw": "sample string 9",
    "dateTimeFrozen": "2019-10-24T16:10:17.620089-03:00",
    "userFrozen": "sample string 10",
    "dateTimeInclusion": "2019-10-24T16:10:17.620089-03:00",
    "lotStockCode": 1,
    "areaCode": 1,
    "subareaCode": 1,
    "countCode": 1,
    "relatedProductCode": 1.0,
    "quantityCount1": 1.1,
    "quantityCount2": 1.1,
    "quantityCount3": 1.1,
    "observation": "sample string 11",
    "numberGondola": 1,
    "nameGondola": "sample string 12",
    "lotProperties": {
      "numberLot": "sample string 1",
      "fabricationDate": "2019-10-24T16:10:17.620089-03:00",
      "expirationDate": "2019-10-24T16:10:17.620089-03:00",
      "quantityFrozen": 1.1,
      "quantityPackage": 1.1
    }
  }
]

application/xml, text/xml

Exemplo (Sample):

<ArrayOfLotProductsResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consinco.SM.Api.Entities.Entities.v1">
  <LotProductsResponseDTO>
    <AreaCode>1</AreaCode>
    <CountCode>1</CountCode>
    <DateTimeFrozen>2019-10-24T16:10:17.620089-03:00</DateTimeFrozen>
    <DateTimeInclusion>2019-10-24T16:10:17.620089-03:00</DateTimeInclusion>
    <DateTimeThaw>2019-10-24T16:10:17.620089-03:00</DateTimeThaw>
    <FrozenGrossCost>6.1</FrozenGrossCost>
    <FrozenNetCost>5.1</FrozenNetCost>
    <FrozenSalePrice>7.1</FrozenSalePrice>
    <FrozenStatus>sample string 8</FrozenStatus>
    <LotCode>3</LotCode>
    <LotProperties>
      <ExpirationDate>2019-10-24T16:10:17.620089-03:00</ExpirationDate>
      <FabricationDate>2019-10-24T16:10:17.620089-03:00</FabricationDate>
      <NumberLot>sample string 1</NumberLot>
      <QuantityFrozen>1.1</QuantityFrozen>
      <QuantityPackage>1.1</QuantityPackage>
    </LotProperties>
    <LotStockCode>1</LotStockCode>
    <NameGondola>sample string 12</NameGondola>
    <NumberCompany>1</NumberCompany>
    <NumberGondola>1</NumberGondola>
    <Observation>sample string 11</Observation>
    <ProductCode>4</ProductCode>
    <ProductDescription>sample string 2</ProductDescription>
    <QuantityCount1>1.1</QuantityCount1>
    <QuantityCount2>1.1</QuantityCount2>
    <QuantityCount3>1.1</QuantityCount3>
    <QuantityFrozen>1.1</QuantityFrozen>
    <QuantityPackage>1.1</QuantityPackage>
    <RelatedProductCode>1</RelatedProductCode>
    <SubareaCode>1</SubareaCode>
    <UserFrozen>sample string 10</UserFrozen>
    <UserThaw>sample string 9</UserThaw>
  </LotProductsResponseDTO>
  <LotProductsResponseDTO>
    <AreaCode>1</AreaCode>
    <CountCode>1</CountCode>
    <DateTimeFrozen>2019-10-24T16:10:17.620089-03:00</DateTimeFrozen>
    <DateTimeInclusion>2019-10-24T16:10:17.620089-03:00</DateTimeInclusion>
    <DateTimeThaw>2019-10-24T16:10:17.620089-03:00</DateTimeThaw>
    <FrozenGrossCost>6.1</FrozenGrossCost>
    <FrozenNetCost>5.1</FrozenNetCost>
    <FrozenSalePrice>7.1</FrozenSalePrice>
    <FrozenStatus>sample string 8</FrozenStatus>
    <LotCode>3</LotCode>
    <LotProperties>
      <ExpirationDate>2019-10-24T16:10:17.620089-03:00</ExpirationDate>
      <FabricationDate>2019-10-24T16:10:17.620089-03:00</FabricationDate>
      <NumberLot>sample string 1</NumberLot>
      <QuantityFrozen>1.1</QuantityFrozen>
      <QuantityPackage>1.1</QuantityPackage>
    </LotProperties>
    <LotStockCode>1</LotStockCode>
    <NameGondola>sample string 12</NameGondola>
    <NumberCompany>1</NumberCompany>
    <NumberGondola>1</NumberGondola>
    <Observation>sample string 11</Observation>
    <ProductCode>4</ProductCode>
    <ProductDescription>sample string 2</ProductDescription>
    <QuantityCount1>1.1</QuantityCount1>
    <QuantityCount2>1.1</QuantityCount2>
    <QuantityCount3>1.1</QuantityCount3>
    <QuantityFrozen>1.1</QuantityFrozen>
    <QuantityPackage>1.1</QuantityPackage>
    <RelatedProductCode>1</RelatedProductCode>
    <SubareaCode>1</SubareaCode>
    <UserFrozen>sample string 10</UserFrozen>
    <UserThaw>sample string 9</UserThaw>
  </LotProductsResponseDTO>
</ArrayOfLotProductsResponseDTO>