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 planning dates.

POST
/api/v1/WorkOrders/synchronize/planning
WorkOrders
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.plantscanner.io/api/v1/WorkOrders/synchronize/planning' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "note": "Note: after production call production leader",
        "code": "PS01-2020",
        "materialCode": "PSMT-20",
        "operationCode": "REWORK",
        "workStationCode": "PS-WORK",
        "beginPlanned": "2019-08-24T14:15:22Z",
        "endPlanned": "2019-08-24T14:15:22Z",
        "requestedQuantity": 2000
    }
]'
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:
note
string 
opcional
Some note for this planning
Exemplo:
Note: after production call production leader
code
string 
opcional
Work order code
Exemplo:
PS01-2020
materialCode
string 
opcional
Material Code
Exemplo:
PSMT-20
operationCode
string 
opcional
Operation Code
Exemplo:
REWORK
workStationCode
string 
opcional
Current work station code
Exemplo:
PS-WORK
beginPlanned
string <date-time>
opcional
Begin work order planned
endPlanned
string <date-time>
opcional
End work order planned (if null, will be calculated based on the work order duration)
requestedQuantity
number <double>
opcional
If work order doesn't exists, will be created
Exemplo:
2000
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 order properties data
Próxima página
Estoque
Built with