Download OpenAPI specification:Download
API de Integração do GoFusion para gerenciamento de cargas, descargas, liberações e outros recursos.
Todos os endpoints requerem autenticação via Bearer Token criado nas configurações da instância.
Retorna uma lista paginada de todas as cargas disponíveis.
Por padrão, as cargas são ordenadas por data de criação (created_at) em ordem decrescente.
Para alterar a ordenação, use o parâmetro sort_by com um dos seguintes valores:
Para inverter a ordem, adicione o parâmetro sort_order=asc (padrão é desc).
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Status da carga |
| start_date | string <date> Data de início (YYYY-MM-DD) |
| end_date | string <date> Data de fim (YYYY-MM-DD) |
| carrier | string Nome da transportadora |
| customer | string Nome do cliente |
| license_plate | string Placa do veículo |
| sort_by | string Enum: "created_at" "updated_at" "status" Campo para ordenação |
| sort_order | string Default: "desc" Enum: "asc" "desc" Ordem da ordenação |
{- "data": [
- {
- "identifier": "LOAD-123",
- "status": "pending",
- "weight": 1000.5,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "transport_modality": "rodoviário",
- "transport_document": "DT-123",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "customer": "Cliente XYZ",
- "customer_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "total_gross_weight": 1500.75,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 500.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 500.25
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Cria uma nova carga com os dados fornecidos.
order em deliveries é obrigatório| identifier required | string ID único da carga (deve ser único no sistema) |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Status da carga |
| weight | number <float> Peso da carga em kg |
| license_plate | string Placa do veículo (obrigatório se não for frete parcial) |
| vehicle_type | string Enum: "truck" "ship" "train" Tipo do veículo (obrigatório se não for frete parcial) |
| truck_body_type | string Tipo da carroceria do caminhão |
| driver | string Nome do motorista (obrigatório se não for frete parcial) |
| driver_cpf | string CPF do motorista (7-11 dígitos, obrigatório se não for frete parcial) |
| driver_phone | string Telefone do motorista (11 dígitos) |
| transport_modality | string Modalidade de transporte |
| transport_document | string Documento de transporte |
| freight_type | string Tipo do frete |
| patio | string Pátio |
| customer | string Cliente (obrigatório se o módulo de entregas não estiver habilitado) |
| customer_document | string Documento do cliente (obrigatório se o módulo de entregas não estiver habilitado) |
| carrier required | string Transportadora |
| carrier_document required | string Documento da transportadora |
| intermediary required | string Intermediário |
| scheduling | string <date-time> Data e hora do agendamento (obrigatório se não for frete parcial e não houver seleção automática de janela) |
| total_gross_weight | number <float> Peso bruto total (obrigatório se configurado na instância) |
Array of objects Lista de produtos (obrigatório se o módulo de entregas não estiver habilitado) | |
Array of objects Lista de entregas (opcional, disponível apenas se o módulo de entregas estiver habilitado). Regras de Negócio
| |
Array of objects Lista de pedidos |
{- "identifier": "CARGA-7",
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "Carreta",
- "driver": "01331058066",
- "driver_cpf": "01331058066",
- "driver_phone": "11999999999",
- "transport_modality": "Devolução",
- "transport_document": "CTe-123456",
- "freight_type": "cif",
- "patio": "Pátio Central",
- "carrier": "Transportadora XYZ Ltda",
- "carrier_document": "12345678000199",
- "intermediary": "Intermediário ABC",
- "scheduling": "2025-10-20T08:00:00-03:00",
- "total_gross_weight": "25000",
- "customer": "Cliente Principal",
- "customer_document": "01964354000119",
- "products": [
- {
- "product_name": "Soja",
- "product_code": "SOJ001",
- "product_unit": "kg",
- "quantity": 1000
}
], - "deliveries": [
- {
- "order": "5",
- "customer_document": "01964354000119",
- "products": [
- {
- "product_name": "nome",
- "product_code": "154234",
- "product_unit": "UN",
- "quantity": "10",
- "qty": 500,
- "order": "ORD001",
- "report": false,
- "disposition": 0,
- "provider_lot": "LOTE001",
- "provider_validity": "2024-12-31",
- "provider_fabrication": "2024-01-01",
- "load_package": [
- {
- "qty": 1,
- "gross_weight": 25.5,
- "package_id": 1
}
]
}
]
}
]
}{- "process_number": 123,
- "identifier": "LOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": [
- "ORDER-123"
], - "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "trucks": {
- "plate_0": "ABC1234",
- "plate_1": "DEF5678"
}, - "total_gross_weight": "1500.75",
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1000.5
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "transport_document": "DT-123",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "customer": "Cliente XYZ",
- "customer_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "canceled_at": null,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 500.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 500.25
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Agendamento 1",
- "current_appointment_date": "2024-03-20 14:00:00",
- "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-20T14:00:00Z"
}, - {
- "number": "PED-124",
- "expected_at": "2024-03-21T14:00:00Z"
}
]
}Retorna uma carga específica pelo seu identificador.
| identifier required | string ID da carga |
{- "identifier": "LOAD-123",
- "status": "completed",
- "weight": 1000.5,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "transport_document": "DT-123",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract": "CONTR-123",
- "customer": "Cliente XYZ",
- "customer_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "shift": "Manhã",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_total": 1200.5,
- "driver_delivery_confirmation": true,
- "customer_delivery_confirmation": true,
- "complete_analysis": true,
- "test_load": false,
- "total_gross_weight": 1500.75,
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1000.5
}, - "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "in_queue": false,
- "finished": true,
- "finished_at": "2024-03-20T18:00:00Z",
- "started_at": "2024-03-20T10:00:00Z",
- "canceled_at": null,
- "is_schedule_adhered": true,
- "partial_data": false,
- "integration_id": "INT-123",
- "dt": "DT-123",
- "checklists": [
- {
- "id": 1,
- "checklist_type": "pre_carregamento",
- "status": "completed",
- "items": [
- {
- "id": 1,
- "description": "Verificar documentação",
- "status": "completed",
- "observation": "Documentação OK"
}, - {
- "id": 2,
- "description": "Verificar estado do veículo",
- "status": "completed",
- "observation": "Veículo em bom estado"
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "appointments": [
- {
- "id": 1,
- "appointment_date": "2024-03-20T14:00:00Z",
- "status": "scheduled",
- "observation": "Agendamento confirmado",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "classifications": [
- {
- "id": 1,
- "classification_type": "qualidade",
- "value": "A",
- "observation": "Produto de alta qualidade",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "reports": [
- {
- "identifier": "REPORT-123",
- "report_type": "carregamento",
- "content": {
- "observations": "Carga realizada com sucesso",
- "issues": [ ],
- "recommendations": "Manter padrão de qualidade"
}, - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
]
}Atualiza uma carga existente.
order em deliveries é obrigatório| identifier required | string ID da carga |
| identifier required | string ID único da carga (deve ser único no sistema) |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Status da carga |
| weight | number <float> Peso da carga em kg |
| license_plate | string Placa do veículo (obrigatório se não for frete parcial) |
| vehicle_type | string Enum: "truck" "ship" "train" Tipo do veículo (obrigatório se não for frete parcial) |
| truck_body_type | string Tipo da carroceria do caminhão |
| driver | string Nome do motorista (obrigatório se não for frete parcial) |
| driver_cpf | string CPF do motorista (7-11 dígitos, obrigatório se não for frete parcial) |
| driver_phone | string Telefone do motorista (11 dígitos) |
| transport_modality | string Modalidade de transporte |
| transport_document | string Documento de transporte |
| freight_type | string Tipo do frete |
| patio | string Pátio |
| customer | string Cliente (obrigatório se o módulo de entregas não estiver habilitado) |
| customer_document | string Documento do cliente (obrigatório se o módulo de entregas não estiver habilitado) |
| carrier required | string Transportadora |
| carrier_document required | string Documento da transportadora |
| intermediary required | string Intermediário |
| scheduling | string <date-time> Data e hora do agendamento (obrigatório se não for frete parcial e não houver seleção automática de janela) |
| total_gross_weight | number <float> Peso bruto total (obrigatório se configurado na instância) |
Array of objects Lista de produtos (obrigatório se o módulo de entregas não estiver habilitado) | |
Array of objects Lista de entregas (opcional, disponível apenas se o módulo de entregas estiver habilitado). Regras de Negócio
| |
Array of objects Lista de pedidos |
{- "status": "in_progress",
- "weight": 1200.75,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "transport_document": "DT-123",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "customer": "Cliente XYZ",
- "customer_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "total_gross_weight": 1500.75,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "deliveries": [
- {
- "order": "5",
- "customer_document": "01964354000119",
- "products": [
- {
- "product_name": "nome",
- "product_code": "154234",
- "product_unit": "UN",
- "quantity": "10",
- "qty": 500,
- "order": "ORD001",
- "report": false,
- "disposition": 0,
- "provider_lot": "LOTE001",
- "provider_validity": "2024-12-31",
- "provider_fabrication": "2024-01-01",
- "load_package": [
- {
- "qty": 1,
- "gross_weight": 25.5,
- "package_id": 1
}
]
}
]
}
], - "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-20T14:00:00Z"
}, - {
- "number": "PED-124",
- "expected_at": "2024-03-21T14:00:00Z"
}
]
}{- "process_number": 123,
- "identifier": "LOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": [
- "ORDER-123"
], - "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "trucks": {
- "plate_0": "ABC1234",
- "plate_1": "DEF5678"
}, - "total_gross_weight": "1500.75",
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1200.5
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "transport_document": "DT-123",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "customer": "Cliente XYZ",
- "customer_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "canceled_at": null,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Agendamento 1",
- "current_appointment_date": "2024-03-20 14:00:00",
- "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-20T14:00:00Z"
}, - {
- "number": "PED-124",
- "expected_at": "2024-03-21T14:00:00Z"
}
]
}Cancela uma carga existente.
| identifier required | string ID da carga |
{- "identifier": "LOAD-123",
- "status": "cancelled",
- "weight": 1200,
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T12:00:00Z"
}Remove uma carga existente do sistema.
| identifier required | string ID da carga |
{- "code": "NOT_FOUND",
- "message": "O recurso solicitado não foi encontrado"
}Retorna uma lista paginada de todas as descargas disponíveis.
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Status da descarga |
| start_date | string <date> Data de início para filtro |
| end_date | string <date> Data de fim para filtro |
| unload_type | string Tipo de descarga para filtro |
| vehicle_id | integer ID do veículo |
| driver_id | integer ID do motorista |
| carrier_id | integer ID da transportadora |
| provider_id | integer ID do fornecedor |
| patio_id | integer ID do pátio |
| shift_id | integer ID do turno |
| load_type_id | integer ID do tipo de carga |
| freight_type | string Enum: "CIF" "FOB" "CPT" Tipo de frete |
| test_unload | boolean Filtra por descargas de teste |
| full_analysis | boolean Filtra por descargas com análise completa |
| finished | boolean Filtra por descargas finalizadas |
| in_queue | boolean Filtra por descargas em fila |
| nf_number | string Número da nota fiscal |
| integration_id | string ID de integração |
| dt | string Documento de Transporte |
| is_schedule_adhered | boolean Filtra por aderência ao agendamento |
| partial_data | boolean Filtra por dados parciais |
{- "data": [
- {
- "identifier": "UNLOAD-123",
- "status": "pending",
- "unload_type": "granel",
- "weight": 1000.5,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "shift": "Manhã",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_total": 1200.5,
- "complete_analysis": true,
- "test_unload": false,
- "total_gross_weight": 1500.75,
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1200.5
}, - "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "in_queue": false,
- "finished": false,
- "finished_at": null,
- "started_at": null,
- "canceled_at": null,
- "is_schedule_adhered": true,
- "partial_data": false,
- "integration_id": "INT-123",
- "dt": "DT-123"
}, - {
- "identifier": "UNLOAD-124",
- "status": "in_progress",
- "unload_type": "granel",
- "weight": 2000.75,
- "license_plate": "DEF5678",
- "vehicle_type": "truck",
- "truck_body_type": "carreta",
- "driver": "Maria Santos",
- "driver_cpf": "98765432100",
- "driver_phone": "11988888888",
- "transport_modality": "rodoviário",
- "freight_type": "FOB",
- "patio": "Pátio 2",
- "contract": "CONTR-124",
- "provider": "Fornecedor ABC",
- "provider_document": "98765432109876",
- "carrier": "Transportadora XYZ",
- "carrier_document": "98765432109876",
- "intermediary": "Intermediário ABC",
- "scheduling": "2024-03-21T09:00:00Z",
- "shift": "Tarde",
- "nf_number": "NF-124",
- "nf_origin": "Rio de Janeiro",
- "nf_total": 2400.75,
- "complete_analysis": false,
- "test_unload": true,
- "total_gross_weight": 2500.25,
- "weighings": {
- "weight_1": 2500.25,
- "weight_2": 2500.25,
- "actual_weight": 2500.25,
- "liquid_weight": 2000.75
}, - "products": [
- {
- "product_name": "Produto C",
- "product_code": "PROD-003",
- "product_unit": "kg",
- "quantity": 1200.25
}, - {
- "product_name": "Produto D",
- "product_code": "PROD-004",
- "product_unit": "kg",
- "quantity": 1200.5
}
], - "created_at": "2024-03-21T08:00:00Z",
- "updated_at": "2024-03-21T08:30:00Z",
- "in_queue": true,
- "finished": false,
- "finished_at": null,
- "started_at": "2024-03-21T08:30:00Z",
- "canceled_at": null,
- "is_schedule_adhered": true,
- "partial_data": false,
- "integration_id": "INT-124",
- "dt": "DT-124"
}
], - "meta": {
- "current_page": 1,
- "per_page": 10,
- "total": 100,
- "total_pages": 10
}
}Cria uma nova descarga com os dados fornecidos.
| identifier required | string ID único da descarga (deve ser único no sistema) |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Status da descarga |
| unload_type | string Tipo da descarga |
| weight | number <float> Peso da descarga em kg |
| license_plate | string Placa do veículo (obrigatório se não for frete parcial) |
| vehicle_type | string Enum: "truck" "ship" "train" Tipo do veículo (obrigatório se não for frete parcial) |
| truck_body_type | string Tipo da carroceria do caminhão |
| driver | string Nome do motorista (obrigatório se não for frete parcial) |
| driver_cpf | string CPF do motorista (7-11 dígitos, obrigatório se não for frete parcial) |
| driver_phone | string Telefone do motorista (11 dígitos) |
| transport_modality | string Modalidade de transporte |
| freight_type | string Tipo do frete |
| patio | string Pátio |
| contract | string Contrato |
| provider | string Fornecedor |
| provider_document | string Documento do fornecedor |
| carrier | string Transportadora |
| carrier_document | string Documento da transportadora |
| intermediary | string Intermediário |
| scheduling | string <date-time> Data e hora do agendamento (obrigatório se não for frete parcial e não houver seleção automática de janela) |
| shift | string Turno |
| nf_number | string Número da nota fiscal |
| nf_origin | string Origem da nota fiscal |
| nf_total | number <float> Valor total da nota fiscal |
| complete_analysis required | boolean Análise completa |
| test_unload required | boolean Teste de descarga |
| total_gross_weight | number <float> Peso bruto total (obrigatório se configurado na instância) |
required | Array of objects Lista de produtos |
{- "identifier": "UNLOAD-123",
- "status": "pending",
- "unload_type": "granel",
- "weight": 1000.5,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "shift": "Manhã",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_total": 1200.5,
- "complete_analysis": true,
- "test_unload": false,
- "total_gross_weight": 1500.75,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
]
}{- "process_number": 123,
- "identifier": "UNLOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": [
- "ORDER-123"
], - "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "trucks": {
- "plate_0": "ABC1234",
- "plate_1": "DEF5678"
}, - "total_gross_weight": "1500.75",
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1200.5
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract_number": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-20T14:00:00Z",
- "nf_amount": 1200.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_amount": 1200.5,
- "nf_origin_city": "São Paulo"
}
], - "complete_analysis": true,
- "test_unload": false,
- "canceled_at": null,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Agendamento 1",
- "current_appointment_date": "2024-03-20 14:00:00"
}Retorna uma descarga específica pelo seu identificador.
| identifier required | string ID da descarga |
{- "identifier": "UNLOAD-123",
- "status": "in_progress",
- "unload_type": "granel",
- "weight": 1000.5,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "shift": "Manhã",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_total": 1200.5,
- "complete_analysis": true,
- "test_unload": false,
- "total_gross_weight": 1500.75,
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1200.5
}, - "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "in_queue": false,
- "finished": false,
- "finished_at": null,
- "started_at": "2024-03-20T10:00:00Z",
- "canceled_at": null,
- "is_schedule_adhered": true,
- "partial_data": false,
- "integration_id": "INT-123",
- "dt": "DT-123",
- "checklists": [
- {
- "id": 1,
- "checklist_type": "pre_descarga",
- "status": "completed",
- "items": [
- {
- "id": 1,
- "description": "Verificar documentação",
- "status": "completed",
- "observation": "Documentação OK"
}, - {
- "id": 2,
- "description": "Verificar estado do veículo",
- "status": "completed",
- "observation": "Veículo em bom estado"
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "appointments": [
- {
- "id": 1,
- "appointment_date": "2024-03-20T14:00:00Z",
- "status": "scheduled",
- "observation": "Agendamento confirmado",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "classifications": [
- {
- "id": 1,
- "classification_type": "qualidade",
- "value": "A",
- "observation": "Produto de alta qualidade",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "reports": [
- {
- "identifier": "REPORT-123",
- "report_type": "descarga",
- "content": {
- "observations": "Descarga realizada com sucesso",
- "issues": [ ],
- "recommendations": "Manter padrão de qualidade"
}, - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
]
}Atualiza uma descarga existente.
| identifier required | string ID da descarga |
| identifier required | string ID único da descarga (deve ser único no sistema) |
| status | string Enum: "pending" "in_progress" "completed" "cancelled" Status da descarga |
| unload_type | string Tipo da descarga |
| weight | number <float> Peso da descarga em kg |
| license_plate | string Placa do veículo (obrigatório se não for frete parcial) |
| vehicle_type | string Enum: "truck" "ship" "train" Tipo do veículo (obrigatório se não for frete parcial) |
| truck_body_type | string Tipo da carroceria do caminhão |
| driver | string Nome do motorista (obrigatório se não for frete parcial) |
| driver_cpf | string CPF do motorista (7-11 dígitos, obrigatório se não for frete parcial) |
| driver_phone | string Telefone do motorista (11 dígitos) |
| transport_modality | string Modalidade de transporte |
| freight_type | string Tipo do frete |
| patio | string Pátio |
| contract | string Contrato |
| provider | string Fornecedor |
| provider_document | string Documento do fornecedor |
| carrier | string Transportadora |
| carrier_document | string Documento da transportadora |
| intermediary | string Intermediário |
| scheduling | string <date-time> Data e hora do agendamento (obrigatório se não for frete parcial e não houver seleção automática de janela) |
| shift | string Turno |
| nf_number | string Número da nota fiscal |
| nf_origin | string Origem da nota fiscal |
| nf_total | number <float> Valor total da nota fiscal |
| complete_analysis required | boolean Análise completa |
| test_unload required | boolean Teste de descarga |
| total_gross_weight | number <float> Peso bruto total (obrigatório se configurado na instância) |
required | Array of objects Lista de produtos |
{- "status": "in_progress",
- "unload_type": "granel",
- "weight": 1200.75,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "shift": "Manhã",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_total": 1200.5,
- "complete_analysis": true,
- "test_unload": false,
- "total_gross_weight": 1500.75,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
]
}{- "process_number": 123,
- "identifier": "UNLOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": [
- "ORDER-123"
], - "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "trucks": {
- "plate_0": "ABC1234",
- "plate_1": "DEF5678"
}, - "total_gross_weight": "1500.75",
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1200.5
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "12345678900",
- "driver_phone": "11999999999",
- "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract_number": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-20T14:00:00Z",
- "nf_amount": 1200.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_amount": 1200.5,
- "nf_origin_city": "São Paulo"
}
], - "complete_analysis": true,
- "test_unload": false,
- "canceled_at": null,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Agendamento 1",
- "current_appointment_date": "2024-03-20 14:00:00"
}Cancela uma descarga existente.
| identifier required | string ID da descarga |
{- "identifier": "UNLOAD-123",
- "status": "cancelled",
- "unload_type": "granel",
- "weight": 1000.5,
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T11:00:00Z"
}Remove uma descarga existente do sistema.
| identifier required | string ID da descarga |
{- "code": "NOT_FOUND",
- "message": "O recurso solicitado não foi encontrado"
}Retorna todos os checklists associados a uma carga específica.
| identifier required | string ID da carga |
{- "data": [
- {
- "id": 1,
- "checklist_type": "pre_carregamento",
- "status": "completed",
- "itens": [
- {
- "id": 1,
- "description": "Verificar pressão dos pneus",
- "status": "completed",
- "observation": "Pressão OK"
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Retorna todos os checklists associados a uma descarga específica.
| identifier required | string ID da descarga |
{- "data": [
- {
- "id": 1,
- "checklist_type": "pre_carregamento",
- "status": "completed",
- "itens": [
- {
- "id": 1,
- "description": "Verificar pressão dos pneus",
- "status": "completed",
- "observation": "Pressão OK"
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Retorna dados de cargas para integração com Power BI.
| start_date | string <date> Data de início (YYYY-MM-DD) |
| end_date | string <date> Data de fim (YYYY-MM-DD) |
[- {
- "identifier": "LOAD-123",
- "status": "completed",
- "weight": 1000.5,
- "created_at": "2024-03-20",
- "completed_at": "2024-03-21",
- "canceled_at": null,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver_name": "João da Silva",
- "driver_cpf": "12345678900",
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1000.5
}, - "transport_modality": "rodoviário",
- "transport_document": "DT-123",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "customer": "Cliente XYZ",
- "customer_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 500.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 500.25
}
], - "deliveries": [
- {
- "customer": "Cliente A",
- "customer_document": "12345678901234",
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 250.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 250.25
}
], - "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-20T14:00:00Z"
}, - {
- "number": "PED-124",
- "expected_at": "2024-03-21T14:00:00Z"
}
]
}
]
}
]Retorna dados de descargas para integração com Power BI.
| start_date | string <date> Data de início (YYYY-MM-DD) |
| end_date | string <date> Data de fim (YYYY-MM-DD) |
[- {
- "identifier": "UNLOAD-123",
- "status": "completed",
- "unload_type": "granel",
- "weight": 1000.5,
- "created_at": "2024-03-20",
- "completed_at": "2024-03-21",
- "canceled_at": null,
- "license_plate": "ABC1234",
- "vehicle_type": "truck",
- "truck_body_type": "baú",
- "driver_name": "João da Silva",
- "driver_cpf": "12345678900",
- "weighings": {
- "weight_1": 1500.75,
- "weight_2": 1500.75,
- "actual_weight": 1500.75,
- "liquid_weight": 1000.5
}, - "transport_modality": "rodoviário",
- "freight_type": "CIF",
- "patio": "Pátio 1",
- "contract": "CONTR-123",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678901234",
- "carrier": "Transportadora ABC",
- "carrier_document": "12345678901234",
- "intermediary": "Intermediário XYZ",
- "scheduling": "2024-03-20T14:00:00Z",
- "shift": "Manhã",
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "NF-123",
- "nf_origin": "São Paulo",
- "nf_amount": 1200.5,
- "nf_origin_city": "São Paulo"
}
], - "complete_analysis": true,
- "test_unload": false,
- "products": [
- {
- "product_name": "Produto A",
- "product_code": "PROD-001",
- "product_unit": "kg",
- "quantity": 600.25
}, - {
- "product_name": "Produto B",
- "product_code": "PROD-002",
- "product_unit": "kg",
- "quantity": 600.5
}
]
}
]Retorna dados de produções para integração com Power BI.
| start_date | string <date> Data de início (YYYY-MM-DD) |
| end_date | string <date> Data de fim (YYYY-MM-DD) |
[- {
- "id": 1,
- "production_type": "moagem",
- "quantity": 5000.5,
- "production_date": "2024-03-20",
- "start_date": "2024-03-20T08:00:00Z",
- "end_date": "2024-03-20T16:00:00Z",
- "product": {
- "name": "Farinha de Trigo",
- "codigo": "PROD-001",
- "unidade": "kg"
}, - "qualidade": {
- "umidade": 13.5,
- "proteina": 10.2,
- "gluten": 28.5
}, - "equipamento": {
- "nome": "Moinho A",
- "codigo": "EQ-001",
- "capacidade": 1000
}, - "operadores": [
- {
- "nome": "João Silva",
- "funcao": "Operador"
}, - {
- "nome": "Maria Santos",
- "funcao": "Supervisor"
}
], - "observacoes": "Produção realizada conforme especificações"
}
]Realiza a marcação de uma carga específica.
| identifier required | string ID da carga |
| integration_name required | string Nome da integração |
| appointment_date required | string <date-time> Data e hora do agendamento |
| observation | string Observação sobre o agendamento |
{- "appointment_date": "2024-03-20T14:00:00Z",
- "observation": "Marcação confirmada para carga no pátio 1"
}{- "id": 1,
- "appointment_date": "2024-03-20T14:00:00Z",
- "status": "scheduled",
- "observation": "Marcação confirmada",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Realiza a marcação de uma descarga específica.
| identifier required | string ID da descarga |
| integration_name required | string Nome da integração |
| appointment_date required | string <date-time> Data e hora do agendamento |
| observation | string Observação sobre o agendamento |
{- "appointment_date": "2024-03-20T14:00:00Z",
- "observation": "Marcação confirmada para descarga no pátio 1"
}{- "id": 1,
- "appointment_date": "2024-03-20T14:00:00Z",
- "status": "scheduled",
- "observation": "Marcação confirmada",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Retorna uma lista paginada de marcações com os seguintes campos:
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
{- "data": [
- {
- "id": 1,
- "name": "Marcação de Entrada",
- "external_id": "MARCAÇÃO-123"
}, - {
- "id": 2,
- "name": "Marcação de Saída",
- "external_id": "MARCAÇÃO-124"
}
], - "meta": {
- "current_page": 1,
- "total": 50,
- "per_page": 10,
- "last_page": 5
}
}Realiza a classificação de uma descarga específica através de uma marcação.
identifier é o identificador único da descarga.integration_name é o ID de integração da marcação de classificação a ser realizada.| identifier required | string ID da descarga |
| integration_name required | string ID de integração da marcação com ação de classificação |
required | Array of objects |
{- "classification": [
- {
- "integration_name": "8uio",
- "value": "ok"
}, - {
- "integration_name": "SDFGH",
- "value": "nao"
}, - {
- "integration_name": "abc",
- "value": "11:30"
}, - {
- "integration_name": "7yui89",
- "value": 2
}, - {
- "integration_name": "ybr",
- "value": 13
}
]
}{- "id": 1,
- "classification_type": "qualidade",
- "value": "ok",
- "observation": "Classificação realizada com sucesso",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Retorna uma lista paginada de todos os motoristas cadastrados.
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
| nome | string Nome do motorista |
| cpf | string CPF do motorista |
| status | string Enum: "active" "inactive" Status do motorista |
| phone | string Telefone do motorista |
| cnh | string Número da CNH |
| gender | string Enum: "male" "female" "other" Gênero do motorista |
{- "data": [
- {
- "cpf": "123.456.789-00",
- "nome": "João da Silva",
- "cnh": "12345678900",
- "birth_date": "1980-01-01",
- "status": "active",
- "phone": "string",
- "gender": "male",
- "rg": "string",
- "issuing": "string",
- "uf_issuing": "string",
- "integrations": [
- {
- "identifier": "DRIVER-INT-123",
- "nome_integracao": "Sistema de Transporte",
- "status": "active",
- "date": "2019-08-24",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "configuration": { },
- "driver": { }
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Retorna uma lista paginada de todas as integrações de motoristas.
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
{- "data": [
- {
- "identifier": "DRIVER-INT-123",
- "nome_integracao": "Sistema de Transporte",
- "status": "active",
- "date": "2019-08-24",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "configuration": { },
- "driver": {
- "cpf": "123.456.789-00",
- "nome": "João da Silva",
- "cnh": "12345678900",
- "birth_date": "1980-01-01",
- "status": "active",
- "phone": "string",
- "gender": "male",
- "rg": "string",
- "issuing": "string",
- "uf_issuing": "string",
- "integrations": [
- { }
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Retorna uma integração específica de motorista pelo seu identificador.
| identifier required | string ID da integração |
{- "identifier": "DRIVER-INT-123",
- "nome_integracao": "Sistema de Transporte",
- "status": "active",
- "date": "2019-08-24",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "configuration": { },
- "driver": {
- "cpf": "123.456.789-00",
- "nome": "João da Silva",
- "cnh": "12345678900",
- "birth_date": "1980-01-01",
- "status": "active",
- "phone": "string",
- "gender": "male",
- "rg": "string",
- "issuing": "string",
- "uf_issuing": "string",
- "integrations": [
- { }
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
}Atualiza os dados de um motorista existente.
| cpf required | string CPF do motorista |
| nome required | string Nome do motorista |
| cnh required | string Número da CNH |
| birth_date required | string <date> Data de nascimento |
| status required | string Enum: "active" "inactive" Status do motorista |
| phone | string Telefone do motorista |
| gender | string Enum: "male" "female" "other" Gênero do motorista |
| rg | string Número do RG |
| issuing | string Órgão emissor do RG |
| uf_issuing | string UF do órgão emissor |
Array of objects |
{- "nome": "João da Silva",
- "cnh": "12345678900",
- "birth_date": "1980-01-01",
- "status": "active",
- "phone": "string",
- "gender": "male",
- "rg": "string",
- "issuing": "string",
- "uf_issuing": "string",
- "integrations": [
- {
- "date": "2019-08-24",
- "notes": "string",
- "integrated_by_third_party": true
}
]
}{- "cpf": "123.456.789-00",
- "nome": "João da Silva",
- "cnh": "12345678900",
- "birth_date": "1980-01-01",
- "status": "active",
- "phone": "string",
- "gender": "male",
- "rg": "string",
- "issuing": "string",
- "uf_issuing": "string",
- "integrations": [
- {
- "identifier": "DRIVER-INT-123",
- "nome_integracao": "Sistema de Transporte",
- "status": "active",
- "date": "2019-08-24",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z",
- "configuration": { },
- "driver": { }
}
], - "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Retorna todos os relatórios associados a uma carga específica.
| load_identifier required | string ID da carga |
{- "data": [
- {
- "report_id": 0,
- "weight": 0,
- "nf": "string",
- "load_id": 0,
- "seals": [
- {
- "number": "string",
- "type": "string"
}
], - "sap_lot": [
- "string"
], - "filling_type": "string",
- "status": "string",
- "shelflife": "2019-08-24T14:15:22Z",
- "produced_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Cria um novo relatório para uma carga específica.
| load_identifier required | string ID da carga |
| report_type required | string Tipo do relatório |
| filling_type | string Enum: "Bigbag" "Granel" "Ráfia" Tipo de envase |
| sap_lot | Array of strings Lotes SAP |
Array of objects Lacres de Big Bag | |
Array of objects Lacres de Veículo | |
| weight | number Peso |
| nf | string Número da nota fiscal |
| produced_at | string <date-time> Data de produção |
| shelflife | string <date-time> Data de validade |
{- "report_type": "string",
- "filling_type": "Bigbag",
- "sap_lot": [
- "string"
], - "bigbag_seals": [
- {
- "id": "string",
- "value": "string",
- "cleaning_report": "string",
- "type": "Big Bag"
}
], - "vehicle_seals": [
- {
- "id": "string",
- "value": "string",
- "cleaning_report": "string",
- "type": "Veículo"
}
], - "weight": 1000,
- "nf": "12345",
- "produced_at": "2024-06-10T10:00:00Z",
- "shelflife": "2024-12-10T10:00:00Z"
}{- "report_id": 0,
- "weight": 0,
- "nf": "string",
- "load_id": 0,
- "seals": [
- {
- "number": "string",
- "type": "string"
}
], - "sap_lot": [
- "string"
], - "filling_type": "string",
- "status": "string",
- "shelflife": "2019-08-24T14:15:22Z",
- "produced_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z"
}Atualiza um relatório existente.
| identifier required | string ID do relatório |
| report_type required | string Tipo do relatório |
| filling_type | string Enum: "Bigbag" "Granel" "Ráfia" Tipo de envase |
| sap_lot | Array of strings Lotes SAP |
Array of objects Lacres de Big Bag | |
Array of objects Lacres de Veículo | |
| weight | number Peso |
| nf | string Número da nota fiscal |
| produced_at | string <date-time> Data de produção |
| shelflife | string <date-time> Data de validade |
{- "report_type": "string",
- "filling_type": "Bigbag",
- "sap_lot": [
- "string"
], - "bigbag_seals": [
- {
- "id": "string",
- "value": "string",
- "cleaning_report": "string",
- "type": "Big Bag"
}
], - "vehicle_seals": [
- {
- "id": "string",
- "value": "string",
- "cleaning_report": "string",
- "type": "Veículo"
}
], - "weight": 1000,
- "nf": "12345",
- "produced_at": "2024-06-10T10:00:00Z",
- "shelflife": "2024-12-10T10:00:00Z"
}{- "report_id": 0,
- "weight": 0,
- "nf": "string",
- "load_id": 0,
- "seals": [
- {
- "number": "string",
- "type": "string"
}
], - "sap_lot": [
- "string"
], - "filling_type": "string",
- "status": "string",
- "shelflife": "2019-08-24T14:15:22Z",
- "produced_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z"
}Remove um relatório existente.
| identifier required | string ID do relatório |
{- "code": "NOT_FOUND",
- "message": "O recurso solicitado não foi encontrado"
}Retorna uma lista de todos os pedidos de venda disponíveis.
[- {
- "id": 2,
- "identifier": "hdasgj",
- "order": "10",
- "date": "2025-09-17T12:00:00+00:00",
- "order_date": "2025-09-17T12:00:00+00:00",
- "expected_delivery_date": "2025-09-19T12:00:00+00:00",
- "customer": "COCAMAR",
- "customer_document": "04069908000102",
- "canceled_at": null,
- "confirmed_at": null,
- "consumed": false,
- "products": [
- {
- "product_name": "MARGARINA DESC",
- "product_code": "1234",
- "product_unit": "TO",
- "qty": "1.000",
- "lot": null,
- "validity_date": null,
- "fabrication_date": null,
- "package": null
}
], - "created_at": "2025-09-17T13:38:17+00:00",
- "updated_at": "2025-09-17T13:38:17+00:00"
}
]Cria um novo pedido de venda seguindo as regras de negócio especificadas.
| identifier required | string Identificador único do pedido (deve ser único no sistema) |
| order required | string Número do pedido (deve ser único no sistema) |
| date required | string Data do pedido (formato DD-MM-YYYY) |
| order_date required | string Data do pedido (formato DD-MM-YYYY) |
| expected_delivery_date required | string Data esperada de entrega (formato DD-MM-YYYY) |
| customer required | string Nome do cliente |
| customer_document required | string Documento do cliente |
required | Array of objects (SaleOrderProductInput) non-empty Lista de produtos (pelo menos um produto obrigatório) |
{- "identifier": "67adsjk",
- "order": "40",
- "date": "17-09-2025",
- "order_date": "17-09-2025",
- "expected_delivery_date": "18-09-2025",
- "customer": "teste - int",
- "customer_document": "59155444016",
- "products": [
- {
- "product_name": "feijoada",
- "product_code": 13,
- "product_unit": "TO",
- "qty": "20",
- "lot": "78312h",
- "validity_date": "10-11-2027",
- "fabrication_date": "10-11-2014",
- "package": "plastico"
}
]
}{- "id": 15,
- "identifier": "ALkd36521",
- "order": "41",
- "date": "2025-09-19T12:00:00+00:00",
- "order_date": "2025-09-20T12:00:00+00:00",
- "expected_delivery_date": "2025-09-20T12:00:00+00:00",
- "customer": "teste - int",
- "customer_document": "59155444016",
- "canceled_at": null,
- "confirmed_at": null,
- "consumed": false,
- "products": [
- {
- "product_name": "calabresa",
- "product_code": "h718",
- "product_unit": "KG",
- "qty": "300.000",
- "lot": "654g",
- "validity_date": "2027-11-10T12:00:00+00:00",
- "fabrication_date": "2025-11-10T12:00:00+00:00",
- "package": "plastico a vacuo"
}
], - "created_at": "2025-09-18T13:29:50+00:00",
- "updated_at": "2025-09-18T17:12:11+00:00"
}Busca um pedido de venda específico pelo ID ou identifier.
required | integer or string ID ou identifier do pedido de venda |
{- "id": 15,
- "identifier": "ALkd36521",
- "order": "41",
- "date": "2025-09-19T12:00:00+00:00",
- "order_date": "2025-09-20T12:00:00+00:00",
- "expected_delivery_date": "2025-09-20T12:00:00+00:00",
- "customer": "teste - int",
- "customer_document": "59155444016",
- "canceled_at": null,
- "confirmed_at": null,
- "consumed": false,
- "products": [
- {
- "product_name": "calabresa",
- "product_code": "h718",
- "product_unit": "KG",
- "qty": "300.000",
- "lot": "654g",
- "validity_date": "2027-11-10T12:00:00+00:00",
- "fabrication_date": "2025-11-10T12:00:00+00:00",
- "package": "plastico a vacuo"
}
], - "created_at": "2025-09-18T13:29:50+00:00",
- "updated_at": "2025-09-18T17:12:11+00:00"
}Atualiza um pedido de venda existente.
required | integer or string ID ou identifier do pedido de venda |
| identifier required | string Identificador único do pedido (deve ser único no sistema) |
| order required | string Número do pedido (deve ser único no sistema) |
| date required | string Data do pedido (formato DD-MM-YYYY) |
| order_date required | string Data do pedido (formato DD-MM-YYYY) |
| expected_delivery_date required | string Data esperada de entrega (formato DD-MM-YYYY) |
| customer required | string Nome do cliente |
| customer_document required | string Documento do cliente |
required | Array of objects (SaleOrderProductInput) non-empty Lista de produtos (pelo menos um produto obrigatório) |
{- "identifier": "ALkd36521",
- "order": "41",
- "date": "19-09-2025",
- "order_date": "20-09-2025",
- "expected_delivery_date": "20-09-2025",
- "customer": "teste - int",
- "customer_document": "59155444016",
- "products": [
- {
- "product_name": "calabresa",
- "product_code": "h718",
- "product_unit": "KG",
- "qty": "300",
- "lot": "654g",
- "validity_date": "10-11-2027",
- "fabrication_date": "10-11-2025",
- "package": "plastico a vacuo"
}
]
}{- "id": 15,
- "identifier": "ALkd36521",
- "order": "41",
- "date": "2025-09-19T12:00:00+00:00",
- "order_date": "2025-09-20T12:00:00+00:00",
- "expected_delivery_date": "2025-09-20T12:00:00+00:00",
- "customer": "teste - int",
- "customer_document": "59155444016",
- "canceled_at": null,
- "confirmed_at": null,
- "consumed": false,
- "products": [
- {
- "product_name": "calabresa",
- "product_code": "h718",
- "product_unit": "KG",
- "qty": "300.000",
- "lot": "654g",
- "validity_date": "2027-11-10T12:00:00+00:00",
- "fabrication_date": "2025-11-10T12:00:00+00:00",
- "package": "plastico a vacuo"
}
], - "created_at": "2025-09-18T13:29:50+00:00",
- "updated_at": "2025-09-18T17:12:11+00:00"
}Remove um pedido de venda do sistema.
required | integer or string ID ou identifier do pedido de venda |
{- "success": true,
- "message": "Sale Order deleted successfully"
}Retorna uma lista paginada de todas as liberações disponíveis.
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
| status | string Enum: "active" "suspended" "expired" Status da liberação |
| start_date | string <date> Data de início (YYYY-MM-DD) |
| end_date | string <date> Data de fim (YYYY-MM-DD) |
{- "data": [
- {
- "identifier": "PERMIT-123",
- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Cria uma nova liberação com os dados fornecidos.
| status required | string Enum: "active" "suspended" "expired" Status da liberação |
| permit_type required | string Tipo da liberação |
| valid_until required | string <date> Data de validade da liberação |
{- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31"
}{- "identifier": "PERMIT-123",
- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Retorna uma liberação específica pelo seu identificador
| identifier required | string ID da liberação |
{- "identifier": "PERMIT-123",
- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Atualiza uma liberação existente
| identifier required | string ID da liberação |
| status required | string Enum: "active" "suspended" "expired" Status da liberação |
| permit_type required | string Tipo da liberação |
| valid_until required | string <date> Data de validade da liberação |
{- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31"
}{- "identifier": "PERMIT-123",
- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Suspende uma liberação existente
| identifier required | string ID da liberação |
{- "identifier": "PERMIT-123",
- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Reativa uma liberação suspensa
| identifier required | string ID da liberação |
{- "identifier": "PERMIT-123",
- "status": "active",
- "permit_type": "transporte",
- "valid_until": "2024-12-31",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}Retorna todas as cargas associadas a uma liberação específica
| identifier required | string ID da liberação |
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
{- "data": [
- {
- "identifier": "LOAD-123",
- "status": "pending",
- "weight": 1000.5,
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T10:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}Retorna todas as descargas associadas a uma liberação específica
| identifier required | string ID da liberação |
| page | integer >= 1 Default: 1 Número da página para paginação |
| per_page | integer [ 1 .. 100 ] Default: 10 Quantidade de itens por página |
{- "data": [
- {
- "identifier": "UNLOAD-123",
- "status": "pending",
- "unload_type": "granel",
- "weight": 1000.5,
- "integration_id": "INT-123",
- "created_at": "2024-03-20T10:00:00Z",
- "updated_at": "2024-03-20T11:00:00Z"
}
], - "meta": {
- "current_page": 1,
- "total": 100,
- "per_page": 10,
- "last_page": 10
}
}