Árvore de páginas

Objetivo

A finalidade deste método é, possibilitar a consulta de lotes para inventário.

Chamada

GET api/v1/sm/inventories/lots?numberCompany=
{numberCompany}&placeCode=
{placeCode}&lotCode=
{lotCode}&initialGenerationDate=
{initialGenerationDate}&finalGenerationDate=
{finalGenerationDate}&status=
{status}&_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)
numberCompanyNumber CompanyintegerNão há.
placeCodePlace Code (Optional: If it is not filled, the code of the place will not be considered. Otherwise, the records with the code of the place will be considered equal to a certain code)integerNão há.
lotCodeLot Code (Optional: If it is not filled, the lot code will not be considered. Otherwise, the records with the lot code will be considered equal to a certain code)integerNão há.
initialGenerationDateInitial Generation Date dd/MM/yyyy HH:mm or ddMMyyyyHHmm (Optional: If it is not filled, the date will not be considered. Otherwise it will fetch greater or equal to a given date)stringNão há.
finalGenerationDateFinal Generation Date dd/MM/yyyy HH:mm or ddMMyyyyHHmm (Optional: If it is not filled, the date will not be considered. Otherwise it will be less than or equal to a certain date)stringNão há.
statusLot StatusstringNã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 LotsResponseDTO

Nome (Name)Descrição (Description)Tipo (Type)Informações Adicionais (Adittional Information)
otCodeLot CodeintegerNão há.
numberCompanyNumber CompanyintegerNão há.
placeCodePlace CodeintegerNão há.
segmentNumberSegment NumberintegerNão há.
descriptionDescription of the LotstringNão há.
inventoryTypeInventory Type (T – Total / V – Empty / P – Partial)stringNão há.
countAmountCount AmountintegerNão há.
generationDateGeneration DatedateNão há.
generationUserGeneration UserstringNão há.
stockSnapshotDateStock Snapshot DatedateNão há.
stockSnapshotUserStock Snapshot UserstringNão há.
validationDateValidation DatedateNão há.
validationUserValidation UserstringNão há.
cancellationDateCancellation DatedateNão há.
cancellationUserCancellation UserstringNão há.
statusLot Status (P – Partially Frozen / A – Open / C – Canceled / G – Frozen / F – Finished / Others – Undefined)stringNão há.
stockThawingDateStock Thawing DatedateNão há.
stockThawingUserStock Thawing UserstringNão há.

Formatos de Resposta (Response Formats)

application/json, text/json

Exemplo (Sample):

[
  {
    "lotCode": 1,
    "numberCompany": 2,
    "placeCode": 1,
    "segmentNumber": 3,
    "description": "sample string 4",
    "inventoryType": "sample string 5",
    "countAmount": 6,
    "generationDate": "2019-10-24T14:50:29.2908346-03:00",
    "generationUser": "sample string 7",
    "stockSnapshotDate": "2019-10-24T14:50:29.2908346-03:00",
    "stockSnapshotUser": "sample string 8",
    "validationDate": "2019-10-24T14:50:29.2908346-03:00",
    "validationUser": "sample string 9",
    "cancellationDate": "2019-10-24T14:50:29.2908346-03:00",
    "cancellationUser": "sample string 10",
    "status": "sample string 11",
    "stockThawingDate": "2019-10-24T14:50:29.2908346-03:00",
    "stockThawingUser": "sample string 12"
  },
  {
    "lotCode": 1,
    "numberCompany": 2,
    "placeCode": 1,
    "segmentNumber": 3,
    "description": "sample string 4",
    "inventoryType": "sample string 5",
    "countAmount": 6,
    "generationDate": "2019-10-24T14:50:29.2908346-03:00",
    "generationUser": "sample string 7",
    "stockSnapshotDate": "2019-10-24T14:50:29.2908346-03:00",
    "stockSnapshotUser": "sample string 8",
    "validationDate": "2019-10-24T14:50:29.2908346-03:00",
    "validationUser": "sample string 9",
    "cancellationDate": "2019-10-24T14:50:29.2908346-03:00",
    "cancellationUser": "sample string 10",
    "status": "sample string 11",
    "stockThawingDate": "2019-10-24T14:50:29.2908346-03:00",
    "stockThawingUser": "sample string 12"
  }
]

application/xml, text/xml

Exemplo (Sample):

<ArrayOfLotsResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Consinco.SM.Api.Entities.Entities.v1">
  <LotsResponseDTO>
    <CancellationDate>2019-10-24T14:50:29.2908346-03:00</CancellationDate>
    <CancellationUser>sample string 10</CancellationUser>
    <CountAmount>6</CountAmount>
    <Description>sample string 4</Description>
    <GenerationDate>2019-10-24T14:50:29.2908346-03:00</GenerationDate>
    <GenerationUser>sample string 7</GenerationUser>
    <InventoryType>sample string 5</InventoryType>
    <LotCode>1</LotCode>
    <NumberCompany>2</NumberCompany>
    <PlaceCode>1</PlaceCode>
    <SegmentNumber>3</SegmentNumber>
    <Status>sample string 11</Status>
    <StockSnapshotDate>2019-10-24T14:50:29.2908346-03:00</StockSnapshotDate>
    <StockSnapshotUser>sample string 8</StockSnapshotUser>
    <StockThawingDate>2019-10-24T14:50:29.2908346-03:00</StockThawingDate>
    <StockThawingUser>sample string 12</StockThawingUser>
    <ValidationDate>2019-10-24T14:50:29.2908346-03:00</ValidationDate>
    <ValidationUser>sample string 9</ValidationUser>
  </LotsResponseDTO>
  <LotsResponseDTO>
    <CancellationDate>2019-10-24T14:50:29.2908346-03:00</CancellationDate>
    <CancellationUser>sample string 10</CancellationUser>
    <CountAmount>6</CountAmount>
    <Description>sample string 4</Description>
    <GenerationDate>2019-10-24T14:50:29.2908346-03:00</GenerationDate>
    <GenerationUser>sample string 7</GenerationUser>
    <InventoryType>sample string 5</InventoryType>
    <LotCode>1</LotCode>
    <NumberCompany>2</NumberCompany>
    <PlaceCode>1</PlaceCode>
    <SegmentNumber>3</SegmentNumber>
    <Status>sample string 11</Status>
    <StockSnapshotDate>2019-10-24T14:50:29.2908346-03:00</StockSnapshotDate>
    <StockSnapshotUser>sample string 8</StockSnapshotUser>
    <StockThawingDate>2019-10-24T14:50:29.2908346-03:00</StockThawingDate>
    <StockThawingUser>sample string 12</StockThawingUser>
    <ValidationDate>2019-10-24T14:50:29.2908346-03:00</ValidationDate>
    <ValidationUser>sample string 9</ValidationUser>
  </LotsResponseDTO>
</ArrayOfLotsResponseDTO>