Flows API Documentation (1.0)
Download OpenAPI specification:Download
List Orders of an Operation
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
query Parameters
object Parameter for controlling pagination of the result set. |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": [
- {
- "canceled_at": null,
- "deleted_at": null,
- "external_reference_code": "ECT1",
- "extra_fields": { },
- "finished_at": null,
- "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "observations": "Observations...",
- "processes": [
- {
- "id": 1,
- "reference_code": "23PRC0000001"
}, - {
- "id": 2,
- "reference_code": "23PRC0000002"
}
], - "purchase_order": {
- "id": 123,
- "items": [
- {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}
], - "necessity_date": "2023-10-29T00:00:00Z",
- "supplier_expected_readiness_at": "2023-10-29T00:00:00Z",
- "supplier_order_accepted_at": "2023-10-29T00:00:00Z",
- "supplier_order_sent_at": "2023-10-29T00:00:00Z",
- "supplier_readiness_at": "2023-10-29T00:00:00Z",
- "type": "INDIRECT"
}, - "reference_code": "23ORC0000001",
- "sales_order": null,
- "subsidiary": {
- "id": 1,
- "name": "Subsidiary"
}, - "type": "PURCHASE"
}
]
}
Create an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Request Body schema: application/json
The attributes to Create an Order
object | |||||||||||||||
|
Responses
Request samples
- Payload
{- "params": {
- "external_reference_code": "ECT1",
- "handlers": [ ],
- "observations": "Observations...",
- "purchase_order": {
- "items": [
- {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "item_foreign_operators": [ ],
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "customs_estimated_release_at": null,
- "order_currency_code": "USD",
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "product_id": 1,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_requested_at": null,
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}
], - "necessity_date": "2023-10-29T00:00:00Z",
- "supplier_expected_readiness_at": "2023-10-29T00:00:00Z",
- "supplier_order_accepted_at": "2023-10-29T00:00:00Z",
- "supplier_order_sent_at": "2023-10-29T00:00:00Z",
- "supplier_readiness_at": "2023-10-29T00:00:00Z",
- "type": "INDIRECT"
}, - "reference_code": "23PRC0000001"
}
}
Response samples
- 201
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "canceled_at": null,
- "deleted_at": null,
- "external_reference_code": "ECT1",
- "extra_fields": { },
- "finished_at": null,
- "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "observations": "Observations...",
- "processes": [
- {
- "id": 1,
- "reference_code": "23PRC0000001"
}, - {
- "id": 2,
- "reference_code": "23PRC0000002"
}
], - "purchase_order": {
- "id": 123,
- "items": [
- {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}
], - "necessity_date": "2023-10-29T00:00:00Z",
- "supplier_expected_readiness_at": "2023-10-29T00:00:00Z",
- "supplier_order_accepted_at": "2023-10-29T00:00:00Z",
- "supplier_order_sent_at": "2023-10-29T00:00:00Z",
- "supplier_readiness_at": "2023-10-29T00:00:00Z",
- "type": "INDIRECT"
}, - "reference_code": "23ORC0000001",
- "sales_order": null,
- "subsidiary": {
- "id": 1,
- "name": "Subsidiary"
}, - "type": "PURCHASE"
}
}
Delete an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Order ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "deleted_at": "2019-08-24T14:15:22Z",
- "id": 0
}
}
Get an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Order ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "canceled_at": null,
- "deleted_at": null,
- "external_reference_code": "ECT1",
- "extra_fields": { },
- "finished_at": null,
- "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "observations": "Observations...",
- "processes": [
- {
- "id": 1,
- "reference_code": "23PRC0000001"
}, - {
- "id": 2,
- "reference_code": "23PRC0000002"
}
], - "purchase_order": {
- "id": 123,
- "items": [
- {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}
], - "necessity_date": "2023-10-29T00:00:00Z",
- "supplier_expected_readiness_at": "2023-10-29T00:00:00Z",
- "supplier_order_accepted_at": "2023-10-29T00:00:00Z",
- "supplier_order_sent_at": "2023-10-29T00:00:00Z",
- "supplier_readiness_at": "2023-10-29T00:00:00Z",
- "type": "INDIRECT"
}, - "reference_code": "23ORC0000001",
- "sales_order": null,
- "subsidiary": {
- "id": 1,
- "name": "Subsidiary"
}, - "type": "PURCHASE"
}
}
Update an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Order ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Request Body schema: application/json
The attributes to Update an Order
object | |||||||||||||
|
Responses
Request samples
- Payload
{- "params": {
- "external_reference_code": "",
- "handlers": [ ],
- "observations": "Observations...",
- "purchase_order": {
- "items": [
- {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 1,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "item_foreign_operators": [ ],
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "customs_estimated_release_at": null,
- "order_currency_code": "USD",
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "product_id": 1,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_requested_at": null,
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}
], - "necessity_date": "2023-10-29T00:00:00Z",
- "supplier_expected_readiness_at": "2023-10-29T00:00:00Z",
- "supplier_order_accepted_at": "2023-10-29T00:00:00Z",
- "supplier_order_sent_at": "2023-10-29T00:00:00Z",
- "supplier_readiness_at": "2023-10-29T00:00:00Z",
- "type": "INDIRECT"
}
}
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "canceled_at": null,
- "deleted_at": null,
- "external_reference_code": "ECT1",
- "extra_fields": { },
- "finished_at": null,
- "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "observations": "Observations...",
- "processes": [
- {
- "id": 1,
- "reference_code": "23PRC0000001"
}, - {
- "id": 2,
- "reference_code": "23PRC0000002"
}
], - "purchase_order": {
- "id": 123,
- "items": [
- {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}
], - "necessity_date": "2023-10-29T00:00:00Z",
- "supplier_expected_readiness_at": "2023-10-29T00:00:00Z",
- "supplier_order_accepted_at": "2023-10-29T00:00:00Z",
- "supplier_order_sent_at": "2023-10-29T00:00:00Z",
- "supplier_readiness_at": "2023-10-29T00:00:00Z",
- "type": "INDIRECT"
}, - "reference_code": "23ORC0000001",
- "sales_order": null,
- "subsidiary": {
- "id": 1,
- "name": "Subsidiary"
}, - "type": "PURCHASE"
}
}
Cancel an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Order ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "canceled_at": "2019-08-24T14:15:22Z",
- "id": 0
}
}
Finish an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Order ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "finished_at": "2019-08-24T14:15:22Z",
- "id": 0
}
}
Uncancel an Order
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Order ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "canceled_at": "2019-08-24T14:15:22Z",
- "id": 0
}
}
List Processes of an Operation
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
query Parameters
object Parameter for controlling pagination of the result set. |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": [
- {
- "alert_level": "NORMAL",
- "audit_items": [
- {
- "audit_item": {
- "id": 123,
- "name": "Audit Item",
- "show_observations_when": "ALWAYS"
}, - "checked": true,
- "id": 123,
- "observations": "Erro de digitação na especificação do produto"
}
], - "canceled_at": null,
- "deleted_at": null,
- "extra_fields": { },
- "finished_at": null,
- "foreign_trade_shipment": {
- "transportables": [
- {
- "cargo": null,
- "container": {
- "actual_return_empty_container_at": "2023-01-01T00:00:00Z",
- "code": "MSDU5953962",
- "demurrage_costs": "10.10",
- "demurrage_empty_return_deadline": "2023-01-02T00:00:00Z",
- "demurrage_exceeding_days": 1,
- "demurrage_free_time_start_at": "2023-01-01T00:00:00Z",
- "demurrage_reference_date": "2023-01-01T00:00:00Z",
- "estimated_return_empty_container_at": "2023-01-01T00:00:00Z",
- "events": [
- {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNXIS",
- "status": "Empty to Shipper",
- "transport": null,
- "voyage": "CNXISTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export received at CY",
- "transport": null,
- "voyage": "CNNGBTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export Loaded on Vessel",
- "transport": "9484455",
- "voyage": "CNNGBUX333A"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Discharged",
- "transport": "9484455",
- "voyage": "DOCAUUX338R"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Loaded",
- "transport": "9299537",
- "voyage": "DOCAUUA338A"
}
], - "gross_weight_kg": "100.10",
- "hidden": false,
- "id": 123,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": "100.123",
- "observations": "observation example",
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "20_FOOT",
- "tare_weight_kg": "100",
- "tracking_api": true,
- "tracking_manual": true,
- "type": "DRY"
}, - "id": 123,
- "type": "CONTAINER"
}
], - "eta": "2023-10-29T00:00:00Z",
- "days_left_in_warehouse": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_licenses": [
- {
- "number": "2300000000"
}
], - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "id": 123,
- "last_tracking_at": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "items": [
- {
- "id": 123,
- "net_weight_kg": "0.5",
- "purchase_order_item": {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}, - "quantity": "10",
- "sales_order_item": null
}
], - "type": "MARITIME_TRANSPORT",
- "invoices": [
- {
- "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "emitted_at": "2023-11-04T10:00:00Z",
- "id": 1,
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "id": 1,
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "shipment_quantity": 5,
- "total_amount": "61.70",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001",
- "total_amount": "1234.56",
- "updated_at": "2023-11-04T14:30:00Z"
}
], - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "inserted_at": "2023-01-01T00:00:00Z",
- "international_transport_legs": [
- {
- "arrival_place": "DEHAM",
- "ata": "2024-07-05T21:00:00Z",
- "atd": "2024-06-20T13:00:00Z",
- "departure_place": "SGSIN",
- "eta": "2024-07-05T20:00:00Z",
- "etd": "2024-06-20T12:00:00Z",
- "modal_type": "MARITIME",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage": "VY7531"
}
], - "automatic_tracking_enabled": true,
- "ata": "2023-10-29T00:00:00Z",
- "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_declaration": {
- "number": "2300000000"
}, - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "hbl": null,
- "id": 123,
- "loading_port": {
- "country": {
- "code": "CN",
- "iso3": "CHN",
- "name": "China"
}, - "id": 1,
- "latitude": -121.544,
- "longitude": 29.868,
- "name": "Ningbo",
- "unlocode": "CNNGB"
}, - "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "tracking_discharge_port": "BRRIG",
- "tracking_key": "BILL_OF_LADING",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "valid_keys": [
- "BILL_OF_LADING"
], - "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "CNNGBTRB"
}, - "ce_mercante_data": {
- "bl": null,
- "cargo_description": null,
- "cargo_manifests": [
- {
- "discharge_port_terminal": null,
- "discharge_port_unlocode": "BRSSZ",
- "loading_port_terminal": null,
- "loading_port_unlocode": "BRRIO",
- "manifest_number": "1234"
}
], - "cargo_presence_at": null,
- "cargo_status": null,
- "consignee_document": null,
- "consignee_extra_info": null,
- "customs_place": null,
- "destination_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "di_number": null,
- "dta_number": null,
- "final_destination_arrival_at": null,
- "freight_basic_cost": null,
- "freight_currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_payment_type": null,
- "freight_total_cost": null,
- "gross_weight_kg": null,
- "id": 1,
- "issued_at": null,
- "last_updated_at": null,
- "notes": null,
- "number": "123",
- "origin_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "shipping_agency": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "status_response": "PENDING"
}, - "status_response": "FOUND",
- "warehouse_free_time_days": 1,
- "road_transport_shipment": null,
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "atd": "2023-10-29T00:00:00Z",
- "delivered_at": "2023-10-29T00:00:00Z",
- "last_updated_at": "2023-10-29T00:00:00Z",
- "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "national_road_carrier": {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}, - "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [
- {
- "driver": {
- "birthday": "1990-01-15",
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "cpf": "12345678901",
- "id": 123,
- "license_category": "A",
- "license_expiration_date": "2024-12-31",
- "license_number": "DL12345",
- "name": "John Doe",
- "official_document": "ABC123XYZ"
}, - "driver_name": "John Doe",
- "id": 1,
- "phases": [
- {
- "departure_at": "2023-10-29T00:00:00Z",
- "estimated_realized_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "realized_at": "2023-10-29T00:00:00Z",
- "route_point": {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
}
], - "position": 123,
- "trailer": null,
- "trailer_plate": "XYZ456",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "id": 123
}, - "id": 123,
- "type": "container"
}
], - "vehicle": {
- "id": 123,
- "is_refrigerated": true,
- "plate": "ABC123",
- "speed_limit_dry": 100,
- "speed_limit_wet": 80,
- "tare_weight_kg": "5000.0",
- "temperature_max": 10,
- "temperature_min": -20,
- "tracker_brand": "SASCAR",
- "tracker_id": 456,
- "type": "TRUCK"
}, - "vehicle_plate": "ABC123"
}
]
}
], - "air_transport_shipment": null,
- "total_net_weight": "1.7",
- "ce_mercante_number": null,
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2,
- "id": 1,
- "total_demurrage_costs": "0"
}, - "empty_return_date": "2023-10-29T00:00:00Z",
- "international_freight": {
- "booking": "123456789",
- "booking_discharge_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "booking_eta": "2023-10-29T00:00:00Z",
- "booking_etd": "2023-10-29T00:00:00Z",
- "booking_loading_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_loading_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_cost_collect": "1250.00",
- "freight_cost_prepaid": "1250.00",
- "freight_cost_road": null,
- "freight_cost_total": "2500.00",
- "freight_forwarder": "ABC Shipping",
- "id": 1,
- "planned_boarding_date": "2023-10-29T00:00:00Z",
- "quotation_number": "Q123456",
- "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "type": "PREPAID",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "123A"
}, - "days_in_warehouse": 2,
- "total_gross_weight": "2.0",
- "shipment_export_declarations": [
- {
- "comments": "",
- "export_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND"
}, - "id": 1
}
]
}, - "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "orders": [
- {
- "id": 1,
- "reference_code": "REF-1"
}, - {
- "id": 2,
- "reference_code": "REF-2"
}
], - "reference_code": "23PRC0000001"
}
]
}
Create a Process
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Request Body schema: application/json
The attributes to Create a Process
object | |||||||||||||
|
Responses
Request samples
- Payload
{- "params": {
- "alert_level": "NORMAL",
- "extra_fields": { },
- "foreign_trade_shipment": {
- "air_transport_shipment": null,
- "ata": "2023-10-29T00:00:00Z",
- "atd": "2023-10-29T00:00:00Z",
- "automatic_tracking_enabled": true,
- "delivered_at": "2023-10-29T00:00:00Z",
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2
}, - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "eta": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "international_freight": {
- "currency_code": "USD",
- "freight_cost_prepaid": "1250.00",
- "freight_forwarder": "ABC Shipping",
- "quotation_number": "Q123456",
- "type": "PREPAID"
}, - "invoices": [
- {
- "currency_code": "USD",
- "emitted_at": "2023-11-04T10:00:00Z",
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001"
}
], - "items": [ ],
- "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port_id": 2,
- "hbl": null,
- "loading_port_id": 1,
- "sealine_id": null,
- "tracking_discharge_port": "BRRIG",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "vessel_id": null,
- "voyage_number": "CNNGBTRB"
}, - "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route_id": 1,
- "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [ ]
}
], - "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "road_transport_shipment": null,
- "route_id": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_updated_at": "2023-11-04T15:45:00Z"
}
}
], - "shipment_import_licenses": [
- {
- "comments": "",
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "IN_ANALYSIS",
- "status_updated_at": "2023-11-04T15:45:00Z"
}
}
], - "total_gross_weight": "1.5",
- "total_net_weight": "1.2",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "gross_weight_kg": 100,
- "hidden": false,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": 100,
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "HC_40",
- "tare_weight_kg": 100,
- "tracking_manual": true,
- "type": "DRY"
}
}
], - "warehouse_free_time_days": 1
}, - "handlers": [ ],
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "order_ids": [ ],
- "reference_code": "23PRC0000001"
}
}
Response samples
- 201
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "alert_level": "NORMAL",
- "audit_items": [
- {
- "audit_item": {
- "id": 123,
- "name": "Audit Item",
- "show_observations_when": "ALWAYS"
}, - "checked": true,
- "id": 123,
- "observations": "Erro de digitação na especificação do produto"
}
], - "canceled_at": null,
- "deleted_at": null,
- "extra_fields": { },
- "finished_at": null,
- "foreign_trade_shipment": {
- "transportables": [
- {
- "cargo": null,
- "container": {
- "actual_return_empty_container_at": "2023-01-01T00:00:00Z",
- "code": "MSDU5953962",
- "demurrage_costs": "10.10",
- "demurrage_empty_return_deadline": "2023-01-02T00:00:00Z",
- "demurrage_exceeding_days": 1,
- "demurrage_free_time_start_at": "2023-01-01T00:00:00Z",
- "demurrage_reference_date": "2023-01-01T00:00:00Z",
- "estimated_return_empty_container_at": "2023-01-01T00:00:00Z",
- "events": [
- {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNXIS",
- "status": "Empty to Shipper",
- "transport": null,
- "voyage": "CNXISTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export received at CY",
- "transport": null,
- "voyage": "CNNGBTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export Loaded on Vessel",
- "transport": "9484455",
- "voyage": "CNNGBUX333A"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Discharged",
- "transport": "9484455",
- "voyage": "DOCAUUX338R"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Loaded",
- "transport": "9299537",
- "voyage": "DOCAUUA338A"
}
], - "gross_weight_kg": "100.10",
- "hidden": false,
- "id": 123,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": "100.123",
- "observations": "observation example",
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "20_FOOT",
- "tare_weight_kg": "100",
- "tracking_api": true,
- "tracking_manual": true,
- "type": "DRY"
}, - "id": 123,
- "type": "CONTAINER"
}
], - "eta": "2023-10-29T00:00:00Z",
- "days_left_in_warehouse": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_licenses": [
- {
- "number": "2300000000"
}
], - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "id": 123,
- "last_tracking_at": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "items": [
- {
- "id": 123,
- "net_weight_kg": "0.5",
- "purchase_order_item": {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}, - "quantity": "10",
- "sales_order_item": null
}
], - "type": "MARITIME_TRANSPORT",
- "invoices": [
- {
- "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "emitted_at": "2023-11-04T10:00:00Z",
- "id": 1,
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "id": 1,
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "shipment_quantity": 5,
- "total_amount": "61.70",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001",
- "total_amount": "1234.56",
- "updated_at": "2023-11-04T14:30:00Z"
}
], - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "inserted_at": "2023-01-01T00:00:00Z",
- "international_transport_legs": [
- {
- "arrival_place": "DEHAM",
- "ata": "2024-07-05T21:00:00Z",
- "atd": "2024-06-20T13:00:00Z",
- "departure_place": "SGSIN",
- "eta": "2024-07-05T20:00:00Z",
- "etd": "2024-06-20T12:00:00Z",
- "modal_type": "MARITIME",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage": "VY7531"
}
], - "automatic_tracking_enabled": true,
- "ata": "2023-10-29T00:00:00Z",
- "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_declaration": {
- "number": "2300000000"
}, - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "hbl": null,
- "id": 123,
- "loading_port": {
- "country": {
- "code": "CN",
- "iso3": "CHN",
- "name": "China"
}, - "id": 1,
- "latitude": -121.544,
- "longitude": 29.868,
- "name": "Ningbo",
- "unlocode": "CNNGB"
}, - "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "tracking_discharge_port": "BRRIG",
- "tracking_key": "BILL_OF_LADING",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "valid_keys": [
- "BILL_OF_LADING"
], - "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "CNNGBTRB"
}, - "ce_mercante_data": {
- "bl": null,
- "cargo_description": null,
- "cargo_manifests": [
- {
- "discharge_port_terminal": null,
- "discharge_port_unlocode": "BRSSZ",
- "loading_port_terminal": null,
- "loading_port_unlocode": "BRRIO",
- "manifest_number": "1234"
}
], - "cargo_presence_at": null,
- "cargo_status": null,
- "consignee_document": null,
- "consignee_extra_info": null,
- "customs_place": null,
- "destination_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "di_number": null,
- "dta_number": null,
- "final_destination_arrival_at": null,
- "freight_basic_cost": null,
- "freight_currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_payment_type": null,
- "freight_total_cost": null,
- "gross_weight_kg": null,
- "id": 1,
- "issued_at": null,
- "last_updated_at": null,
- "notes": null,
- "number": "123",
- "origin_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "shipping_agency": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "status_response": "PENDING"
}, - "status_response": "FOUND",
- "warehouse_free_time_days": 1,
- "road_transport_shipment": null,
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "atd": "2023-10-29T00:00:00Z",
- "delivered_at": "2023-10-29T00:00:00Z",
- "last_updated_at": "2023-10-29T00:00:00Z",
- "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "national_road_carrier": {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}, - "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [
- {
- "driver": {
- "birthday": "1990-01-15",
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "cpf": "12345678901",
- "id": 123,
- "license_category": "A",
- "license_expiration_date": "2024-12-31",
- "license_number": "DL12345",
- "name": "John Doe",
- "official_document": "ABC123XYZ"
}, - "driver_name": "John Doe",
- "id": 1,
- "phases": [
- {
- "departure_at": "2023-10-29T00:00:00Z",
- "estimated_realized_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "realized_at": "2023-10-29T00:00:00Z",
- "route_point": {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
}
], - "position": 123,
- "trailer": null,
- "trailer_plate": "XYZ456",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "id": 123
}, - "id": 123,
- "type": "container"
}
], - "vehicle": {
- "id": 123,
- "is_refrigerated": true,
- "plate": "ABC123",
- "speed_limit_dry": 100,
- "speed_limit_wet": 80,
- "tare_weight_kg": "5000.0",
- "temperature_max": 10,
- "temperature_min": -20,
- "tracker_brand": "SASCAR",
- "tracker_id": 456,
- "type": "TRUCK"
}, - "vehicle_plate": "ABC123"
}
]
}
], - "air_transport_shipment": null,
- "total_net_weight": "1.7",
- "ce_mercante_number": null,
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2,
- "id": 1,
- "total_demurrage_costs": "0"
}, - "empty_return_date": "2023-10-29T00:00:00Z",
- "international_freight": {
- "booking": "123456789",
- "booking_discharge_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "booking_eta": "2023-10-29T00:00:00Z",
- "booking_etd": "2023-10-29T00:00:00Z",
- "booking_loading_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_loading_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_cost_collect": "1250.00",
- "freight_cost_prepaid": "1250.00",
- "freight_cost_road": null,
- "freight_cost_total": "2500.00",
- "freight_forwarder": "ABC Shipping",
- "id": 1,
- "planned_boarding_date": "2023-10-29T00:00:00Z",
- "quotation_number": "Q123456",
- "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "type": "PREPAID",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "123A"
}, - "days_in_warehouse": 2,
- "total_gross_weight": "2.0",
- "shipment_export_declarations": [
- {
- "comments": "",
- "export_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND"
}, - "id": 1
}
]
}, - "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "orders": [
- {
- "id": 1,
- "reference_code": "REF-1"
}, - {
- "id": 2,
- "reference_code": "REF-2"
}
], - "reference_code": "23PRC0000001"
}
}
Upsert a list of Processes using reference_code as the key. Create new entries if they don't exist, and update existing entries if they do.
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Request Body schema: application/json
The attributes to Create/Update a Processes
Array of objects | |||||||||||||
Array
|
Responses
Request samples
- Payload
{- "params": [
- {
- "alert_level": "NORMAL",
- "extra_fields": { },
- "foreign_trade_shipment": {
- "air_transport_shipment": null,
- "ata": "2023-10-29T00:00:00Z",
- "atd": "2023-10-29T00:00:00Z",
- "automatic_tracking_enabled": true,
- "delivered_at": "2023-10-29T00:00:00Z",
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2
}, - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "eta": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "international_freight": {
- "currency_code": "USD",
- "freight_cost_prepaid": "1250.00",
- "freight_forwarder": "ABC Shipping",
- "quotation_number": "Q123456",
- "type": "PREPAID"
}, - "invoices": [
- {
- "currency_code": "USD",
- "emitted_at": "2023-11-04T10:00:00Z",
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001"
}
], - "items": [ ],
- "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port_id": 2,
- "hbl": null,
- "loading_port_id": 1,
- "sealine_id": null,
- "tracking_discharge_port": "BRRIG",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "vessel_id": null,
- "voyage_number": "CNNGBTRB"
}, - "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route_id": 1,
- "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [ ]
}
], - "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "road_transport_shipment": null,
- "route_id": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_updated_at": "2023-11-04T15:45:00Z"
}
}
], - "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "IN_ANALYSIS",
- "status_updated_at": "2023-11-04T15:45:00Z"
}
}
], - "total_gross_weight": "1.5",
- "total_net_weight": "1.2",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "gross_weight_kg": 100,
- "hidden": false,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": 100,
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "HC_40",
- "tare_weight_kg": 100,
- "tracking_manual": true,
- "type": "DRY"
}
}
], - "warehouse_free_time_days": 1
}, - "handlers": [ ],
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "order_ids": [ ],
- "reference_code": "YOUR_REFERENCE_CODE"
}
]
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": [
- {
- "alert_level": "NORMAL",
- "audit_items": [
- {
- "audit_item": {
- "id": 123,
- "name": "Audit Item",
- "show_observations_when": "ALWAYS"
}, - "checked": true,
- "id": 123,
- "observations": "Erro de digitação na especificação do produto"
}
], - "canceled_at": null,
- "deleted_at": null,
- "extra_fields": { },
- "finished_at": null,
- "foreign_trade_shipment": {
- "transportables": [
- {
- "cargo": null,
- "container": {
- "actual_return_empty_container_at": "2023-01-01T00:00:00Z",
- "code": "MSDU5953962",
- "demurrage_costs": "10.10",
- "demurrage_empty_return_deadline": "2023-01-02T00:00:00Z",
- "demurrage_exceeding_days": 1,
- "demurrage_free_time_start_at": "2023-01-01T00:00:00Z",
- "demurrage_reference_date": "2023-01-01T00:00:00Z",
- "estimated_return_empty_container_at": "2023-01-01T00:00:00Z",
- "events": [
- {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNXIS",
- "status": "Empty to Shipper",
- "transport": null,
- "voyage": "CNXISTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export received at CY",
- "transport": null,
- "voyage": "CNNGBTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export Loaded on Vessel",
- "transport": "9484455",
- "voyage": "CNNGBUX333A"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Discharged",
- "transport": "9484455",
- "voyage": "DOCAUUX338R"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Loaded",
- "transport": "9299537",
- "voyage": "DOCAUUA338A"
}
], - "gross_weight_kg": "100.10",
- "hidden": false,
- "id": 123,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": "100.123",
- "observations": "observation example",
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "20_FOOT",
- "tare_weight_kg": "100",
- "tracking_api": true,
- "tracking_manual": true,
- "type": "DRY"
}, - "id": 123,
- "type": "CONTAINER"
}
], - "eta": "2023-10-29T00:00:00Z",
- "days_left_in_warehouse": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_licenses": [
- {
- "number": "2300000000"
}
], - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "id": 123,
- "last_tracking_at": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "items": [
- {
- "id": 123,
- "net_weight_kg": "0.5",
- "purchase_order_item": {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}, - "quantity": "10",
- "sales_order_item": null
}
], - "type": "MARITIME_TRANSPORT",
- "invoices": [
- {
- "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "emitted_at": "2023-11-04T10:00:00Z",
- "id": 1,
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "id": 1,
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "shipment_quantity": 5,
- "total_amount": "61.70",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001",
- "total_amount": "1234.56",
- "updated_at": "2023-11-04T14:30:00Z"
}
], - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "inserted_at": "2023-01-01T00:00:00Z",
- "international_transport_legs": [
- {
- "arrival_place": "DEHAM",
- "ata": "2024-07-05T21:00:00Z",
- "atd": "2024-06-20T13:00:00Z",
- "departure_place": "SGSIN",
- "eta": "2024-07-05T20:00:00Z",
- "etd": "2024-06-20T12:00:00Z",
- "modal_type": "MARITIME",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage": "VY7531"
}
], - "automatic_tracking_enabled": true,
- "ata": "2023-10-29T00:00:00Z",
- "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_declaration": {
- "number": "2300000000"
}, - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "hbl": null,
- "id": 123,
- "loading_port": {
- "country": {
- "code": "CN",
- "iso3": "CHN",
- "name": "China"
}, - "id": 1,
- "latitude": -121.544,
- "longitude": 29.868,
- "name": "Ningbo",
- "unlocode": "CNNGB"
}, - "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "tracking_discharge_port": "BRRIG",
- "tracking_key": "BILL_OF_LADING",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "valid_keys": [
- "BILL_OF_LADING"
], - "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "CNNGBTRB"
}, - "ce_mercante_data": {
- "bl": null,
- "cargo_description": null,
- "cargo_manifests": [
- {
- "discharge_port_terminal": null,
- "discharge_port_unlocode": "BRSSZ",
- "loading_port_terminal": null,
- "loading_port_unlocode": "BRRIO",
- "manifest_number": "1234"
}
], - "cargo_presence_at": null,
- "cargo_status": null,
- "consignee_document": null,
- "consignee_extra_info": null,
- "customs_place": null,
- "destination_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "di_number": null,
- "dta_number": null,
- "final_destination_arrival_at": null,
- "freight_basic_cost": null,
- "freight_currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_payment_type": null,
- "freight_total_cost": null,
- "gross_weight_kg": null,
- "id": 1,
- "issued_at": null,
- "last_updated_at": null,
- "notes": null,
- "number": "123",
- "origin_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "shipping_agency": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "status_response": "PENDING"
}, - "status_response": "FOUND",
- "warehouse_free_time_days": 1,
- "road_transport_shipment": null,
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "atd": "2023-10-29T00:00:00Z",
- "delivered_at": "2023-10-29T00:00:00Z",
- "last_updated_at": "2023-10-29T00:00:00Z",
- "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "national_road_carrier": {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}, - "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [
- {
- "driver": {
- "birthday": "1990-01-15",
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "cpf": "12345678901",
- "id": 123,
- "license_category": "A",
- "license_expiration_date": "2024-12-31",
- "license_number": "DL12345",
- "name": "John Doe",
- "official_document": "ABC123XYZ"
}, - "driver_name": "John Doe",
- "id": 1,
- "phases": [
- {
- "departure_at": "2023-10-29T00:00:00Z",
- "estimated_realized_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "realized_at": "2023-10-29T00:00:00Z",
- "route_point": {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
}
], - "position": 123,
- "trailer": null,
- "trailer_plate": "XYZ456",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "id": 123
}, - "id": 123,
- "type": "container"
}
], - "vehicle": {
- "id": 123,
- "is_refrigerated": true,
- "plate": "ABC123",
- "speed_limit_dry": 100,
- "speed_limit_wet": 80,
- "tare_weight_kg": "5000.0",
- "temperature_max": 10,
- "temperature_min": -20,
- "tracker_brand": "SASCAR",
- "tracker_id": 456,
- "type": "TRUCK"
}, - "vehicle_plate": "ABC123"
}
]
}
], - "air_transport_shipment": null,
- "total_net_weight": "1.7",
- "ce_mercante_number": null,
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2,
- "id": 1,
- "total_demurrage_costs": "0"
}, - "empty_return_date": "2023-10-29T00:00:00Z",
- "international_freight": {
- "booking": "123456789",
- "booking_discharge_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "booking_eta": "2023-10-29T00:00:00Z",
- "booking_etd": "2023-10-29T00:00:00Z",
- "booking_loading_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_loading_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_cost_collect": "1250.00",
- "freight_cost_prepaid": "1250.00",
- "freight_cost_road": null,
- "freight_cost_total": "2500.00",
- "freight_forwarder": "ABC Shipping",
- "id": 1,
- "planned_boarding_date": "2023-10-29T00:00:00Z",
- "quotation_number": "Q123456",
- "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "type": "PREPAID",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "123A"
}, - "days_in_warehouse": 2,
- "total_gross_weight": "2.0",
- "shipment_export_declarations": [
- {
- "comments": "",
- "export_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND"
}, - "id": 1
}
]
}, - "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "orders": [
- {
- "id": 1,
- "reference_code": "REF-1"
}, - {
- "id": 2,
- "reference_code": "REF-2"
}
], - "reference_code": "23PRC0000001"
}
]
}
Delete a Process
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Process ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "deleted_at": "2019-08-24T14:15:22Z",
- "id": 0
}
}
Get a Process
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Process ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Responses
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "alert_level": "NORMAL",
- "audit_items": [
- {
- "audit_item": {
- "id": 123,
- "name": "Audit Item",
- "show_observations_when": "ALWAYS"
}, - "checked": true,
- "id": 123,
- "observations": "Erro de digitação na especificação do produto"
}
], - "canceled_at": null,
- "deleted_at": null,
- "extra_fields": { },
- "finished_at": null,
- "foreign_trade_shipment": {
- "transportables": [
- {
- "cargo": null,
- "container": {
- "actual_return_empty_container_at": "2023-01-01T00:00:00Z",
- "code": "MSDU5953962",
- "demurrage_costs": "10.10",
- "demurrage_empty_return_deadline": "2023-01-02T00:00:00Z",
- "demurrage_exceeding_days": 1,
- "demurrage_free_time_start_at": "2023-01-01T00:00:00Z",
- "demurrage_reference_date": "2023-01-01T00:00:00Z",
- "estimated_return_empty_container_at": "2023-01-01T00:00:00Z",
- "events": [
- {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNXIS",
- "status": "Empty to Shipper",
- "transport": null,
- "voyage": "CNXISTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export received at CY",
- "transport": null,
- "voyage": "CNNGBTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export Loaded on Vessel",
- "transport": "9484455",
- "voyage": "CNNGBUX333A"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Discharged",
- "transport": "9484455",
- "voyage": "DOCAUUX338R"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Loaded",
- "transport": "9299537",
- "voyage": "DOCAUUA338A"
}
], - "gross_weight_kg": "100.10",
- "hidden": false,
- "id": 123,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": "100.123",
- "observations": "observation example",
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "20_FOOT",
- "tare_weight_kg": "100",
- "tracking_api": true,
- "tracking_manual": true,
- "type": "DRY"
}, - "id": 123,
- "type": "CONTAINER"
}
], - "eta": "2023-10-29T00:00:00Z",
- "days_left_in_warehouse": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_licenses": [
- {
- "number": "2300000000"
}
], - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "id": 123,
- "last_tracking_at": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "items": [
- {
- "id": 123,
- "net_weight_kg": "0.5",
- "purchase_order_item": {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}, - "quantity": "10",
- "sales_order_item": null
}
], - "type": "MARITIME_TRANSPORT",
- "invoices": [
- {
- "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "emitted_at": "2023-11-04T10:00:00Z",
- "id": 1,
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "id": 1,
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "shipment_quantity": 5,
- "total_amount": "61.70",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001",
- "total_amount": "1234.56",
- "updated_at": "2023-11-04T14:30:00Z"
}
], - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "inserted_at": "2023-01-01T00:00:00Z",
- "international_transport_legs": [
- {
- "arrival_place": "DEHAM",
- "ata": "2024-07-05T21:00:00Z",
- "atd": "2024-06-20T13:00:00Z",
- "departure_place": "SGSIN",
- "eta": "2024-07-05T20:00:00Z",
- "etd": "2024-06-20T12:00:00Z",
- "modal_type": "MARITIME",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage": "VY7531"
}
], - "automatic_tracking_enabled": true,
- "ata": "2023-10-29T00:00:00Z",
- "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_declaration": {
- "number": "2300000000"
}, - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "hbl": null,
- "id": 123,
- "loading_port": {
- "country": {
- "code": "CN",
- "iso3": "CHN",
- "name": "China"
}, - "id": 1,
- "latitude": -121.544,
- "longitude": 29.868,
- "name": "Ningbo",
- "unlocode": "CNNGB"
}, - "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "tracking_discharge_port": "BRRIG",
- "tracking_key": "BILL_OF_LADING",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "valid_keys": [
- "BILL_OF_LADING"
], - "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "CNNGBTRB"
}, - "ce_mercante_data": {
- "bl": null,
- "cargo_description": null,
- "cargo_manifests": [
- {
- "discharge_port_terminal": null,
- "discharge_port_unlocode": "BRSSZ",
- "loading_port_terminal": null,
- "loading_port_unlocode": "BRRIO",
- "manifest_number": "1234"
}
], - "cargo_presence_at": null,
- "cargo_status": null,
- "consignee_document": null,
- "consignee_extra_info": null,
- "customs_place": null,
- "destination_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "di_number": null,
- "dta_number": null,
- "final_destination_arrival_at": null,
- "freight_basic_cost": null,
- "freight_currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_payment_type": null,
- "freight_total_cost": null,
- "gross_weight_kg": null,
- "id": 1,
- "issued_at": null,
- "last_updated_at": null,
- "notes": null,
- "number": "123",
- "origin_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "shipping_agency": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "status_response": "PENDING"
}, - "status_response": "FOUND",
- "warehouse_free_time_days": 1,
- "road_transport_shipment": null,
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "atd": "2023-10-29T00:00:00Z",
- "delivered_at": "2023-10-29T00:00:00Z",
- "last_updated_at": "2023-10-29T00:00:00Z",
- "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "national_road_carrier": {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}, - "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [
- {
- "driver": {
- "birthday": "1990-01-15",
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "cpf": "12345678901",
- "id": 123,
- "license_category": "A",
- "license_expiration_date": "2024-12-31",
- "license_number": "DL12345",
- "name": "John Doe",
- "official_document": "ABC123XYZ"
}, - "driver_name": "John Doe",
- "id": 1,
- "phases": [
- {
- "departure_at": "2023-10-29T00:00:00Z",
- "estimated_realized_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "realized_at": "2023-10-29T00:00:00Z",
- "route_point": {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
}
], - "position": 123,
- "trailer": null,
- "trailer_plate": "XYZ456",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "id": 123
}, - "id": 123,
- "type": "container"
}
], - "vehicle": {
- "id": 123,
- "is_refrigerated": true,
- "plate": "ABC123",
- "speed_limit_dry": 100,
- "speed_limit_wet": 80,
- "tare_weight_kg": "5000.0",
- "temperature_max": 10,
- "temperature_min": -20,
- "tracker_brand": "SASCAR",
- "tracker_id": 456,
- "type": "TRUCK"
}, - "vehicle_plate": "ABC123"
}
]
}
], - "air_transport_shipment": null,
- "total_net_weight": "1.7",
- "ce_mercante_number": null,
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2,
- "id": 1,
- "total_demurrage_costs": "0"
}, - "empty_return_date": "2023-10-29T00:00:00Z",
- "international_freight": {
- "booking": "123456789",
- "booking_discharge_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "booking_eta": "2023-10-29T00:00:00Z",
- "booking_etd": "2023-10-29T00:00:00Z",
- "booking_loading_airport": {
- "city_iata_code": "SAO",
- "iata_code": "GRU",
- "icao_code": "SBGR",
- "id": 2736,
- "latitude": -22.816668,
- "longitude": -45.216667,
- "name": "Aeroporto Internacional Guarulhos",
- "timezone": "America/Sao_Paulo"
}, - "booking_loading_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_cost_collect": "1250.00",
- "freight_cost_prepaid": "1250.00",
- "freight_cost_road": null,
- "freight_cost_total": "2500.00",
- "freight_forwarder": "ABC Shipping",
- "id": 1,
- "planned_boarding_date": "2023-10-29T00:00:00Z",
- "quotation_number": "Q123456",
- "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "type": "PREPAID",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "123A"
}, - "days_in_warehouse": 2,
- "total_gross_weight": "2.0",
- "shipment_export_declarations": [
- {
- "comments": "",
- "export_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND"
}, - "id": 1
}
]
}, - "handlers": [
- {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}
], - "id": 123,
- "inserted_at": "2023-10-29T00:00:00Z",
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "orders": [
- {
- "id": 1,
- "reference_code": "REF-1"
}, - {
- "id": 2,
- "reference_code": "REF-2"
}
], - "reference_code": "23PRC0000001"
}
}
Update a Process
Authorizations:
path Parameters
operation_id required | integer Example: 1 Operation ID |
id required | integer Example: 100 Process ID |
header Parameters
locale | string Default: en-US Enum: "pt-BR" "en-US" Example: pt-BR The 'locale' parameter allows specify the desired language for translating messages returned by the Server. |
Request Body schema: application/json
The attributes to Update a Process
object | |||||||||||
|
Responses
Request samples
- Payload
{- "params": {
- "alert_level": "NORMAL",
- "extra_fields": { },
- "foreign_trade_shipment": {
- "air_transport_shipment": null,
- "ata": "2023-10-29T00:00:00Z",
- "atd": "2023-10-29T00:00:00Z",
- "automatic_tracking_enabled": true,
- "delivered_at": "2023-10-29T00:00:00Z",
- "demurrage": {
- "daily_rate_usd": "10.5",
- "free_time": 2
}, - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "eta": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "international_freight": {
- "currency_code": "USD",
- "freight_cost_prepaid": "1250.00",
- "freight_forwarder": "ABC Shipping",
- "quotation_number": "Q123456",
- "type": "PREPAID"
}, - "invoices": [
- {
- "currency_code": "USD",
- "emitted_at": "2023-11-04T10:00:00Z",
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001"
}
], - "items": [ ],
- "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port_id": 2,
- "hbl": null,
- "loading_port_id": 1,
- "sealine_id": null,
- "tracking_discharge_port": "BRRIG",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "vessel_id": null,
- "voyage_number": "CNNGBTRB"
}, - "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route_id": 1,
- "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [ ]
}
], - "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "road_transport_shipment": null,
- "route_id": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_updated_at": "2023-11-04T15:45:00Z"
}
}
], - "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "IN_ANALYSIS",
- "status_updated_at": "2023-11-04T15:45:00Z"
}
}
], - "total_gross_weight": "1.5",
- "total_net_weight": "1.2",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "gross_weight_kg": 100,
- "hidden": false,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": 100,
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "HC_40",
- "tare_weight_kg": 100,
- "tracking_manual": true,
- "type": "DRY"
}
}
], - "warehouse_free_time_days": 1
}, - "handlers": [ ],
- "lead_time_datetime_reference": "2023-10-29T00:00:00Z",
- "order_ids": [ ]
}
}
Response samples
- 200
- 400
- 401
- 404
- 422
- 500
{- "data": {
- "alert_level": "NORMAL",
- "audit_items": [
- {
- "audit_item": {
- "id": 123,
- "name": "Audit Item",
- "show_observations_when": "ALWAYS"
}, - "checked": true,
- "id": 123,
- "observations": "Erro de digitação na especificação do produto"
}
], - "canceled_at": null,
- "deleted_at": null,
- "extra_fields": { },
- "finished_at": null,
- "foreign_trade_shipment": {
- "transportables": [
- {
- "cargo": null,
- "container": {
- "actual_return_empty_container_at": "2023-01-01T00:00:00Z",
- "code": "MSDU5953962",
- "demurrage_costs": "10.10",
- "demurrage_empty_return_deadline": "2023-01-02T00:00:00Z",
- "demurrage_exceeding_days": 1,
- "demurrage_free_time_start_at": "2023-01-01T00:00:00Z",
- "demurrage_reference_date": "2023-01-01T00:00:00Z",
- "estimated_return_empty_container_at": "2023-01-01T00:00:00Z",
- "events": [
- {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNXIS",
- "status": "Empty to Shipper",
- "transport": null,
- "voyage": "CNXISTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export received at CY",
- "transport": null,
- "voyage": "CNNGBTRB"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "CNNGB",
- "status": "Export Loaded on Vessel",
- "transport": "9484455",
- "voyage": "CNNGBUX333A"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Discharged",
- "transport": "9484455",
- "voyage": "DOCAUUX338R"
}, - {
- "datetime": "2023-01-01T00:00:00Z",
- "estimated": false,
- "place": "DOCAU",
- "status": "Full Transshipment Loaded",
- "transport": "9299537",
- "voyage": "DOCAUUA338A"
}
], - "gross_weight_kg": "100.10",
- "hidden": false,
- "id": 123,
- "invoice_number": "99999",
- "load_type": "GENERAL_CARGO",
- "max_weight_kg": "100.123",
- "observations": "observation example",
- "seal_code": "SEAL_CODE",
- "secondary_seal_code": "SECONDARY_SEAL_CODE",
- "size_foot_type": "20_FOOT",
- "tare_weight_kg": "100",
- "tracking_api": true,
- "tracking_manual": true,
- "type": "DRY"
}, - "id": 123,
- "type": "CONTAINER"
}
], - "eta": "2023-10-29T00:00:00Z",
- "days_left_in_warehouse": 1,
- "shipment_import_declarations": [
- {
- "comments": "",
- "id": 1,
- "import_declaration": {
- "channel": "GREEN",
- "customs_cleared_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_licenses": [
- {
- "number": "2300000000"
}
], - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "id": 123,
- "last_tracking_at": "2023-10-29T00:00:00Z",
- "etd": "2023-10-29T00:00:00Z",
- "items": [
- {
- "id": 123,
- "net_weight_kg": "0.5",
- "purchase_order_item": {
- "net_weight_kg": null,
- "assessment_sotd": null,
- "id": 123,
- "factory_delivery_lead_time": null,
- "shipment_estimated_arrival_at": null,
- "shipment_equipment_type": null,
- "quantity": "20.0",
- "order_request_number": null,
- "order_adjusted_modal_type": null,
- "measurement_unit_sap": null,
- "customs_estimated_register_at": null,
- "shipment_planned_arrival_at": null,
- "supplier_estimated_ready_at": null,
- "shipment_containers_quantity": null,
- "planning_request_shipping_at": null,
- "factory_delivery_at": null,
- "supplier_confirmation_at": null,
- "sap_by_factor": null,
- "supplier_sent_at": null,
- "product": {
- "code": "REF1234",
- "description": "Descrição Produto",
- "id": 2
}, - "customs_estimated_release_at": null,
- "planning_shipping_at": null,
- "supplier_planned_ready_at": null,
- "shipment_estimated_boarding_at": null,
- "order_item_reference": null,
- "customs_release_lead_time": null,
- "order_value": null,
- "factory_planned_delivery_at": null,
- "supplier_ready_lead_time_days": null,
- "balance": "10.0",
- "shipment_boarding_lead_time": null,
- "customs_register_lead_time": null,
- "order_modal_type_sap": null,
- "line_reference": "1.1",
- "supplier_ready_at": null,
- "order_currency": {
- "code": "USD",
- "name": "US Dollar"
}, - "order_requested_at": null,
- "balance_shipped": "10.0",
- "factory_estimated_delivery_at": null,
- "supplier_calculated_ready_at": null,
- "shipment_planned_boarding_at": null,
- "item_status": null,
- "shipment_transport_lead_time": null,
- "line_number": 1
}, - "quantity": "10",
- "sales_order_item": null
}
], - "type": "MARITIME_TRANSPORT",
- "invoices": [
- {
- "currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "emitted_at": "2023-11-04T10:00:00Z",
- "id": 1,
- "incoterm": "CPT",
- "items": [
- {
- "batch_number": "BATCH-6789",
- "id": 1,
- "product_description": "Product A",
- "product_sku": "SKU-12345",
- "quantity": "5",
- "shipment_quantity": 5,
- "total_amount": "61.70",
- "unitary_amount": "12.34"
}
], - "number": "INV-2023-001",
- "total_amount": "1234.56",
- "updated_at": "2023-11-04T14:30:00Z"
}
], - "departed_from_warehouse_at": "2023-10-29T00:00:00Z",
- "received_in_warehouse_at": "2023-10-29T00:00:00Z",
- "inserted_at": "2023-01-01T00:00:00Z",
- "international_transport_legs": [
- {
- "arrival_place": "DEHAM",
- "ata": "2024-07-05T21:00:00Z",
- "atd": "2024-06-20T13:00:00Z",
- "departure_place": "SGSIN",
- "eta": "2024-07-05T20:00:00Z",
- "etd": "2024-06-20T12:00:00Z",
- "modal_type": "MARITIME",
- "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage": "VY7531"
}
], - "automatic_tracking_enabled": true,
- "ata": "2023-10-29T00:00:00Z",
- "shipment_import_licenses": [
- {
- "comments": "",
- "id": 1,
- "import_license": {
- "approved_at": "2023-11-05T09:15:00Z",
- "extra": "{}",
- "id": 1,
- "import_declaration": {
- "number": "2300000000"
}, - "inserted_at": "2023-11-04T09:30:00Z",
- "last_updated_at": "2023-11-04T14:30:00Z",
- "number": "2212614470",
- "registered_at": "2023-11-04T10:00:00Z",
- "status": "CLEARED",
- "status_response": "FOUND",
- "status_updated_at": "2023-11-04T15:45:00Z"
}, - "status": "AUTHORIZED"
}
], - "maritime_transport_shipment": {
- "bl": "MEDUGB760924",
- "booking": null,
- "discharge_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "hbl": null,
- "id": 123,
- "loading_port": {
- "country": {
- "code": "CN",
- "iso3": "CHN",
- "name": "China"
}, - "id": 1,
- "latitude": -121.544,
- "longitude": 29.868,
- "name": "Ningbo",
- "unlocode": "CNNGB"
}, - "sealine": {
- "id": 1,
- "nickname": "Maersk",
- "scac": "MAEU"
}, - "tracking_discharge_port": "BRRIG",
- "tracking_key": "BILL_OF_LADING",
- "tracking_loading_port": "CNNGB",
- "type": "FCL",
- "valid_keys": [
- "BILL_OF_LADING"
], - "vessel": {
- "ais_class": "A",
- "callsign": "VROL8",
- "id": 123,
- "imo_number": "9743265",
- "mmsi_number": "538006242",
- "name": "NEW ORLEANS",
- "ship_sub_type": "AGGREGATES_CARRIER",
- "ship_type": "ANTI_POLLUTION"
}, - "voyage_number": "CNNGBTRB"
}, - "ce_mercante_data": {
- "bl": null,
- "cargo_description": null,
- "cargo_manifests": [
- {
- "discharge_port_terminal": null,
- "discharge_port_unlocode": "BRSSZ",
- "loading_port_terminal": null,
- "loading_port_unlocode": "BRRIO",
- "manifest_number": "1234"
}
], - "cargo_presence_at": null,
- "cargo_status": null,
- "consignee_document": null,
- "consignee_extra_info": null,
- "customs_place": null,
- "destination_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "di_number": null,
- "dta_number": null,
- "final_destination_arrival_at": null,
- "freight_basic_cost": null,
- "freight_currency": {
- "code": "USD",
- "name": "US Dollar",
- "symbol": "$"
}, - "freight_payment_type": null,
- "freight_total_cost": null,
- "gross_weight_kg": null,
- "id": 1,
- "issued_at": null,
- "last_updated_at": null,
- "notes": null,
- "number": "123",
- "origin_port": {
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "id": 123,
- "latitude": -23.951,
- "longitude": -46.354,
- "name": "Santos",
- "unlocode": "BRSSZ"
}, - "shipping_agency": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "status_response": "PENDING"
}, - "status_response": "FOUND",
- "warehouse_free_time_days": 1,
- "road_transport_shipment": null,
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "atd": "2023-10-29T00:00:00Z",
- "delivered_at": "2023-10-29T00:00:00Z",
- "last_updated_at": "2023-10-29T00:00:00Z",
- "national_road_transports": [
- {
- "collection_scheduled_at": "2023-10-29T00:00:00Z",
- "delivery_planned_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "is_transport_type_dta": true,
- "leg_slug": "Porto>Armazem",
- "load_type": "GENERAL_CARGO",
- "national_road_carrier": {
- "actor": {
- "cnae": "",
- "document_type": "CNPJ",
- "id": 1,
- "logo_url": null,
- "nickname": "Nickname",
- "official_document": "11111111111111",
- "official_name": "Actor",
- "opening_date": "2023-01-01",
- "roles": [
- "CARGO_OWNER"
], - "trading_name": "Trading Name",
- "verified": true
}, - "business_unit": "Business Unit",
- "id": 1,
- "operation_handler": {
- "id": 1,
- "role": "CARGO_OWNER"
}, - "reference": "Handler Reference",
- "secondary_reference": "Handler Secondary Reference"
}, - "quantity_pallets": 100,
- "released_for_transport_at": "2023-10-29T00:00:00Z",
- "road_transport_type": "LTL",
- "route": {
- "active": true,
- "id": 123,
- "name": "Route A",
- "points": [
- {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
]
}, - "transport_completed_at": "2023-10-29T00:00:00Z",
- "transport_features": [
- "REFRIGERATED",
- "HAZARDOUS_PRODUCTS"
], - "trips": [
- {
- "driver": {
- "birthday": "1990-01-15",
- "country": {
- "code": "BR",
- "iso3": "BRA",
- "name": "Brazil"
}, - "cpf": "12345678901",
- "id": 123,
- "license_category": "A",
- "license_expiration_date": "2024-12-31",
- "license_number": "DL12345",
- "name": "John Doe",
- "official_document": "ABC123XYZ"
}, - "driver_name": "John Doe",
- "id": 1,
- "phases": [
- {
- "departure_at": "2023-10-29T00:00:00Z",
- "estimated_realized_at": "2023-10-29T00:00:00Z",
- "id": 1,
- "realized_at": "2023-10-29T00:00:00Z",
- "route_point": {
- "id": 123,
- "position": 1,
- "route_type": "LOADING"
}
}
], - "position": 123,
- "trailer": null,
- "trailer_plate": "XYZ456",
- "transportables": [
- {
- "cargo": null,
- "container": {
- "code": "MSDU5953962",
- "id": 123
}, - "id": 123,
- "type": "container"
}
], - "vehicle":