PlantScanner
HomeSobre a PlantScanner
HomeSobre a PlantScanner
  1. Estoque
  • Developers
  • O que são as propriedades?
  • SKUs e Insumos
    • SKUs e Insumos
    • Gets all materials.
      GET
    • Synchronize materials batch between customer ERP and PlantScanner bases.
      POST
  • Ordens de Produção
    • Ordens de Produção ( Ordens de Trabalho )
    • Gets work orders that have been planned or executed between the specified dates or by the work order code.
      GET
    • Gets work orders that with production details
      GET
    • Synchronize work orders batch between customer ERP and PlantScanner bases.
      POST
    • Synchronize work orders batch current execution.
      POST
    • Synchronize work order properties data
      POST
    • Synchronize work orders batch planning dates.
      POST
  • Estoque
    • Estoque
    • Synchronize materials inventories between customer ERP and PlantScanner bases.
      POST
  • Alertas de Produção
    • Alertas de Produção
    • Synchronize work orders batch between customer ERP and PlantScanner bases.
      GET
  • Tempos de Mão de Obra
    • Tempos de Mão de Obra
    • Get employee logged hours with work order info if one was in execution.
      GET
  • Inspeções de Qualidade
    • Inspeções de Qualidade
    • Gets inspections that have been planned or executed between the specified dates or by the work order code.
      GET
    • Synchronize inspections batch between customer ERP and PlantScanner bases.
      POST
    • Synchronize inspections batch current execution.
      POST
    • Synchronize work order properties data
      POST
  • Processos de Inspeção
    • Processos de Inspeção
    • Gets all inspections processes
    • Synchronize inspection processes batch between customer ERP and PlantScanner bases.
  • Listas de Qualidade
    • Listas de Qualidade
    • Gets work orders checks that have been planned or executed between the specified dates or by the work order code.
  • Lotes Consumidos
    • Lotes Consumidos
    • Synchronize work orders batch between customer ERP and PlantScanner bases.
    • Sync consumed raw material quantity based on updated quantity in work order.
  • Histórico de Ordens
    • Synchronize work orders batch between customer ERP and PlantScanner bases.
  • Estações de Trabalho
    • Estações de Trabalho
    • Gets work stations with shifts and area.
  1. Estoque

Synchronize materials inventories between customer ERP and PlantScanner bases.

POST
/api/v1/MaterialInventories/synchronize
MaterialInventories
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plantscanner.io/api/v1/MaterialInventories/synchronize' \
--header 'Content-Type: application/json' \
--data-raw '{
    "materialsInventories": [
        {
            "materialCode": "string",
            "updateOnly": true,
            "inventories": [
                {
                    "location": "string",
                    "address": "string",
                    "batch": "string",
                    "availableQuantity": 0,
                    "readyToUse": true,
                    "expiryDate": "2019-08-24T14:15:22Z"
                }
            ]
        }
    ]
}'
Response Response Example
200 - Exemplo 1
{
    "affectedMaterialInventories": {
        "created": 0,
        "updated": 0,
        "terminated": 0
    }
}

Requisição

Authorization
Adicionar o parâmetro
Authorization
a Cabeçalhos
, cujo valor é concatenar o Token após o Bearer.
Exemplo:
Authorization: Bearer ********************
Parâmetros Bodyapplication/json
materialsInventories
array[object (PlantScanner.API.WebApi.Dtos.V1.SyncMaterialInventories_SyncMaterialInventoriesRequestInnerMaterialInventory) {3}] 
requerido
materialCode
string 
opcional
updateOnly
boolean 
opcional
If true, only update the inventory, do not delete previous records.
inventories
array[object (PlantScanner.API.WebApi.Dtos.V1.SyncMaterialInventories_SyncMaterialInventoriesRequestInnerInventory) {6}] 
opcional
Examples

Respostas

🟢200OK
application/json
Affected items statistics when all inventories materials have been successfully processed.
Body
affectedMaterialInventories
object (PlantScanner.API.Application.Boundaries_AffectedItemsStatistics) 
opcional
created
integer <int32>
read-onlyopcional
updated
integer <int32>
read-onlyopcional
terminated
integer <int32>
read-onlyopcional
🟢206Success
🟠412412
🔴500Erro do servidor
Página anterior
Estoque
Próxima página
Alertas de Produção
Built with