Air/LCL/LTL Shipments¶
Payload Format¶
Use this payload structure for Air, OceanLCL, and TruckLTL shipments.
Endpoint¶
POST {base url}/api/v1/orders/submit-order/
Requirements¶
-
At least one
order_itemsentry -
Prior setup with ALPHA is required: these transportation modes need a configured lane (supplier/consignee, item master, packaging, and mode enabled for the lane). See Submit Order for prerequisites.
Tip
First-time integrator? Start with Example Request near the bottom, then come back to the field tables as needed.
Shipment Content Types¶
For Air, OceanLCL, and TruckLTL, cargo is submitted as order_items.
|
Type |
What you provide |
What ALPHA does |
Best for |
|---|---|---|---|
|
|
SKU + quantity (raw units) |
Builds pallet/loading plan automatically |
Non-containerized lanes (Air/LCL/LTL) |
Request Body Fields¶
|
Field |
Type |
Is Required |
Notes |
|---|---|---|---|
|
|
String |
Yes |
Supplier name. Must match exactly as configured in the ALPHA Portal (case-sensitive). |
|
|
String |
Yes |
Consignee name. Must match exactly as configured in the ALPHA Portal (case-sensitive). |
|
|
String |
Yes |
Your order reference (e.g. PO number). Must be unique per order. |
|
|
String |
Yes |
Transport type. Use |
|
|
String |
No |
Allowed options normal (default) — may be consolidated with other shipments. dangerous_goods — must not be consolidated with other shipments. |
|
|
Array of Objects |
Yes |
List of items being ordered. See Order Item Fields below. |
|
|
String |
No |
Customer-related metadata. |
|
|
Boolean |
No |
Whether to send the packing instructions by email. Defaults to true. |
|
|
Array of Strings (Email addresses) |
No |
A list of email addresses to send the packing instructions (To). |
|
|
Array of Strings (Email addresses) |
No |
A list of email addresses to send the packing instructions (CC). |
Order Item Fields¶
Order items represent raw, unpacked product units with no packaging. The optimizer groups these units into pallets and shipment loading automatically.
Use when: Products ship as loose units and you want automatic packing/arrangement.
Includes: item (product/SKU), quantity, and optional metadata
(purchase_order, line_item_number, notes).
Summary: Raw units requiring automatic packing.
Important
This flow requires valid item master data (SKU dimensions/weights) for submitted item codes on the configured supplier/consignee lane.
|
Field |
Type |
Is Required |
Notes |
|---|---|---|---|
|
|
String |
Yes |
The item code that will be ordered. |
|
|
Number
≥ 0.01
|
Yes |
Decimals are allowed for weight and volume quantities; normalized when the order is saved. |
|
|
String |
No |
Purchase order reference. |
|
|
String |
No |
Line item number. |
|
|
String |
No |
Notes or comments. |
Accepted Transportation Modes¶
|
Mode |
Use case |
|---|---|
|
|
Air freight shipments |
|
|
Ocean less-than-container-load shipments |
|
|
Truck less-than-truckload shipments |
Example Request¶
Minimal valid request
{
"reference": "REF-AIR-MIN-001",
"supplier_name": "Supplier",
"consignee_name": "Consignee",
"transportation_mode": "Air",
"order_items": [
{
"item": "PRD-001",
"quantity": 10
}
]
}
Full example
{
"reference": "REF-AIR-FULL-001",
"supplier_name": "Supplier",
"consignee_name": "Consignee",
"transportation_mode": "Air",
"shipment_type": "normal",
"customer_notes": "Urgent, deliver by end of week",
"send_email": false,
"extra_recipients": ["email1@example.com", "email2@example.com"],
"extra_cc_recipients": ["email3@example.com", "email4@example.com"],
"order_items": [
{
"item": "PRD-001",
"quantity": 2,
"purchase_order": "PO-001",
"line_item_number": "1",
"notes": "Handle with care"
}
]
}
Notes: order_items are required. Do not include order_containers in the
request. PI is generated after creation and emailed when send_email is
true (default).