Shipping Ports
Retrieve shipping port reference data for container and international shipments.
Endpoints Overview
| Method | Endpoint | Description |
|---|---|---|
GET |
/v1/shipping-ports |
Get a page of shipping ports |
GET |
/v1/shipping-ports/{shippingPortId} |
Get shipping port details |
Get Shipping Ports Page
Retrieve a paginated list of shipping ports.
Endpoint: GET /v1/shipping-ports
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
PageIndex |
integer | No | Page number (default: 1) |
PageSize |
integer | No | Items per page (default: 25, max: 500) |
SearchText |
string | No | Filter by port name, code, or country |
Request Example
curl -X GET "https://api.consignlyhq.com/v1/shipping-ports?PageIndex=1&PageSize=50&SearchText=Auckland" \
-H "Authorization: Bearer ACCESS_TOKEN"
Response Example
{
"index": 1,
"total": 3,
"shippingPorts": [
{
"id": "550e8400-e29b-41d4-a716-446655449400",
"code": "NZAKL",
"name": "Auckland",
"country": "New Zealand"
},
{
"id": "550e8400-e29b-41d4-a716-446655449401",
"code": "NZTRG",
"name": "Tauranga",
"country": "New Zealand"
},
{
"id": "550e8400-e29b-41d4-a716-446655449402",
"code": "NZWLG",
"name": "Wellington",
"country": "New Zealand"
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
id |
uuid | Shipping port ID |
code |
string | UN/LOCODE port code |
name |
string | Port name |
country |
string | Country name |
Get Shipping Port Details
Retrieve details for a specific shipping port.
Endpoint: GET /v1/shipping-ports/{shippingPortId}
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
shippingPortId |
uuid | Yes | The shipping port ID |
Request Example
curl -X GET "https://api.consignlyhq.com/v1/shipping-ports/550e8400-e29b-41d4-a716-446655449400" \
-H "Authorization: Bearer ACCESS_TOKEN"
Response Example
{
"id": "550e8400-e29b-41d4-a716-446655449400",
"code": "NZAKL",
"name": "Auckland",
"country": "New Zealand"
}
Response Fields
| Field | Type | Description |
|---|---|---|
id |
uuid | Shipping port ID |
code |
string | Shipping port code |
name |
string | Shipping port name |
country |
string | Shipping port country |
Using Shipping Port Codes
Shipping port codes are used in consignment imports for container shipments:
{
"loadShippingPortCode": "CNSHA",
"dischargeShippingPortCode": "NZAKL",
"containerNumber": "MSKU1234567",
...
}
Common Port Codes
| Code | Port | Country |
|---|---|---|
NZAKL |
Auckland | New Zealand |
NZTRG |
Tauranga | New Zealand |
NZWLG |
Wellington | New Zealand |
NZCHC |
Christchurch | New Zealand |
AUSYD |
Sydney | Australia |
AUMEL |
Melbourne | Australia |
AUBNE |
Brisbane | Australia |
CNSHA |
Shanghai | China |
CNNGB |
Ningbo | China |
SGSIN |
Singapore | Singapore |
Related Endpoints
- Consignment Import - Create consignments with port information
- Consignments - View port details on consignments