LTL
Create Load API allows authorized users to create a new load for tracking. It is ideally called after the carrier has accepted the tender for the load. This example is for LTL loads.
⚠️ Important Update:
The Pallets structure is being deprecated. Please transition to for product details. Learn more
This API is called after the carrier has accepted the tender for the load. FourKites does not limit customers from creating more than one load with the same load number or PRO number -- creation of more than one load with the same load or PRO number will cause duplication of loads, which will end up affecting the tracking performance. Customers are advised to handle this on their side.
If you receive a server error (5xx error code), please try again a few times. It's best to wait a little longer between each retry attempt. Try at least 3-5 times before giving up, as many server issues resolve themselves quickly.
Supporting Document: Create Shipment
Rate Limit
1 request per second
Format Supported
JSON
Authenticated Resource
API Key
For more information on Authentication, click here.
FourKites does not limit customers from creating more than one load with the same load number or PRO number. When making POST requests to create a load, please ensure that it is the first time that specific load number has been used to create a load. If multiple POST requests are made with the same data, FourKites will generate duplicate loads
import http.client
import json
conn = http.client.HTTPSConnection("api.fourkites.com")
payload = json.dumps({
"additionalData": {
"modeDetails": {
"shipperModes": "LTL"
}
},
"load": {
"carrier": "cc79",
"shipperAccountNumber": "tXXXXX234",
"haulType": [
"outbound_load"
],
"simultaneousTrackingReferenceNumber": "11223344",
"simultaneousTrackingSequenceNumber": 1,
"masterSequenceNumber": "1",
"masterReferenceNumber": "83456",
"loadNumber": "LTLTestNew",
"priority": "normal",
"proNumber": "1234354",
"referenceNumbers": [
"AAA:12343,345435",
"BBB:53422,556633",
"CCC:TY6573",
"M3234",
"SCAC:XXXX"
],
"relayLoad": False,
"stops": [
{
"addressLine1": "500 West Madison Street",
"addressLine2": "Suite 3300",
"city": "Chicago",
"country": "US",
"name": "FourKites HQ",
"postalCode": "60611",
"referenceNumbers": [
"SSSS:XXX",
"EEE:12345",
"654321",
"XX:E432133"
],
"sequence": 1,
"state": "LA",
"stopReferenceId": "X12",
"stopType": "pickup",
"unloadTimeInMinutes": 120,
"timeInUtc": True,
"customer": {
"id": None,
"poNumbers": [
"111222"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "545454"
}
},
"earliestAppointmentTime": "2024-04-21T19:16:15",
"latestAppointmentTime": "2024-04-21T19:16:15",
"earliestWantTime": "2024-04-21T16:31:29",
"latestWantTime": "2024-04-21T16:31:29",
"pallets": [
{
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "22EE",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "33CC",
"weight": "36.800"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "LTL Freight Item",
"productDescription": "LTL freight shipment item",
"productCategory": "General Freight",
"quantity": 10,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25,
"currencyCode": "USD",
"extendedCost": 250,
"freightCost": 15,
"bestBeforeDate": "2024-04-25T00:00:00Z",
"additionalCharges": 10,
"tariffCost": 5,
"fourKitesCalculatedTariffCost": 5,
"totalLandedCost": 265,
"countryOfOrigin": "US",
"harmonizedSystemCode": "4819100000",
"commodityTypeCode": "GENERAL_FREIGHT",
"htsusCode": "4819100000",
"orderNumber": "111222",
"deliveryNumber": "DN-X12",
"handlingUnitId": "22EE",
"barcode": "22EE",
"containerType": "carton",
"gtin": "00012345678905",
"customerPartNumber": "22EE",
"supplierPartNumber": "22EE",
"manufacturerPartNumber": "MFG-22EE",
"itemNumber": "ITM-22EE",
"productUpc": "012345678905",
"deliveryReferences": [
"EEE:12345"
],
"orderReferences": [
"654321"
],
"brandName": "Generic Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-22EE",
"productTrackingNumber": "1234354",
"deviceType": "RFID_TAG"
}
]
},
{
"addressLine1": "123 AB Avenue",
"addressLine2": "",
"city": "Los Angeles",
"country": "US",
"customer": {
"id": 11223344,
"poNumbers": [
"11223344",
"11223355"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "1234456734"
}
},
"earliestAppointmentTime": "2024-04-22T19:16:15",
"latestAppointmentTime": "2024-04-22T19:16:15",
"earliestWantTime": "2024-04-22T16:31:29",
"latestWantTime": "2024-04-22T16:31:29",
"name": "XXYYZZ, YY XX",
"pallets": [
{
"billOfLading": 11223344,
"number": "23421",
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "C1234",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "X1234",
"weight": "36.800"
}
]
}
],
"postalCode": "30432",
"referenceNumbers": [
"XXXX:X22",
"BOL:23432",
"1123442",
"SO:E112233"
],
"sequence": 2,
"state": "LA",
"stopReferenceId": "X123",
"stopType": "delivery",
"unloadTimeInMinutes": 120,
"timeInUtc": True,
"productLineItems": [
{
"productId": "0123456",
"productName": "LTL Freight Item",
"productDescription": "LTL freight shipment item",
"productCategory": "General Freight",
"quantity": 10,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25,
"currencyCode": "USD",
"extendedCost": 250,
"freightCost": 15,
"additionalCharges": 10,
"tariffCost": 5,
"fourKitesCalculatedTariffCost": 5,
"totalLandedCost": 265,
"countryOfOrigin": "US",
"harmonizedSystemCode": "4819100000",
"commodityTypeCode": "GENERAL_FREIGHT",
"htsusCode": "4819100000",
"orderNumber": "11223344",
"deliveryNumber": "DN-X123",
"handlingUnitId": "23421",
"barcode": "X1234",
"containerType": "pallet",
"gtin": "00012345678912",
"customerPartNumber": "C1234",
"supplierPartNumber": "C1234",
"manufacturerPartNumber": "MFG-C1234",
"itemNumber": "ITM-C1234",
"productUpc": "012345678912",
"deliveryReferences": [
"BOL:23432"
],
"orderReferences": [
"SO:E112233"
],
"brandName": "Generic Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-C1234",
"productTrackingNumber": "1234354",
"deviceType": "QR_CODE"
}
]
}
]
}
})
headers = {
'Content-Type': 'application/json',
'apikey': 'REPLACE_KEY_VALUE'
}
conn.request("POST", "/api/v1/tracking", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))import http.client
import json
conn = http.client.HTTPSConnection("api-staging.fourkites.com")
payload = json.dumps({
"additionalData": {
"modeDetails": {
"shipperModes": "LTL"
}
},
"load": {
"carrier": "cc79",
"shipperAccountNumber": "tXXXXX234",
"haulType": [
"outbound_load"
],
"simultaneousTrackingReferenceNumber": "11223344",
"simultaneousTrackingSequenceNumber": 1,
"masterSequenceNumber": "1",
"masterReferenceNumber": "83456",
"loadNumber": "LTLTestNew",
"priority": "normal",
"proNumber": "1234354",
"referenceNumbers": [
"AAA:12343,345435",
"BBB:53422,556633",
"CCC:TY6573",
"M3234",
"SCAC:XXXX"
],
"relayLoad": False,
"stops": [
{
"addressLine1": "500 West Madison Street",
"addressLine2": "Suite 3300",
"city": "Chicago",
"country": "US",
"name": "FourKites HQ",
"postalCode": "60611",
"referenceNumbers": [
"SSSS:XXX",
"EEE:12345",
"654321",
"XX:E432133"
],
"sequence": 1,
"state": "LA",
"stopReferenceId": "X12",
"stopType": "pickup",
"unloadTimeInMinutes": 120,
"timeInUtc": True,
"customer": {
"id": None,
"poNumbers": [
"111222"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "545454"
}
},
"earliestAppointmentTime": "2024-04-21T19:16:15",
"latestAppointmentTime": "2024-04-21T19:16:15",
"earliestWantTime": "2024-04-21T16:31:29",
"latestWantTime": "2024-04-21T16:31:29",
"pallets": [
{
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "22EE",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "33CC",
"weight": "36.800"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "LTL Freight Item",
"productDescription": "LTL freight shipment item",
"productCategory": "General Freight",
"quantity": 10,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25,
"currencyCode": "USD",
"extendedCost": 250,
"freightCost": 15,
"bestBeforeDate": "2024-04-25T00:00:00Z",
"additionalCharges": 10,
"tariffCost": 5,
"fourKitesCalculatedTariffCost": 5,
"totalLandedCost": 265,
"countryOfOrigin": "US",
"harmonizedSystemCode": "4819100000",
"commodityTypeCode": "GENERAL_FREIGHT",
"htsusCode": "4819100000",
"orderNumber": "111222",
"deliveryNumber": "DN-X12",
"handlingUnitId": "22EE",
"barcode": "22EE",
"containerType": "carton",
"gtin": "00012345678905",
"customerPartNumber": "22EE",
"supplierPartNumber": "22EE",
"manufacturerPartNumber": "MFG-22EE",
"itemNumber": "ITM-22EE",
"productUpc": "012345678905",
"deliveryReferences": [
"EEE:12345"
],
"orderReferences": [
"654321"
],
"brandName": "Generic Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-22EE",
"productTrackingNumber": "1234354",
"deviceType": "RFID_TAG"
}
]
},
{
"addressLine1": "123 AB Avenue",
"addressLine2": "",
"city": "Los Angeles",
"country": "US",
"customer": {
"id": 11223344,
"poNumbers": [
"11223344",
"11223355"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "1234456734"
}
},
"earliestAppointmentTime": "2024-04-22T19:16:15",
"latestAppointmentTime": "2024-04-22T19:16:15",
"earliestWantTime": "2024-04-22T16:31:29",
"latestWantTime": "2024-04-22T16:31:29",
"name": "XXYYZZ, YY XX",
"pallets": [
{
"billOfLading": 11223344,
"number": "23421",
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "C1234",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "X1234",
"weight": "36.800"
}
]
}
],
"postalCode": "30432",
"referenceNumbers": [
"XXXX:X22",
"BOL:23432",
"1123442",
"SO:E112233"
],
"sequence": 2,
"state": "LA",
"stopReferenceId": "X123",
"stopType": "delivery",
"unloadTimeInMinutes": 120,
"timeInUtc": True,
"productLineItems": [
{
"productId": "0123456",
"productName": "LTL Freight Item",
"productDescription": "LTL freight shipment item",
"productCategory": "General Freight",
"quantity": 10,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25,
"currencyCode": "USD",
"extendedCost": 250,
"freightCost": 15,
"additionalCharges": 10,
"tariffCost": 5,
"fourKitesCalculatedTariffCost": 5,
"totalLandedCost": 265,
"countryOfOrigin": "US",
"harmonizedSystemCode": "4819100000",
"commodityTypeCode": "GENERAL_FREIGHT",
"htsusCode": "4819100000",
"orderNumber": "11223344",
"deliveryNumber": "DN-X123",
"handlingUnitId": "23421",
"barcode": "X1234",
"containerType": "pallet",
"gtin": "00012345678912",
"customerPartNumber": "C1234",
"supplierPartNumber": "C1234",
"manufacturerPartNumber": "MFG-C1234",
"itemNumber": "ITM-C1234",
"productUpc": "012345678912",
"deliveryReferences": [
"BOL:23432"
],
"orderReferences": [
"SO:E112233"
],
"brandName": "Generic Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-C1234",
"productTrackingNumber": "1234354",
"deviceType": "QR_CODE"
}
]
}
]
}
})
headers = {
'Content-Type': 'application/json',
'apikey': 'REPLACE_KEY_VALUE'
}
conn.request("POST", "/api/v1/tracking", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))import http.client
import json
conn = http.client.HTTPSConnection("api.ng.fourkites.com")
payload = json.dumps({
"additionalData": {
"modeDetails": {
"shipperModes": "LTL"
}
},
"load": {
"carrier": "cc79",
"shipperAccountNumber": "tXXXXX234",
"haulType": [
"outbound_load"
],
"simultaneousTrackingReferenceNumber": "11223344",
"simultaneousTrackingSequenceNumber": 1,
"masterSequenceNumber": "1",
"masterReferenceNumber": "83456",
"loadNumber": "LTLTestNew",
"priority": "normal",
"proNumber": "1234354",
"referenceNumbers": [
"AAA:12343,345435",
"BBB:53422,556633",
"CCC:TY6573",
"M3234",
"SCAC:XXXX"
],
"relayLoad": False,
"stops": [
{
"addressLine1": "500 West Madison Street",
"addressLine2": "Suite 3300",
"city": "Chicago",
"country": "US",
"name": "FourKites HQ",
"postalCode": "60611",
"referenceNumbers": [
"SSSS:XXX",
"EEE:12345",
"654321",
"XX:E432133"
],
"sequence": 1,
"state": "LA",
"stopReferenceId": "X12",
"stopType": "pickup",
"unloadTimeInMinutes": 120,
"timeInUtc": True,
"customer": {
"id": None,
"poNumbers": [
"111222"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "545454"
}
},
"earliestAppointmentTime": "2024-04-21T19:16:15",
"latestAppointmentTime": "2024-04-21T19:16:15",
"earliestWantTime": "2024-04-21T16:31:29",
"latestWantTime": "2024-04-21T16:31:29",
"pallets": [
{
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "22EE",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "33CC",
"weight": "36.800"
}
]
}
]
},
{
"addressLine1": "123 AB Avenue",
"addressLine2": "",
"city": "Los Angeles",
"country": "US",
"customer": {
"id": 11223344,
"poNumbers": [
"11223344",
"11223355"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "1234456734"
}
},
"earliestAppointmentTime": "2024-04-22T19:16:15",
"latestAppointmentTime": "2024-04-22T19:16:15",
"earliestWantTime": "2024-04-22T16:31:29",
"latestWantTime": "2024-04-22T16:31:29",
"name": "XXYYZZ, YY XX",
"pallets": [
{
"billOfLading": 11223344,
"number": "23421",
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "C1234",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "X1234",
"weight": "36.800"
}
]
}
],
"postalCode": "30432",
"referenceNumbers": [
"XXXX:X22",
"BOL:23432",
"1123442",
"SO:E112233"
],
"sequence": 2,
"state": "LA",
"stopReferenceId": "X123",
"stopType": "delivery",
"unloadTimeInMinutes": 120,
"timeInUtc": True
}
]
}
})
headers = {
'Content-Type': 'application/json',
'apikey': 'REPLACE_KEY_VALUE'
}
conn.request("POST", "/api/v1/tracking", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))import http.client
import json
conn = http.client.HTTPSConnection("api-staging.ng.fourkites.com")
payload = json.dumps({
"additionalData": {
"modeDetails": {
"shipperModes": "LTL"
}
},
"load": {
"carrier": "cc79",
"shipperAccountNumber": "tXXXXX234",
"haulType": [
"outbound_load"
],
"simultaneousTrackingReferenceNumber": "11223344",
"simultaneousTrackingSequenceNumber": 1,
"masterSequenceNumber": "1",
"masterReferenceNumber": "83456",
"loadNumber": "LTLTestNew",
"priority": "normal",
"proNumber": "1234354",
"referenceNumbers": [
"AAA:12343,345435",
"BBB:53422,556633",
"CCC:TY6573",
"M3234",
"SCAC:XXXX"
],
"relayLoad": False,
"stops": [
{
"addressLine1": "500 West Madison Street",
"addressLine2": "Suite 3300",
"city": "Chicago",
"country": "US",
"name": "FourKites HQ",
"postalCode": "60611",
"referenceNumbers": [
"SSSS:XXX",
"EEE:12345",
"654321",
"XX:E432133"
],
"sequence": 1,
"state": "LA",
"stopReferenceId": "X12",
"stopType": "pickup",
"unloadTimeInMinutes": 120,
"timeInUtc": True,
"customer": {
"id": None,
"poNumbers": [
"111222"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "545454"
}
},
"earliestAppointmentTime": "2024-04-21T19:16:15",
"latestAppointmentTime": "2024-04-21T19:16:15",
"earliestWantTime": "2024-04-21T16:31:29",
"latestWantTime": "2024-04-21T16:31:29",
"pallets": [
{
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "22EE",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "33CC",
"weight": "36.800"
}
]
}
]
},
{
"addressLine1": "123 AB Avenue",
"addressLine2": "",
"city": "Los Angeles",
"country": "US",
"customer": {
"id": 11223344,
"poNumbers": [
"11223344",
"11223355"
],
"pointOfContact": {
"email": "[email protected]",
"phone": "1234456734"
}
},
"earliestAppointmentTime": "2024-04-22T19:16:15",
"latestAppointmentTime": "2024-04-22T19:16:15",
"earliestWantTime": "2024-04-22T16:31:29",
"latestWantTime": "2024-04-22T16:31:29",
"name": "XXYYZZ, YY XX",
"pallets": [
{
"billOfLading": 11223344,
"number": "23421",
"parts": [
{
"quantity": "XXX-YYY",
"shipperPartNumber": "C1234",
"weight": "7.998"
},
{
"quantity": "YYY-ZZZ",
"shipperPartNumber": "X1234",
"weight": "36.800"
}
]
}
],
"postalCode": "30432",
"referenceNumbers": [
"XXXX:X22",
"BOL:23432",
"1123442",
"SO:E112233"
],
"sequence": 2,
"state": "LA",
"stopReferenceId": "X123",
"stopType": "delivery",
"unloadTimeInMinutes": 120,
"timeInUtc": True
}
]
}
})
headers = {
'Content-Type': 'application/json',
'apikey': 'REPLACE_KEY_VALUE'
}
conn.request("POST", "/api/v1/tracking", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))