PlantScanner
HomeSobre a PlantScanner
HomeSobre a PlantScanner
  1. Ordens de Produção
  • 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. Ordens de Produção

Synchronize work orders batch current execution.

POST
/api/v1/WorkOrders/synchronize/runtime
WorkOrders
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plantscanner.io/api/v1/WorkOrders/synchronize/runtime' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "code": "PS01-2020",
        "operationCode": "PS-WORK",
        "workStationCode": "PS-WORK",
        "employeeRegistration": "000009",
        "updatedQuantity": 20,
        "producedGoodQuantity": 0,
        "status": 1,
        "statusReason": {
            "id": 0,
            "description": "string"
        }
    }
]'
Response Response Example
200 - Exemplo 1
{
    "machineIntegration": {
        "code": "string",
        "updatedAt": "2019-08-24T14:15:22Z",
        "workStationCode": "string",
        "producedGoodQuantity": 0,
        "beginExecution": "2019-08-24T14:15:22Z",
        "status": 0
    },
    "currentWorkStation": {
        "id": 0,
        "description": "string",
        "shortName": "string",
        "code": "string",
        "lastUpdate": "2019-08-24T14:15:22Z",
        "allowPlanning": true
    },
    "message": "string",
    "success": true
}

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
array of:
code
string 
opcional
Work order code
Exemplo:
PS01-2020
operationCode
string 
opcional
WorkOrder operation code
Exemplo:
PS-WORK
workStationCode
string 
opcional
Current work station code, if Code is null, the current work order will be searched by this field
Exemplo:
PS-WORK
employeeRegistration
string 
opcional
Employee registration code
Exemplo:
000009
updatedQuantity
integer <int32>
opcional
Incremental updated quantity (Optional)
Exemplo:
20
producedGoodQuantity
integer <int32>
opcional
Total produced quantity (Optional)
status
integer <int32>
opcional
Current work order status, if value is null and the work order is not executing, nothing will be updated
0 - Progress
1 - Finished
2 - Paused
Exemplo:
1
statusReason
object (PlantScanner.API.WebApi.Dtos.V1.SyncWorkOrdersRuntime_MachineIntegrationPauseDto) 
opcional
id
integer <int32>
opcional
Pause reason id (Optional)
description
string 
opcional
Pause reason description (Optional)
Examples

Respostas

🟢200OK
application/json
Affected work orders with updated description.
Body
machineIntegration
object (PlantScanner.API.WebApi.Dtos.V1.SyncWorkOrdersRuntime_MachineIntegration) 
opcional
code
string 
opcional
updatedAt
string <date-time>
opcional
workStationCode
string 
opcional
producedGoodQuantity
integer <int32>
opcional
beginExecution
string <date-time>
opcional
status
integer <int32>
opcional
currentWorkStation
object (PlantScanner.API.WebApi.Dtos.V1.SyncWorkOrdersRuntime_CurrentWorkStation) 
opcional
id
integer <int32>
opcional
description
string 
opcional
shortName
string 
opcional
code
string 
opcional
lastUpdate
string <date-time>
opcional
allowPlanning
boolean 
opcional
message
string 
opcional
success
boolean 
opcional
🟠412412
🔴500Erro do servidor
Página anterior
Synchronize work orders batch between customer ERP and PlantScanner bases.
Próxima página
Synchronize work order properties data
Built with