Sankhya icon

Sankhya

Integração completa com o ERP Sankhya — REST v1/v2 e Gateway

Actions137

Logística (REST) → Incluir Ordem de Carga

AI-generated

Summary

Create a new freight order (ordem de carga) in the Sankhya system by submitting logistics data as a JSON object.

Inputs

  • Dados (JSON) (required) — A JSON object representing the freight order to include. It must include required fields such as codEmp (company code), dtSaida (departure date), and optionally codMot (driver code), codTransp (carrier code), and observacao (observation). The JSON can also represent data for creating a driver, creating a carrier, or adding an order to the freight order, depending on context.

Output shape

a JSON object representing the created freight order or the API response from the Sankhya REST endpoint.

The operation calls the REST POST endpoint /v1/logistica/ordens-carga with the provided JSON data. The response may include success confirmation, IDs, or error details as returned by the Sankhya API. Errors on HTTP or business logic are thrown as exceptions.

Links

Discussion