Download OpenAPI specification:
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.
As listagens paginadas usam o parâmetro page (página, a partir de 1). O tamanho da página varia por endpoint:
count (padrão 10): cargas, descargas, cargas/descargas por liberação, liberações, motoristas e integrações de motoristascount (padrão 15): chats de motoristasA resposta paginada segue o formato do Laravel: os itens ficam em data, junto de current_page, per_page,
total, last_page e links de navegação. O per_page da resposta apenas informa o tamanho usado; ele não é aceito como parâmetro.
Os erros retornam um JSON com o campo message. Nos erros de validação dos campos (status 422),
a resposta também traz errors, com a lista de mensagens de cada campo inválido.
Retorna uma lista paginada das cargas da instância do token. Os resultados respeitam as restrições de entidades e de tipos de transporte do usuário do token.
Os filtros são enviados no parâmetro filter, como um JSON (URL-encoded):
GET /loads?filter={"finished":1,"customer_id":[10,11]}
Parâmetros soltos na URL (ex.: ?status=pending) são ignorados.
Chaves desconhecidas dentro do JSON também são ignoradas, sem erro.
Campos cadastrais da carga podem ser usados com um valor exato ou uma lista de valores (lista = IN).
Exemplos: id, integration_id, dt, freight_type, carrier_id, vehicle_id, driver_id,
patio_id, shift_id, load_type_id, intermediary_id.
1 ou true para ativar)in_process: não finalizadas e não canceladasfinished: finalizadas e não canceladasnot_finished: sem data de finalizaçãonot_canceled / canceled: não canceladas / canceladasintegrated / not_integrated: com / sem integration_idarrive_pending: ainda não chegaram ao pátioin_patios_count: atualmente no pátiono_last_appointment: nenhuma marcação realizadahas_schedule_warnings: fora da janela de agendamentopending_documents: com pendências de documentos sem justificativais_today_schedule: criadas e agendadas para hojecustomer_id: ID ou lista de IDs de cliente (considera o cliente da carga e os clientes vinculados)product_id: ID ou lista de IDs de produtoentrance_id: lista de IDs de doca (da carga ou dos produtos)truck_type_id: lista de IDs de tipo de carroceriaunit_id: ID ou lista de IDs de unidade dos produtosreports: situação dos laudos ("requested", "pending" ou "finished")selected_permits_id / selected_subpermits_id: listas de IDs internos de liberações / subliberaçõessearch: busca textual (ID, laudos, motorista, tipo de transporte, cliente, veículo, doca, usuário)from e until (YYYY-MM-DD) exigem period_field, que indica qual data é comparada:
created_at, scheduled_from, started_at, finished_at ou last_appointment_timestamp.
Sem period_field, o período é ignorado. from é inclusivo e until é exclusivo.
filter={"period_field":"finished_at","from":"2026-10-01","until":"2026-10-06"}
Enviada no parâmetro sorting, como JSON {"campo":"asc|desc"}:
GET /loads?sorting={"created_at":"desc"}
{"customer.name":"asc"}). Nesse caso, cargas sem a relação
não são retornadas.sorting, a ordem dos registros não é garantida.page (padrão 1) e count (itens por página, padrão 10).
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "data": [
- {
- "process_number": 48210,
- "identifier": "LOAD-123",
- "permit_identifier": [
- "PERMIT-456"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "truck_body_type": "Sider",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 5 eix (45.000)",
- "weighings": {
- "weight_1": 15200,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 45300,
- "weight2_at": "2024-03-20 10:50:00",
- "actual_weight": 30100,
- "liquid_weight": 30100
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Ensacado",
- "transport_document": "DT-9876",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "customer": "Panificadora XYZ",
- "customer_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": null,
- "created_at": "2024-03-19T14:00:00+00:00",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T14:20:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Farinha de Trigo 25kg",
- "product_code": "FAR-001",
- "product_unit": "sc",
- "quantity": 1200
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 11:20:00",
- "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-21T03:00:00.000000Z"
}
]
}, - {
- "process_number": 48211,
- "identifier": "LOAD-124",
- "permit_identifier": null,
- "freight_orders": null,
- "license_plate": "GHI7J89",
- "vehicle_type": "truck",
- "truck_body_type": "Baú",
- "trucks": [ ],
- "total_gross_weight": null,
- "weighings": {
- "weight_1": null,
- "weight1_at": null,
- "weight_2": null,
- "weight2_at": null,
- "actual_weight": null,
- "liquid_weight": null
}, - "driver": "Maria Santos",
- "driver_cpf": "98765432100",
- "driver_cnh": null,
- "driver_phone": "11988888888",
- "transport_modality": "Ensacado",
- "transport_document": null,
- "freight_type": "fob",
- "patio": null,
- "customer": "Mercado ABC",
- "customer_document": "11222333000144",
- "carrier": null,
- "carrier_document": null,
- "intermediary": null,
- "created_at": "2024-03-20T18:30:00+00:00",
- "scheduling": "2024-03-21T12:00:00+00:00",
- "canceled_at": null,
- "started_at": null,
- "finished_at": null,
- "status": "pending",
- "products": [
- {
- "product_name": "Farinha de Trigo 5kg",
- "product_code": "FAR-005",
- "product_unit": "fd",
- "quantity": 800
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": null,
- "current_appointment_date": null,
- "orders": [ ]
}
], - "from": 1,
- "last_page": 1,
- "links": [ ],
- "next_page_url": null,
- "per_page": 10,
- "prev_page_url": null,
- "to": 2,
- "total": 2
}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 | string Nome do peso bruto total (PBT) cadastrado na instância (obrigatório se configurado na instância). Só é vinculado se o veículo da placa informada existir; sem o campo, usa o PBT do veículo. |
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": "Vei. 5 eix (45.000)",
- "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": 48211,
- "identifier": "LOAD-124",
- "permit_identifier": null,
- "freight_orders": null,
- "license_plate": "GHI7J89",
- "vehicle_type": "truck",
- "truck_body_type": "Baú",
- "trucks": [ ],
- "total_gross_weight": null,
- "weighings": {
- "weight_1": null,
- "weight1_at": null,
- "weight_2": null,
- "weight2_at": null,
- "actual_weight": null,
- "liquid_weight": null
}, - "driver": "Maria Santos",
- "driver_cpf": "98765432100",
- "driver_cnh": null,
- "driver_phone": "11988888888",
- "transport_modality": "Ensacado",
- "transport_document": null,
- "freight_type": "fob",
- "patio": null,
- "customer": "Mercado ABC",
- "customer_document": "11222333000144",
- "carrier": null,
- "carrier_document": null,
- "intermediary": null,
- "created_at": "2024-03-20T18:30:00+00:00",
- "scheduling": "2024-03-21T12:00:00+00:00",
- "canceled_at": null,
- "started_at": null,
- "finished_at": null,
- "status": "pending",
- "products": [
- {
- "product_name": "Farinha de Trigo 5kg",
- "product_code": "FAR-005",
- "product_unit": "fd",
- "quantity": 800
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": null,
- "current_appointment_date": null,
- "orders": [ ]
}Retorna uma carga específica pelo seu identificador.
status) e datas do processo (criação, início, finalização, cancelamento)identifier de integração ou o ID numérico da cargaload_identifier da requisição| identifier required | string ID da carga |
{- "process_number": 48210,
- "identifier": "LOAD-123",
- "permit_identifier": [
- "PERMIT-456"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "truck_body_type": "Sider",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 5 eix (45.000)",
- "weighings": {
- "weight_1": 15200,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 45300,
- "weight2_at": "2024-03-20 10:50:00",
- "actual_weight": 30100,
- "liquid_weight": 30100
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Ensacado",
- "transport_document": "DT-9876",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "customer": "Panificadora XYZ",
- "customer_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": null,
- "created_at": "2024-03-19T14:00:00+00:00",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T14:20:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Farinha de Trigo 25kg",
- "product_code": "FAR-001",
- "product_unit": "sc",
- "quantity": 1200
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 11:20:00",
- "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-21T03:00:00.000000Z"
}
]
}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 | string Nome do peso bruto total (PBT) cadastrado na instância (obrigatório se configurado na instância). Só é vinculado se o veículo da placa informada existir; sem o campo, usa o PBT do veículo. |
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",
- "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": "Vei. 5 eix (45.000)",
- "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": 48210,
- "identifier": "LOAD-123",
- "permit_identifier": [
- "PERMIT-456"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "truck_body_type": "Sider",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 5 eix (45.000)",
- "weighings": {
- "weight_1": 15200,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 45300,
- "weight2_at": "2024-03-20 10:50:00",
- "actual_weight": 30100,
- "liquid_weight": 30100
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Ensacado",
- "transport_document": "DT-9876",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "customer": "Panificadora XYZ",
- "customer_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": null,
- "created_at": "2024-03-19T14:00:00+00:00",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T14:20:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Farinha de Trigo 25kg",
- "product_code": "FAR-001",
- "product_unit": "sc",
- "quantity": 1200
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 11:20:00",
- "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-21T03:00:00.000000Z"
}
]
}Cancela uma carga existente.
canceled_at é preenchido com a data do cancelamentofinished_at também recebe a data do cancelamento.
Por isso a resposta vem com status: "finished"; use canceled_at para identificar cargas canceladasidentifier de integração ou o ID numérico da cargaload_identifier da requisição| identifier required | string ID da carga |
| justification required | string Justificativa do cancelamento |
{- "justification": "Cliente cancelou o pedido"
}{- "process_number": 48211,
- "identifier": "LOAD-124",
- "permit_identifier": null,
- "freight_orders": null,
- "license_plate": "GHI7J89",
- "vehicle_type": "truck",
- "truck_body_type": "Baú",
- "trucks": [ ],
- "total_gross_weight": null,
- "weighings": {
- "weight_1": null,
- "weight1_at": null,
- "weight_2": null,
- "weight2_at": null,
- "actual_weight": null,
- "liquid_weight": null
}, - "driver": "Maria Santos",
- "driver_cpf": "98765432100",
- "driver_cnh": null,
- "driver_phone": "11988888888",
- "transport_modality": "Ensacado",
- "transport_document": null,
- "freight_type": "fob",
- "patio": null,
- "customer": "Mercado ABC",
- "customer_document": "11222333000144",
- "carrier": null,
- "carrier_document": null,
- "intermediary": null,
- "created_at": "2024-03-20T18:30:00+00:00",
- "scheduling": "2024-03-21T12:00:00+00:00",
- "canceled_at": "2024-03-21T10:20:00+00:00",
- "started_at": null,
- "finished_at": "2024-03-21T10:20:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Farinha de Trigo 5kg",
- "product_code": "FAR-005",
- "product_unit": "fd",
- "quantity": 800
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": null,
- "current_appointment_date": null,
- "orders": [ ]
}Exclui uma carga existente.
identifier de integração ou o ID numérico da cargaload_identifier do corpo da requisiçãoidentifier de uma carga excluída não pode ser reutilizado em uma nova criação| identifier required | string ID da carga |
| justification required | string Justificativa da exclusão |
{- "justification": "Carga duplicada"
}{- "deleted": true
}Retorna uma lista paginada das descargas da instância do token. Os resultados respeitam as restrições de entidades e de tipos de transporte do usuário do token.
Os filtros são enviados no parâmetro filter, como um JSON (URL-encoded):
GET /unloads?filter={"is_full_analysis":1,"finished":1}
Parâmetros soltos na URL (ex.: ?full_analysis=true) são ignorados.
Chaves desconhecidas dentro do JSON também são ignoradas, sem erro.
Campos cadastrais da descarga podem ser usados com um valor exato ou uma lista de valores (lista = IN).
Exemplos: id, integration_id, dt, freight_type, provider_id, carrier_id, contract_id,
vehicle_id, driver_id, patio_id, shift_id, load_type_id, storage_id, intermediary_id,
full_analysis, test_unload.
1 ou true para ativar)is_full_analysis: somente descargas com análise completais_test_unload: somente cargas testein_process: não finalizadas e não canceladasfinished: finalizadas e não canceladasnot_canceled / canceled: não canceladas / canceladasintegrated / not_integrated: com / sem integration_idarrive_pending: ainda não chegaram ao pátioin_patios_count: atualmente no pátiono_last_appointment: nenhuma marcação realizadahas_schedule_warnings: fora da janela de agendamentopending_documents: com pendências de documentos sem justificativacls_status: status da classificação da descarga (0 reprovado, 1 aprovado, 2 aprovado com restrições, "no" sem classificação)product_id: ID ou lista de IDs de produtocustomer_id: ID ou lista de IDs do destino do contratocrop: safra do contrato (ex.: "2025/2026")truck_type_id: lista de IDs de tipo de carroceriasearch: busca textual (ID, motorista, tipo de transporte, contrato, veículo, doca, fornecedor, usuário)from e until (YYYY-MM-DD) exigem period_field, que indica qual data é comparada:
created_at, scheduled_from, started_at, finished_at ou last_appointment_timestamp.
Sem period_field, o período é ignorado. from é inclusivo e until é exclusivo.
filter={"period_field":"finished_at","from":"2026-10-01","until":"2026-10-06"}
Enviada no parâmetro sorting, como JSON {"campo":"asc|desc"}:
GET /unloads?sorting={"created_at":"desc"}
{"provider.name":"asc"}). Nesse caso, descargas sem a relação
(ex.: sem fornecedor) não são retornadas.sorting, a ordem dos registros não é garantida.page (padrão 1) e count (itens por página, padrão 10).
Descargas com análise completa (complete_analysis: true) retornam o campo sample_classification
com a situação, o tipo de reprovação e as variáveis da amostra vinculada.
Para as demais descargas, ou quando não há amostra vinculada, o campo é null.
Veja o schema UnloadSampleClassification.
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "data": [
- {
- "process_number": 123,
- "identifier": "UNLOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 6 eix (57.000)",
- "weighings": {
- "weight_1": 45230,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 15200,
- "weight2_at": "2024-03-20 09:40:00",
- "actual_weight": 30030,
- "liquid_weight": 29850
}, - "truck_body_type": "Graneleiro",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Rodoviário",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "contract_number": "CT-2024-001",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "nf_amount": 152340.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "123456",
- "nf_origin": "PR",
- "nf_amount": 152340.5,
- "nf_origin_city": "Cascavel"
}
], - "complete_analysis": true,
- "sample_classification": {
- "sample_number": "00123",
- "status": 1,
- "status_label": "Aprovado",
- "disapproval_type": null,
- "variables": [
- {
- "name": "Umidade",
- "integration_name": "umidade",
- "value": 13.5,
- "formatted_value": 13.5
}, - {
- "name": "Tipo de grão",
- "integration_name": "tipo_grao",
- "value": "2",
- "formatted_value": "Duro"
}
]
}, - "test_unload": false,
- "created_at": "2024-03-19T14:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T12:45:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Trigo",
- "product_code": "TRG-001",
- "product_unit": "kg",
- "quantity": 30000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 09:45:00"
}, - {
- "process_number": 124,
- "identifier": "UNLOAD-124",
- "permit_identifier": null,
- "freight_orders": null,
- "license_plate": "GHI7J89",
- "vehicle_type": "truck",
- "trucks": [ ],
- "total_gross_weight": null,
- "weighings": {
- "weight_1": null,
- "weight1_at": null,
- "weight_2": null,
- "weight2_at": null,
- "actual_weight": null,
- "liquid_weight": null
}, - "truck_body_type": "Basculante",
- "driver": "Maria Santos",
- "driver_cpf": "98765432100",
- "driver_cnh": null,
- "driver_phone": "11988888888",
- "transport_modality": "Rodoviário",
- "freight_type": "fob",
- "patio": null,
- "contract_number": null,
- "provider": "Fornecedor ABC",
- "provider_document": "11222333000144",
- "carrier": "Transportadora XYZ",
- "carrier_document": "55666777000188",
- "intermediary": "Intermediário ABC",
- "shift": null,
- "scheduling": "2024-03-21T12:00:00+00:00",
- "nf_amount": 0,
- "nfs": [ ],
- "complete_analysis": false,
- "sample_classification": null,
- "test_unload": false,
- "created_at": "2024-03-20T18:30:00+00:00",
- "canceled_at": null,
- "started_at": null,
- "finished_at": null,
- "status": "pending",
- "products": [
- {
- "product_name": "Milho",
- "product_code": "MLH-001",
- "product_unit": "kg",
- "quantity": 28000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": null,
- "current_appointment_date": null
}
], - "from": 1,
- "last_page": 10,
- "links": [ ],
- "per_page": 10,
- "prev_page_url": null,
- "to": 10,
- "total": 100
}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 | string Nome do peso bruto total (PBT) cadastrado na instância (obrigatório se configurado na instância). Só é vinculado se o veículo da placa informada existir; sem o campo, usa o PBT do veículo. |
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": "Vei. 5 eix (45.000)",
- "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": 125,
- "identifier": "UNLOAD-125",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 6 eix (57.000)",
- "weighings": {
- "weight_1": null,
- "weight1_at": null,
- "weight_2": null,
- "weight2_at": null,
- "actual_weight": null,
- "liquid_weight": null
}, - "truck_body_type": "Graneleiro",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Rodoviário",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "contract_number": "CT-2024-001",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-22T11:00:00+00:00",
- "nf_amount": 152340.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "123456",
- "nf_origin": "PR",
- "nf_amount": 152340.5,
- "nf_origin_city": "Cascavel"
}
], - "complete_analysis": true,
- "sample_classification": {
- "sample_number": "00124",
- "status": null,
- "status_label": "Aguardando classificação",
- "disapproval_type": null,
- "variables": [ ]
}, - "test_unload": false,
- "created_at": "2024-03-21T13:10:00+00:00",
- "canceled_at": null,
- "started_at": null,
- "finished_at": null,
- "status": "pending",
- "products": [
- {
- "product_name": "Trigo",
- "product_code": "TRG-001",
- "product_unit": "kg",
- "quantity": 30000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": null,
- "current_appointment_date": null
}Retorna uma descarga específica pelo seu identificador.
status) e datas do processo (criação, início, finalização, cancelamento)sample_classification), quando a descarga tem análise completaidentifier de integração ou o ID numérico da descargaload_identifier da requisição| identifier required | string ID da descarga |
{- "process_number": 123,
- "identifier": "UNLOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 6 eix (57.000)",
- "weighings": {
- "weight_1": 45230,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 15200,
- "weight2_at": "2024-03-20 09:40:00",
- "actual_weight": 30030,
- "liquid_weight": 29850
}, - "truck_body_type": "Graneleiro",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Rodoviário",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "contract_number": "CT-2024-001",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "nf_amount": 152340.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "123456",
- "nf_origin": "PR",
- "nf_amount": 152340.5,
- "nf_origin_city": "Cascavel"
}
], - "complete_analysis": true,
- "sample_classification": {
- "sample_number": "00123",
- "status": 1,
- "status_label": "Aprovado",
- "disapproval_type": null,
- "variables": [
- {
- "name": "Umidade",
- "integration_name": "umidade",
- "value": 13.5,
- "formatted_value": 13.5
}, - {
- "name": "Tipo de grão",
- "integration_name": "tipo_grao",
- "value": "2",
- "formatted_value": "Duro"
}
]
}, - "test_unload": false,
- "created_at": "2024-03-19T14:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T12:45:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Trigo",
- "product_code": "TRG-001",
- "product_unit": "kg",
- "quantity": 30000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 09:45:00"
}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 | string Nome do peso bruto total (PBT) cadastrado na instância (obrigatório se configurado na instância). Só é vinculado se o veículo da placa informada existir; sem o campo, usa o PBT do veículo. |
required | Array of objects Lista de produtos |
{- "identifier": "DESC-123",
- "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": "Vei. 5 eix (45.000)",
- "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": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 6 eix (57.000)",
- "weighings": {
- "weight_1": 45230,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 15200,
- "weight2_at": "2024-03-20 09:40:00",
- "actual_weight": 30030,
- "liquid_weight": 29850
}, - "truck_body_type": "Graneleiro",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Rodoviário",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "contract_number": "CT-2024-001",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "nf_amount": 152340.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "123456",
- "nf_origin": "PR",
- "nf_amount": 152340.5,
- "nf_origin_city": "Cascavel"
}
], - "complete_analysis": true,
- "sample_classification": {
- "sample_number": "00123",
- "status": 1,
- "status_label": "Aprovado",
- "disapproval_type": null,
- "variables": [
- {
- "name": "Umidade",
- "integration_name": "umidade",
- "value": 13.5,
- "formatted_value": 13.5
}, - {
- "name": "Tipo de grão",
- "integration_name": "tipo_grao",
- "value": "2",
- "formatted_value": "Duro"
}
]
}, - "test_unload": false,
- "created_at": "2024-03-19T14:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T12:45:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Trigo",
- "product_code": "TRG-001",
- "product_unit": "kg",
- "quantity": 30000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 09:45:00"
}Cancela uma descarga existente.
canceled_at é preenchido com a data do cancelamentofinished_at também recebe a data do cancelamento.
Por isso a resposta vem com status: "finished"; use canceled_at para identificar descargas canceladasidentifier de integração ou o ID numérico da descargaunload_identifier do corpo da requisição| identifier required | string ID da descarga |
| justification required | string Justificativa do cancelamento |
{- "justification": "Veículo não compareceu"
}{- "process_number": 124,
- "identifier": "UNLOAD-124",
- "permit_identifier": null,
- "freight_orders": null,
- "license_plate": "GHI7J89",
- "vehicle_type": "truck",
- "trucks": [ ],
- "total_gross_weight": null,
- "weighings": {
- "weight_1": null,
- "weight1_at": null,
- "weight_2": null,
- "weight2_at": null,
- "actual_weight": null,
- "liquid_weight": null
}, - "truck_body_type": "Basculante",
- "driver": "Maria Santos",
- "driver_cpf": "98765432100",
- "driver_cnh": null,
- "driver_phone": "11988888888",
- "transport_modality": "Rodoviário",
- "freight_type": "fob",
- "patio": null,
- "contract_number": null,
- "provider": "Fornecedor ABC",
- "provider_document": "11222333000144",
- "carrier": "Transportadora XYZ",
- "carrier_document": "55666777000188",
- "intermediary": "Intermediário ABC",
- "shift": null,
- "scheduling": "2024-03-21T12:00:00+00:00",
- "nf_amount": 0,
- "nfs": [ ],
- "complete_analysis": false,
- "sample_classification": null,
- "test_unload": false,
- "created_at": "2024-03-20T18:30:00+00:00",
- "canceled_at": "2024-03-21T10:20:00+00:00",
- "started_at": null,
- "finished_at": "2024-03-21T10:20:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Milho",
- "product_code": "MLH-001",
- "product_unit": "kg",
- "quantity": 28000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": null,
- "current_appointment_date": null
}Exclui uma descarga existente.
identifier de integração ou o ID numérico da descargaunload_identifier do corpo da requisiçãoidentifier de uma descarga excluída não pode ser reutilizado em uma nova criação| identifier required | string ID da descarga |
| justification required | string Justificativa da exclusão |
{- "justification": "Descarga duplicada"
}{- "deleted": true
}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 as cargas finalizadas no período informado, com os mesmos dados da exportação de cargas.
Cada registro é um objeto cujas chaves são os títulos das colunas da planilha (veja o schema BiLoad).
Parâmetro period (obrigatório): 1_day, 7_day ou 30_day.
Retorna as cargas com data de finalização a partir de 00:00 (horário de Brasília) de N dias atrás.
O resultado não é paginado e vem ordenado da carga mais recente para a mais antiga.
YYYY-MM-DD HH:mm:ss, no fuso horário da instânciaSim/Não (motorista, tracking e laudo) ou SIM/NÃO (Veículo Extra)nullDepois das chaves fixas, cada registro contém, nesta ordem:
{Marcação} - {Campo}), com o valor informadoQualidade - {nome da variável}), com o valor do laudo de produção| period required | string Enum: "1_day" "7_day" "30_day" Example: period=1_day Período dos dados, contado a partir de 00:00 (horário de Brasília) de N dias atrás |
[- {
- "Finalizado/Em processo": "Finalizado",
- "Data de cancelamento": null,
- "Justificativa cancelamento": null,
- "Número": "48210",
- "Marcação atual": "Saída",
- "Marcação atual - Data": "2026-10-05 11:20:00",
- "Tipo de transporte": "Ensacado",
- "Tipo de frete": "CIF",
- "Veículo": "ABC1D23",
- "Veículo - Placas": "ABC1D23 - DEF4G56",
- "Capacidade": 32000,
- "Capacidade pallets": 28,
- "Tipo de carroceria": "Sider",
- "Motorista": "João da Silva",
- "Motorista CPF": "12345678900",
- "Motorista telefone": "11999999999",
- "Motorista possui APP GoTruck": "Sim",
- "Motorista possui integração segurança": "Sim",
- "Data última integração segurança": "2026-09-30 14:00:00",
- "Tracking ativado": "Sim",
- "Motorista fez check-in": "Sim",
- "Data chegada no cliente": null,
- "Data entrega no cliente": null,
- "Produto - COD": "FAR-001",
- "Produto - Nome": "Farinha de Trigo 25kg",
- "Produto - Unidade": "sc",
- "Produto - Qtde": 1200,
- "Outros produtos": "",
- "D.T.": "DT-9876",
- "Peso total (kg)": 30000,
- "Peso 1ª pesagem (kg)": 15200,
- "Peso 2ª pesagem (kg)": 45300,
- "Peso líquido (kg)": 30100,
- "Peso efetivo (kg)": 30000,
- "Densidade": null,
- "Laudos": "Finalizado",
- "Intermediador": null,
- "Cliente": "Panificadora XYZ",
- "Cliente CNPJ": "12345678000190",
- "Tipo laudo cliente": "Digital",
- "Transportadora": "Transportadora ABC",
- "Transportadora CNPJ": "98765432000110",
- "Agendamento": "2026-10-05 08:00:00",
- "Pátio": "Pátio 1",
- "Aderência": "Efetivado",
- "Checklist": "Aprovado",
- "1º Checklist": "Aprovado",
- "Histórico de Checklist": "1º CHK - APROVADO",
- "Turno": "Manhã",
- "Doca": "Doca 2",
- "Notas fiscais": "654321",
- "Pedidos": "PED-123",
- "Percurso": "Cascavel - Curitiba",
- "Operação": "",
- "Início do processo": "2026-10-05 08:05:00",
- "Finalização do processo": "2026-10-05 11:20:00",
- "Criado por": "Integração",
- "Criado em": "2026-10-04 16:00:00",
- "Excluído em": null,
- "Justificativa da exclusão": null,
- "Possuí laudo": "Sim",
- "Laudo - Peso": 30000,
- "Laudo - Produzido em": "2026-10-03 00:00:00",
- "Laudo - Validade": "2027-01-03 00:00:00",
- "Laudo - Nota fiscal": "654321",
- "Laudo - Lacres": "L-001 - L-002",
- "Laudo - Tipo de envase": "Sacaria",
- "Laudo - Lotes de produção": "LT-100, LT-101",
- "Laudo - Identificador de produção": "PRD-55",
- "Laudo - Estoque de produção": "Silo 3",
- "Laudo - Observações": null,
- "Laudo - Solicitante": "Maria Souza",
- "Entrada": "2026-10-05 08:05:00",
- "Saída": "2026-10-05 11:20:00",
- "Qualidade - Umidade": 13.8
}
]Retorna as descargas finalizadas no período informado, com os mesmos dados da exportação de descargas.
Cada registro é um objeto cujas chaves são os títulos das colunas da planilha (veja o schema BiUnload).
Parâmetro period (obrigatório): 1_day, 7_day ou 30_day.
Retorna as descargas com data de finalização a partir de 00:00 (horário de Brasília) de N dias atrás.
O resultado não é paginado e vem ordenado da descarga mais recente para a mais antiga.
YYYY-MM-DD HH:mm:ss, no fuso horário da instânciaSIM/NAO (Carga teste, Análise completa) ou Sim/Não (dados do motorista e tracking)nullDepois das chaves fixas, cada registro contém, nesta ordem:
{Marcação} - {Campo}), com o valor informadoAmostra - {nome da variável}), preenchida apenas em descargas com análise completaAs chaves Amostra - Número, Amostra - Situação, Amostra - Tipo de reprovação e Amostra - {variável}
são preenchidas apenas quando a descarga tem análise completa e possui amostra vinculada; caso contrário, null.
| period required | string Enum: "1_day" "7_day" "30_day" Example: period=1_day Período dos dados, contado a partir de 00:00 (horário de Brasília) de N dias atrás |
[- {
- "Finalizado/Em processo": "Finalizado",
- "Data de cancelamento": null,
- "Justificativa cancelamento": null,
- "Número": "601200",
- "Marcação atual": "Saída",
- "Marcação atual - Data": "2026-10-05 10:42:13",
- "Carga teste": "NAO",
- "Análise completa": "SIM",
- "Tipo de transporte": "Granel",
- "Tipo de frete": "CIF",
- "Veículo": "ABC1D23",
- "Veículo - Placas": "ABC1D23 - DEF4G56",
- "Capacidade": 37000,
- "Capacidade pallets": null,
- "Tipo de carroceria": "Graneleiro",
- "Motorista": "João da Silva",
- "Motorista CPF": "12345678900",
- "Motorista telefone": "11999999999",
- "Motorista possui APP GoTruck": "Sim",
- "Motorista fez check-in": "Não",
- "Tracking ativado": "Não",
- "Produto - COD": "TRG-001",
- "Produto - Nome": "Trigo",
- "Produto - Unidade": "kg",
- "Produto - Qtde.": 37000,
- "Outros produtos": "",
- "D.T.": "DT-123",
- "NF": "1234 - 1235",
- "NF - Tipo": "entrada",
- "NF - Procedência": "PR",
- "NF - Cidade de origem": "Cascavel",
- "NF - Total": 52000.5,
- "Peso total (kg)": 37000,
- "Peso 1ª pesagem (kg)": 52000,
- "Peso 2ª pesagem (kg)": 15200,
- "Peso líquido (kg)": 36800,
- "Peso efetivo (kg)": 36500,
- "Densidade": "0,780",
- "Contrato": "CONTR-123",
- "Contrato - Ano": 2026,
- "Contrato - Safra": "2025/2026",
- "Contrato - Procedência": "Cascavel (PR, Brasil)",
- "Contrato - Destino": "Moinho XYZ",
- "Contrato - Fornecedor": "Cooperativa ABC",
- "Intermediador": null,
- "Fornecedor": "Cooperativa ABC",
- "Fornecedor CNPJ": "12345678000199",
- "Transportadora": "Transportadora ABC",
- "Transportadora CNPJ": "98765432000199",
- "Classificado por": "Maria Souza",
- "Classificação": "Aprovado",
- "Tipo de reprovação": null,
- "Amostra - Número": "35568",
- "Amostra - Situação": "Aprovado",
- "Amostra - Tipo de reprovação": null,
- "Estoque": "Silo 1",
- "Agendamento": "2026-10-05 08:00:00",
- "Aderência": "Efetivado",
- "Checklist": "Aprovado",
- "1º Checklist": "Aprovado",
- "Histórico de Checklist": "1º CHK - APROVADO",
- "Turno": "Manhã",
- "Doca": "Moega 1",
- "Operação": "",
- "Início do processo": "2026-10-05 08:10:00",
- "Finalização do processo": "2026-10-05 10:42:13",
- "Criado por": "Integração",
- "Criado em": "2026-10-04 16:00:00",
- "Excluído em": null,
- "Justificativa da exclusão": null,
- "Registro de classificação": null,
- "Justificativa": null,
- "Definida por": null,
- "Entrada": "2026-10-05 08:10:00",
- "Saída": "2026-10-05 10:42:13",
- "Umidade": 13.2,
- "Amostra - Umidade": 13.5,
- "Amostra - Tipo de grão": "Duro"
}
]Retorna as produções criadas no período informado (finalizadas ou em andamento), com os mesmos dados
da exportação de produções. Cada registro é um objeto cujas chaves são os títulos das colunas da planilha
(veja o schema BiProduction); os produtos alvo ficam no array Produtos_alvo.
Parâmetro period (obrigatório): 1_day, 7_day ou 30_day.
Retorna as produções com data de criação a partir de 00:00 (horário de Brasília) de N dias atrás.
O resultado não é paginado e vem ordenado da produção mais recente para a mais antiga.
YYYY-MM-DD HH:mm:ss, no fuso horário da instâncianullMescla - {nome da variável} por variável de análise simples ou completa que possui cálculoProdutos_alvo: uma chave Produção - {nome da variável} por variável de produção| period required | string Enum: "1_day" "7_day" "30_day" Example: period=1_day Período dos dados, contado a partir de 00:00 (horário de Brasília) de N dias atrás |
[- {
- "Teste": "01234",
- "Status": "Finalizado",
- "Tempo": "2 horas depois",
- "Linha de produção": "Moinho A",
- "Extração(%)": 76.5,
- "Extração(kg)": 38250,
- "Subproduto (%)": 22.1,
- "Subproduto (kg)": 11050,
- "Excedente (%)": 1.4,
- "Excedente (kg)": 700,
- "Matéria prima": 50000,
- "Criado em": "2026-10-05 06:00:00",
- "Finalizado em": "2026-10-05 08:10:00",
- "Excluído em": null,
- "Categorias de matéria-prima da mescla": "Trigo Pão, Trigo Melhorador",
- "% da mescla de matéria-prima": "70, 30",
- "Mescla - Umidade": 13.2,
- "Produtos_alvo": [
- {
- "Produção": "05678",
- "Chance de aprovação": "Alta",
- "Produto": "Farinha Tipo 1",
- "Derivação": "Panificação",
- "Extração (%)": 76.5,
- "Extração (kg)": 38250,
- "Resultado": "Aprovado",
- "Justificativa": null,
- "Resultado alterado por": null,
- "Remanejado para": null,
- "Responsável": "Maria Souza",
- "Observações": null,
- "Produção - Glúten úmido": 28.5
}
]
}
]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 (15 itens por página, use page para navegar) de marcações com os seguintes campos:
| page | integer >= 1 Default: 1 Número da página para paginação |
{- "current_page": 1,
- "data": [
- {
- "id": 1,
- "name": "Entrada",
- "external_id": "entrada"
}, - {
- "id": 2,
- "name": "Saída",
- "external_id": "saida"
}
], - "from": 1,
- "last_page": 1,
- "links": [ ],
- "next_page_url": null,
- "per_page": 15,
- "prev_page_url": null,
- "to": 2,
- "total": 2
}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.integration_name informado, ou se ela não for de classificação, retorna erro 422| 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
}
]
}{- "integration_name": "classificacao",
- "process_started_in": "2026-10-05T13:15:00+00:00",
- "freight_identifier": "DESC-123"
}Retorna uma lista paginada dos motoristas da instância do token.
Atenção: o CPF do motorista não é retornado nesta listagem.
Enviados no parâmetro filter, como JSON (URL-encoded). Parâmetros soltos na URL são ignorados.
cpf, name, phone, cnh, gender, blockedupdated_after: motoristas atualizados a partir desta data/hora (YYYY-MM-DD HH:mm:ss, UTC)search: busca textual por nome, CPF ou telefoneGET /drivers?filter={"updated_after":"2026-10-01 00:00:00"}
Parâmetro sorting, como JSON {"campo":"asc|desc"} (apenas um campo). Ex.: sorting={"name":"asc"}.
page (padrão 1) e count (itens por página, padrão 10).
integrations traz todas as integrações de segurança do motorista, no formato do schema DriverIntegration.
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "data": [
- {
- "name": "João da Silva",
- "phone": "11999999999",
- "cnh": "01234567890",
- "birth_date": "27/05/1978",
- "gender": "male",
- "rg": "123456789",
- "issuing": "SSP",
- "uf_issuing": "PR",
- "integrations": [
- {
- "id": 3051,
- "lid": null,
- "driver_id": 812,
- "user_id": 15,
- "date": "2024-03-10T13:00:00+00:00",
- "notes": null,
- "integrated_by_mobile": false,
- "created_at": "2024-03-10T13:01:00.000000Z",
- "updated_at": "2024-03-10T13:01:00.000000Z",
- "deleted_at": null,
- "instance_id": 13,
- "fixed": null,
- "answers_given": null,
- "integrated_by_third_party": false
}
]
}, - {
- "name": "Maria Santos",
- "phone": "11988888888",
- "cnh": null,
- "birth_date": null,
- "gender": null,
- "rg": null,
- "issuing": null,
- "uf_issuing": null,
- "integrations": [ ]
}
], - "from": 1,
- "last_page": 1,
- "links": [ ],
- "next_page_url": null,
- "per_page": 10,
- "prev_page_url": null,
- "to": 2,
- "total": 2
}Retorna as integrações de segurança dos motoristas da instância do token.
A consulta é paginada (page, padrão 1, e count, padrão 10), mas a resposta é apenas o array
de integrações da página, sem current_page, total ou links. Para percorrer tudo, incremente page
até receber um array vazio.
Parâmetro filter (JSON), com comparação exata nos campos da integração (ex.: driver_id, fixed).
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
[- {
- "date": "2024-03-10T13:00:00+00:00",
- "fixed": null,
- "driver": {
- "name": "João da Silva",
- "cpf": "12345678900"
}
}
]Retorna as integrações de segurança, da instância do token, do motorista cujo nome ou CPF seja igual ao identifier.
identifier é comparado com o nome exato ou com o CPF do motoristaDriverIntegration| identifier required | string Nome exato ou CPF do motorista |
[- {
- "id": 3051,
- "lid": null,
- "driver_id": 812,
- "user_id": 15,
- "date": "2024-03-10T13:00:00+00:00",
- "notes": null,
- "integrated_by_mobile": false,
- "created_at": "2024-03-10T13:01:00.000000Z",
- "updated_at": "2024-03-10T13:01:00.000000Z",
- "deleted_at": null,
- "instance_id": 13,
- "fixed": null,
- "answers_given": null,
- "integrated_by_third_party": false
}
]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
}
]
}{- "name": "João da Silva",
- "phone": "11999999999",
- "cnh": "01234567890",
- "birth_date": "27/05/1978",
- "gender": "male",
- "rg": "123456789",
- "issuing": "SSP",
- "uf_issuing": "PR",
- "integrations": [
- {
- "id": 3051,
- "lid": null,
- "driver_id": 812,
- "user_id": 15,
- "date": "2024-03-10T13:00:00+00:00",
- "notes": null,
- "integrated_by_mobile": false,
- "created_at": "2024-03-10T13:01:00.000000Z",
- "updated_at": "2024-03-10T13:01:00.000000Z",
- "deleted_at": null,
- "instance_id": 13,
- "fixed": null,
- "answers_given": null,
- "integrated_by_third_party": false
}
]
}Retorna uma lista paginada dos chats com motoristas da instância do token. Chats do schedule-app não são incluídos.
Enviados no parâmetro filter, como JSON (URL-encoded). Parâmetros soltos na URL são ignorados.
Chaves desconhecidas dentro do JSON também são ignoradas, sem erro.
GET /driver_chats?filter={"driver_id":10,"finished":1}
id, search, driver_id, user_idcategory_id, category_code, finished_category_idfreight_id, freight_typeopened, finishedopened_with_service, opened_without_servicefinished_service, finished_without_servicepending_approvalParâmetro sorting, como JSON {"campo":"asc|desc"}. Exemplos:
sorting={"created_at":"desc"}sorting={"driver_name":"asc"}Campos: id, freight_id, freight_type, created_at, updated_at, value,
approved_value, finished_at, driver_name, user_name, category_name.
page (padrão 1) e count (itens por página, padrão 15).
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 15 Quantidade de itens por página (padrão 15 neste endpoint) |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "data": [
- {
- "id": 42,
- "number": "00042",
- "freight_id": 1001,
- "freight_type": "load",
- "freight_number": "01001",
- "for": "Carga",
- "category": {
- "id": 3,
- "name": "Atraso",
- "code": "CAT-1"
}, - "finished_category": null,
- "driver": {
- "id": 812,
- "name": "João da Silva"
}, - "assigned_to": {
- "id": 15,
- "name": "Ana Operadora"
}, - "value": 150.5,
- "approved_value": null,
- "approved_by": null,
- "approved_at": null,
- "finished_at": null,
- "created_at": "2026-10-19T13:00:00+00:00"
}
], - "from": 1,
- "last_page": 1,
- "links": [ ],
- "next_page_url": null,
- "per_page": 15,
- "prev_page_url": null,
- "to": 1,
- "total": 1
}Retorna o detalhe de um chat com motorista, incluindo o histórico de mensagens.
assigned_to é o usuário GoFusion responsável pelo atendimento (null se ninguém assumiu)| identifier required | integer ID do chat |
{- "id": 42,
- "number": "00042",
- "freight_id": 1001,
- "freight_type": "load",
- "freight_number": "01001",
- "for": "Carga",
- "category": {
- "id": 3,
- "name": "Atraso",
- "code": "CAT-1"
}, - "finished_category": null,
- "driver": {
- "id": 812,
- "name": "João da Silva"
}, - "assigned_to": {
- "id": 15,
- "name": "Ana Operadora"
}, - "value": 150.5,
- "approved_value": 140,
- "approved_by": {
- "id": 15,
- "name": "Ana Operadora"
}, - "approved_at": "2026-10-19T14:30:00+00:00",
- "finished_at": null,
- "created_at": "2026-10-19T13:00:00+00:00",
- "messages": [
- {
- "id": 901,
- "message": "Olá motorista",
- "type": "text",
- "sender_type": "user",
- "sender_id": 15,
- "read": true,
- "created_at": "2026-10-19T13:01:00+00:00"
}, - {
- "id": 902,
- "message": "Bom dia",
- "type": "text",
- "sender_type": "driver",
- "sender_id": 812,
- "read": false,
- "created_at": "2026-10-19T13:02:00+00:00"
}
]
}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 |
{- "message": "No query results for model [App\\Models\\Load]."
}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 das liberações da instância do token, de um tipo de transporte.
load_type_id (obrigatório): ID interno do tipo de transporte. Sem ele, retorna erro 422type (opcional): loads (liberações de carga) ou unloads (liberações de descarga)Subliberações não são retornadas.
Enviados no parâmetro filter, como JSON (URL-encoded):
with_finished para incluir as concluídas
ou only_finished para trazer apenas as concluídasfrom / until (YYYY-MM-DD): período pela data da liberação (from inclusivo, until exclusivo)freight_type: cif, fob ou cptproduct_ids: lista de IDs de produtoconsider_scheduled: apenas liberações com cota/volume ainda disponível, considerando o agendadosearch: busca textual (ID, pedido, identificador, usuário, cliente, fornecedor, tipo de transporte)GET /permits?load_type_id=13&type=loads&filter={"with_finished":1,"from":"2026-10-01"}
page (padrão 1) e count (itens por página, padrão 10).
| load_type_id required | integer Example: load_type_id=13 ID interno do tipo de transporte |
| type | string Enum: "loads" "unloads" Tipo da liberação |
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "data": [
- {
- "identifier": "PERMIT-456",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 10,
- "volume": 300000,
- "date": "2024-03-20T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null
}, - {
- "identifier": "PERMIT-457",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 5,
- "volume": 0,
- "date": "2024-03-21T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null
}
], - "from": 1,
- "last_page": 1,
- "links": [ ],
- "next_page_url": null,
- "per_page": 10,
- "prev_page_url": null,
- "to": 2,
- "total": 2
}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-456",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 10,
- "volume": 300000,
- "date": "2024-03-20T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null,
- "volume_scheduled": 60000,
- "volume_consumed": 30100,
- "volume_released": 300000,
- "quota_scheduled": 2,
- "quota_consumed": 1,
- "quota_released": 10
}Retorna uma liberação específica pelo seu identificador
| identifier required | string ID da liberação |
{- "identifier": "PERMIT-456",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 10,
- "volume": 300000,
- "date": "2024-03-20T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null,
- "volume_scheduled": 60000,
- "volume_consumed": 30100,
- "volume_released": 300000,
- "quota_scheduled": 2,
- "quota_consumed": 1,
- "quota_released": 10
}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-456",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 10,
- "volume": 300000,
- "date": "2024-03-20T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null,
- "volume_scheduled": 60000,
- "volume_consumed": 30100,
- "volume_released": 300000,
- "quota_scheduled": 2,
- "quota_consumed": 1,
- "quota_released": 10
}Suspende uma liberação existente
| identifier required | string ID da liberação |
{- "identifier": "PERMIT-456",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 10,
- "volume": 300000,
- "date": "2024-03-20T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null,
- "volume_scheduled": 60000,
- "volume_consumed": 30100,
- "volume_released": 300000,
- "quota_scheduled": 2,
- "quota_consumed": 1,
- "quota_released": 10
}Reativa uma liberação suspensa
| identifier required | string ID da liberação |
{- "identifier": "PERMIT-456",
- "transport_modality": "Ensacado",
- "freight_type": "cif",
- "customer": "Panificadora XYZ",
- "carrier_document": null,
- "customer_document": "12345678000190",
- "provider": null,
- "provider_document": null,
- "quota": 10,
- "volume": 300000,
- "date": "2024-03-20T03:00:00+00:00",
- "is_suspended": false,
- "suspended_message": null,
- "volume_scheduled": 60000,
- "volume_consumed": 30100,
- "volume_released": 300000,
- "quota_scheduled": 2,
- "quota_consumed": 1,
- "quota_released": 10
}Retorna as cargas associadas a uma liberação (ou subliberação) específica, paginadas.
Aceita os mesmos parâmetros filter, sorting, page e count de GET /loads.
Se nenhuma liberação tiver o identificador informado, a lista vem vazia (não há erro 404).
| identifier required | string Identificador de integração da liberação |
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "first_page_url": "string",
- "from": 1,
- "last_page": 10,
- "last_page_url": "string",
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "next_page_url": "string",
- "path": "string",
- "per_page": 10,
- "prev_page_url": "string",
- "to": 10,
- "total": 100,
- "data": [
- {
- "process_number": 48210,
- "identifier": "LOAD-123",
- "permit_identifier": [
- "PERMIT-456"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "truck_body_type": "Sider",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 5 eix (45.000)",
- "weighings": {
- "weight_1": 15200,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 45300,
- "weight2_at": "2024-03-20 10:50:00",
- "actual_weight": 30100,
- "liquid_weight": 30100
}, - "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Ensacado",
- "transport_document": "DT-9876",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "customer": "Panificadora XYZ",
- "customer_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": null,
- "created_at": "2024-03-19T14:00:00+00:00",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T14:20:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Farinha de Trigo 25kg",
- "product_code": "FAR-001",
- "product_unit": "sc",
- "quantity": 1200
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 11:20:00",
- "orders": [
- {
- "number": "PED-123",
- "expected_at": "2024-03-21T03:00:00.000000Z",
- "identifier": "SO-789"
}
]
}
]
}Retorna as descargas associadas a uma liberação (ou subliberação) específica, paginadas.
Aceita os mesmos parâmetros filter, sorting, page e count de GET /unloads.
Se nenhuma liberação tiver o identificador informado, a lista vem vazia (não há erro 404).
Descargas com análise completa retornam o campo sample_classification (veja o schema UnloadSampleClassification).
| identifier required | string Identificador de integração da liberação |
| page | integer >= 1 Default: 1 Número da página para paginação |
| count | integer >= 1 Default: 10 Quantidade de itens por página |
| filter | string Example: filter={"is_full_analysis":1} Filtros em formato JSON (URL-encoded). Ex.: |
| sorting | string Example: sorting={"created_at":"desc"} Ordenação em formato JSON |
{- "current_page": 1,
- "first_page_url": "string",
- "from": 1,
- "last_page": 10,
- "last_page_url": "string",
- "links": [
- {
- "url": "string",
- "label": "string",
- "active": true
}
], - "next_page_url": "string",
- "path": "string",
- "per_page": 10,
- "prev_page_url": "string",
- "to": 10,
- "total": 100,
- "data": [
- {
- "process_number": 123,
- "identifier": "UNLOAD-123",
- "permit_identifier": [
- "PERMIT-123"
], - "freight_orders": null,
- "license_plate": "ABC1D23",
- "vehicle_type": "truck",
- "trucks": {
- "plate_0": "ABC1D23",
- "plate_1": "DEF4G56"
}, - "total_gross_weight": "Vei. 6 eix (57.000)",
- "weighings": {
- "weight_1": 45230,
- "weight1_at": "2024-03-20 08:15:00",
- "weight_2": 15200,
- "weight2_at": "2024-03-20 09:40:00",
- "actual_weight": 30030,
- "liquid_weight": 29850
}, - "truck_body_type": "Graneleiro",
- "driver": "João da Silva",
- "driver_cpf": "12345678900",
- "driver_cnh": "01234567890",
- "driver_phone": "11999999999",
- "transport_modality": "Rodoviário",
- "freight_type": "cif",
- "patio": "Pátio 1",
- "contract_number": "CT-2024-001",
- "provider": "Fornecedor XYZ",
- "provider_document": "12345678000190",
- "carrier": "Transportadora ABC",
- "carrier_document": "98765432000110",
- "intermediary": "Intermediário XYZ",
- "shift": "Manhã",
- "scheduling": "2024-03-20T11:00:00+00:00",
- "nf_amount": 152340.5,
- "nfs": [
- {
- "nf_type": "entrada",
- "nf_number": "123456",
- "nf_origin": "PR",
- "nf_amount": 152340.5,
- "nf_origin_city": "Cascavel"
}
], - "complete_analysis": true,
- "sample_classification": {
- "sample_number": "00123",
- "status": 1,
- "status_label": "Aprovado",
- "disapproval_type": null,
- "variables": [
- {
- "name": "Umidade",
- "integration_name": "umidade",
- "value": 13.5,
- "formatted_value": 13.5
}
]
}, - "test_unload": false,
- "created_at": "2024-03-19T14:00:00+00:00",
- "canceled_at": null,
- "started_at": "2024-03-20T11:05:00+00:00",
- "finished_at": "2024-03-20T12:45:00+00:00",
- "status": "finished",
- "products": [
- {
- "product_name": "Trigo",
- "product_code": "TRG-001",
- "product_unit": "kg",
- "quantity": 30000
}
], - "partial_freight": false,
- "partial_freight_approved": false,
- "current_appointment": "Saída",
- "current_appointment_date": "2024-03-20 09:45:00"
}
]
}