Rail / Intermodal
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.
⚠️ 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. To learn more about Idempotency Protection, refer here.
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 a 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
For the European Rail road, the wagonNumber field must be used instead of the railEquipmentInitials and railEquipmentNumberfields as European standards for naming/identifying rail equipment are different than other regions. If your organization intends to track rail shipments in Europe, please contact your Implementation Manager and request that European rail tracking be enabled along with the usage of this field.
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\n \"trackingInfo\": {\n \"driverPhone\": \"\",\n \"truckNumber\": \"\",\n \"railEquipmentInitials\": \"RAIL\",\n \"railEquipmentNumber\": \"654405\",\n \"wagonNumber\": \"qwerty123\"\n },\n \"load\": {\n \"loadNumber\": \"TestRail05_1\",\n \"skipAppointmentTimeValidation\": true,\n \"priority\": \"normal\",\n \"carrier\": \"cc79\",\n \"carrierPermalink\": \"support-carrier-production\",\n \"carrierName\": \"Support Carrier (Production)\",\n \"masterSequenceNumber\": \"1\",\n \"masterReferenceNumber\": \"7328623\",\n \"referenceNumbers\": [\n \"TU-2945\",\n \"80982\",\n \"94BC8\"\n ],\n \"shipper\": null,\n \"products\": [],\n \"stops\": [\n {\n \"stopType\": \"pickup\",\n \"completeAddress\": \"Chennai, TN - 600003, IN\",\n \"city\": \"Chennai\",\n \"state\": \"TN\",\n \"country\": \"IN\",\n \"customer\": {\n \"poNumbers\": [\n \"00210123OF-203503\"\n ]\n },\n \"postalCode\": null,\n \"latitude\": 13.0816437,\n \"longitude\": 80.2752316,\n \"geofencePoints\": [],\n \"appointmentTime\": \"2024-08-20T07:35:00.000Z\",\n \"wantTime\": null,\n \"earliestWantTime\": null,\n \"latestWantTime\": null,\n \"transportationMode\": null,\n \"useLocalLatLng\": true,\n \"StopReferenceNumber\": \"7085568349\",\n \"pallets\": [\n {\n \"number\": \"PAL-001\",\n \"parts\": [\n {\n \"quantity\": \"25\",\n \"shipperPartNumber\": \"22EE\",\n \"weight\": \"7.998\"\n }\n ]\n }\n ],\n \"productLineItems\": [\n {\n \"productId\": \"0123456\",\n \"productName\": \"Rail Freight Item\",\n \"productDescription\": \"Rail/intermodal freight shipment item\",\n \"productCategory\": \"General Freight\",\n \"quantity\": 25,\n \"measurementUnitCode\": \"PCE\",\n \"netWeight\": 44.8,\n \"weightUnit\": \"KGM\",\n \"unitCost\": 25.0,\n \"currencyCode\": \"USD\",\n \"extendedCost\": 625.00,\n \"freightCost\": 20.00,\n \"bestBeforeDate\": \"2026-04-25T00:00:00Z\",\n \"additionalCharges\": 5.00,\n \"tariffCost\": 2.50,\n \"fourKitesCalculatedTariffCost\": 2.50,\n \"totalLandedCost\": 655.00,\n \"countryOfOrigin\": \"IN\",\n \"harmonizedSystemCode\": \"8607911000\",\n \"commodityTypeCode\": \"RAIL_FREIGHT\",\n \"htsusCode\": \"8607911000\",\n \"orderNumber\": \"TU-2945\",\n \"deliveryNumber\": \"DN-7085568349\",\n \"handlingUnitId\": \"PAL-001\",\n \"barcode\": \"PAL001\",\n \"containerType\": \"pallet\",\n \"gtin\": \"00012345678905\",\n \"customerPartNumber\": \"22EE\",\n \"supplierPartNumber\": \"22EE\",\n \"manufacturerPartNumber\": \"MFG-22EE\",\n \"itemNumber\": \"ITM-22EE\",\n \"productUpc\": \"012345678905\",\n \"deliveryReferences\": [\"DEL-REF-001\"],\n \"orderReferences\": [\"TU-2945\"],\n \"brandName\": \"Generic Rail Freight Co\",\n \"minimumTemperature\": 0,\n \"maximumTemperature\": 0,\n \"temperatureUnitCode\": \"cel\",\n \"labelIdentifier\": \"LBL-22EE\",\n \"productTrackingNumber\": \"7085568349\",\n \"deviceType\": \"RFID_TAG\"\n }\n ]\n },\n {\n \"stopType\": \"delivery\",\n \"completeAddress\": \"Bengaluru, KA - 560002, IN\",\n \"city\": \"Bengaluru\",\n \"state\": \"KA\",\n \"country\": \"IN\",\n \"postalCode\": \"78738\",\n \"latitude\": 12.96643,\n \"longitude\": 77.58718,\n \"geofencePoints\": [],\n \"appointmentTime\": \"2024-08-29T07:35:00.000Z\",\n \"wantTime\": null,\n \"earliestWantTime\": null,\n \"latestWantTime\": null,\n \"transportationMode\": null,\n \"addressType\": \"\",\n \"pallets\": [\n {\n \"number\": \"PAL-002\",\n \"parts\": [\n {\n \"quantity\": \"25\",\n \"shipperPartNumber\": \"22EE\",\n \"weight\": \"7.998\"\n }\n ]\n }\n ],\n \"productLineItems\": [\n {\n \"productId\": \"0123456\",\n \"productName\": \"Rail Freight Item\",\n \"productDescription\": \"Rail/intermodal freight shipment item\",\n \"productCategory\": \"General Freight\",\n \"quantity\": 25,\n \"measurementUnitCode\": \"PCE\",\n \"netWeight\": 44.8,\n \"weightUnit\": \"KGM\",\n \"unitCost\": 25.0,\n \"currencyCode\": \"USD\",\n \"extendedCost\": 625.00,\n \"freightCost\": 20.00,\n \"additionalCharges\": 5.00,\n \"tariffCost\": 2.50,\n \"fourKitesCalculatedTariffCost\": 2.50,\n \"totalLandedCost\": 655.00,\n \"countryOfOrigin\": \"IN\",\n \"harmonizedSystemCode\": \"8607911000\",\n \"commodityTypeCode\": \"RAIL_FREIGHT\",\n \"htsusCode\": \"8607911000\",\n \"orderNumber\": \"80982\",\n \"deliveryNumber\": \"DN-PAL002\",\n \"handlingUnitId\": \"PAL-002\",\n \"barcode\": \"PAL002\",\n \"containerType\": \"pallet\",\n \"gtin\": \"00012345678912\",\n \"customerPartNumber\": \"33CC\",\n \"supplierPartNumber\": \"33CC\",\n \"manufacturerPartNumber\": \"MFG-33CC\",\n \"itemNumber\": \"ITM-33CC\",\n \"productUpc\": \"012345678912\",\n \"deliveryReferences\": [\"DEL-REF-002\"],\n \"orderReferences\": [\"80982\"],\n \"brandName\": \"Generic Rail Freight Co\",\n \"minimumTemperature\": 0,\n \"maximumTemperature\": 0,\n \"temperatureUnitCode\": \"cel\",\n \"labelIdentifier\": \"LBL-33CC\",\n \"productTrackingNumber\": \"94BC8\",\n \"deviceType\": \"QR_CODE\"\n }\n ],\n \"useLocalLatLng\": true\n }\n ],\n \"tags\": [\n \"temp\",\n \"field2\",\n \"Inbound\"\n ]\n }\n}");
Request request = new Request.Builder()
.url("https://api.fourkites.com/api/v1/tracking")
.method("POST", body)
.addHeader("Content-Type", "application/json")
.addHeader("apikey", "REPLACE_KEY_VALUE")
.build();
Response response = client.newCall(request).execute();import http.client
import json
conn = http.client.HTTPSConnection("api-stagu.fourkites.com")
payload = json.dumps({
"trackingInfo": {
"driverPhone": "",
"truckNumber": "",
"railEquipmentInitials": "RAIL",
"railEquipmentNumber": "654405",
"wagonNumber": "qwerty123"
},
"load": {
"loadNumber": "TestRail05_1",
"skipAppointmentTimeValidation": True,
"priority": "normal",
"carrier": "cc79",
"carrierPermalink": "support-carrier-production",
"carrierName": "Support Carrier (Production)",
"masterSequenceNumber": "1",
"masterReferenceNumber": "7328623",
"referenceNumbers": [
"TU-2945",
"80982",
"94BC8"
],
"shipper": None,
"products": [],
"stops": [
{
"stopType": "pickup",
"completeAddress": "Chennai, TN - 600003, IN",
"city": "Chennai",
"state": "TN",
"country": "IN",
"customer": {
"poNumbers": [
"00210123OF-203503"
]
},
"postalCode": None,
"latitude": 13.0816437,
"longitude": 80.2752316,
"geofencePoints": [],
"appointmentTime": "2024-08-20T07:35:00.000Z",
"wantTime": None,
"earliestWantTime": None,
"latestWantTime": None,
"transportationMode": None,
"useLocalLatLng": True,
"StopReferenceNumber": "7085568349",
"pallets": [
{
"number": "PAL-001",
"parts": [
{
"quantity": "25",
"shipperPartNumber": "22EE",
"weight": "7.998"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "Rail Freight Item",
"productDescription": "Rail/intermodal freight shipment item",
"productCategory": "General Freight",
"quantity": 25,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25.0,
"currencyCode": "USD",
"extendedCost": 625.00,
"freightCost": 20.00,
"bestBeforeDate": "2026-04-25T00:00:00Z",
"additionalCharges": 5.00,
"tariffCost": 2.50,
"fourKitesCalculatedTariffCost": 2.50,
"totalLandedCost": 655.00,
"countryOfOrigin": "IN",
"harmonizedSystemCode": "8607911000",
"commodityTypeCode": "RAIL_FREIGHT",
"htsusCode": "8607911000",
"orderNumber": "TU-2945",
"deliveryNumber": "DN-7085568349",
"handlingUnitId": "PAL-001",
"barcode": "PAL001",
"containerType": "pallet",
"gtin": "00012345678905",
"customerPartNumber": "22EE",
"supplierPartNumber": "22EE",
"manufacturerPartNumber": "MFG-22EE",
"itemNumber": "ITM-22EE",
"productUpc": "012345678905",
"deliveryReferences": ["DEL-REF-001"],
"orderReferences": ["TU-2945"],
"brandName": "Generic Rail Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-22EE",
"productTrackingNumber": "7085568349",
"deviceType": "RFID_TAG"
}
]
},
{
"stopType": "delivery",
"completeAddress": "Bengaluru, KA - 560002, IN",
"city": "Bengaluru",
"state": "KA",
"country": "IN",
"postalCode": "78738",
"latitude": 12.96643,
"longitude": 77.58718,
"geofencePoints": [],
"appointmentTime": "2024-08-29T07:35:00.000Z",
"wantTime": None,
"earliestWantTime": None,
"latestWantTime": None,
"transportationMode": None,
"addressType": "",
"pallets": [
{
"number": "PAL-002",
"parts": [
{
"quantity": "25",
"shipperPartNumber": "22EE",
"weight": "7.998"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "Rail Freight Item",
"productDescription": "Rail/intermodal freight shipment item",
"productCategory": "General Freight",
"quantity": 25,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25.0,
"currencyCode": "USD",
"extendedCost": 625.00,
"freightCost": 20.00,
"additionalCharges": 5.00,
"tariffCost": 2.50,
"fourKitesCalculatedTariffCost": 2.50,
"totalLandedCost": 655.00,
"countryOfOrigin": "IN",
"harmonizedSystemCode": "8607911000",
"commodityTypeCode": "RAIL_FREIGHT",
"htsusCode": "8607911000",
"orderNumber": "80982",
"deliveryNumber": "DN-PAL002",
"handlingUnitId": "PAL-002",
"barcode": "PAL002",
"containerType": "pallet",
"gtin": "00012345678912",
"customerPartNumber": "33CC",
"supplierPartNumber": "33CC",
"manufacturerPartNumber": "MFG-33CC",
"itemNumber": "ITM-33CC",
"productUpc": "012345678912",
"deliveryReferences": ["DEL-REF-002"],
"orderReferences": ["80982"],
"brandName": "Generic Rail Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-33CC",
"productTrackingNumber": "94BC8",
"deviceType": "QR_CODE"
}
],
"useLocalLatLng": True
}
],
"tags": [
"temp",
"field2",
"Inbound"
]
}
})
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({
"trackingInfo": {
"driverPhone": "",
"truckNumber": "",
"railEquipmentInitials": "RAIL",
"railEquipmentNumber": "654405",
"wagonNumber": "qwerty123"
},
"load": {
"loadNumber": "TestRail05_1",
"skipAppointmentTimeValidation": True,
"priority": "normal",
"carrier": "cc79",
"carrierPermalink": "support-carrier-production",
"carrierName": "Support Carrier (Production)",
"masterSequenceNumber": "1",
"masterReferenceNumber": "7328623",
"referenceNumbers": [
"TU-2945",
"80982",
"94BC8"
],
"shipper": None,
"products": [],
"stops": [
{
"stopType": "pickup",
"completeAddress": "Chennai, TN - 600003, IN",
"city": "Chennai",
"state": "TN",
"country": "IN",
"customer": {
"poNumbers": [
"00210123OF-203503"
]
},
"postalCode": None,
"latitude": 13.0816437,
"longitude": 80.2752316,
"geofencePoints": [],
"appointmentTime": "2024-08-20T07:35:00.000Z",
"wantTime": None,
"earliestWantTime": None,
"latestWantTime": None,
"transportationMode": None,
"useLocalLatLng": True,
"StopReferenceNumber": "7085568349",
"pallets": [
{
"number": "PAL-001",
"parts": [
{
"quantity": "25",
"shipperPartNumber": "22EE",
"weight": "7.998"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "Rail Freight Item",
"productDescription": "Rail/intermodal freight shipment item",
"productCategory": "General Freight",
"quantity": 25,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25.0,
"currencyCode": "USD",
"extendedCost": 625.00,
"freightCost": 20.00,
"bestBeforeDate": "2026-04-25T00:00:00Z",
"additionalCharges": 5.00,
"tariffCost": 2.50,
"fourKitesCalculatedTariffCost": 2.50,
"totalLandedCost": 655.00,
"countryOfOrigin": "IN",
"harmonizedSystemCode": "8607911000",
"commodityTypeCode": "RAIL_FREIGHT",
"htsusCode": "8607911000",
"orderNumber": "TU-2945",
"deliveryNumber": "DN-7085568349",
"handlingUnitId": "PAL-001",
"barcode": "PAL001",
"containerType": "pallet",
"gtin": "00012345678905",
"customerPartNumber": "22EE",
"supplierPartNumber": "22EE",
"manufacturerPartNumber": "MFG-22EE",
"itemNumber": "ITM-22EE",
"productUpc": "012345678905",
"deliveryReferences": ["DEL-REF-001"],
"orderReferences": ["TU-2945"],
"brandName": "Generic Rail Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-22EE",
"productTrackingNumber": "7085568349",
"deviceType": "RFID_TAG"
}
]
},
{
"stopType": "delivery",
"completeAddress": "Bengaluru, KA - 560002, IN",
"city": "Bengaluru",
"state": "KA",
"country": "IN",
"postalCode": "78738",
"latitude": 12.96643,
"longitude": 77.58718,
"geofencePoints": [],
"appointmentTime": "2024-08-29T07:35:00.000Z",
"wantTime": None,
"earliestWantTime": None,
"latestWantTime": None,
"transportationMode": None,
"addressType": "",
"pallets": [
{
"number": "PAL-002",
"parts": [
{
"quantity": "25",
"shipperPartNumber": "22EE",
"weight": "7.998"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "Rail Freight Item",
"productDescription": "Rail/intermodal freight shipment item",
"productCategory": "General Freight",
"quantity": 25,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25.0,
"currencyCode": "USD",
"extendedCost": 625.00,
"freightCost": 20.00,
"additionalCharges": 5.00,
"tariffCost": 2.50,
"fourKitesCalculatedTariffCost": 2.50,
"totalLandedCost": 655.00,
"countryOfOrigin": "IN",
"harmonizedSystemCode": "8607911000",
"commodityTypeCode": "RAIL_FREIGHT",
"htsusCode": "8607911000",
"orderNumber": "80982",
"deliveryNumber": "DN-PAL002",
"handlingUnitId": "PAL-002",
"barcode": "PAL002",
"containerType": "pallet",
"gtin": "00012345678912",
"customerPartNumber": "33CC",
"supplierPartNumber": "33CC",
"manufacturerPartNumber": "MFG-33CC",
"itemNumber": "ITM-33CC",
"productUpc": "012345678912",
"deliveryReferences": ["DEL-REF-002"],
"orderReferences": ["80982"],
"brandName": "Generic Rail Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-33CC",
"productTrackingNumber": "94BC8",
"deviceType": "QR_CODE"
}
],
"useLocalLatLng": True
}
],
"tags": [
"temp",
"field2",
"Inbound"
]
}
})
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({
"trackingInfo": {
"driverPhone": "",
"truckNumber": "",
"railEquipmentInitials": "RAIL",
"railEquipmentNumber": "654405",
"wagonNumber": "qwerty123"
},
"load": {
"loadNumber": "TestRail05_1",
"skipAppointmentTimeValidation": True,
"priority": "normal",
"carrier": "cc79",
"carrierPermalink": "support-carrier-production",
"carrierName": "Support Carrier (Production)",
"masterSequenceNumber": "1",
"masterReferenceNumber": "7328623",
"referenceNumbers": [
"TU-2945",
"80982",
"94BC8"
],
"shipper": None,
"products": [],
"stops": [
{
"stopType": "pickup",
"completeAddress": "Chennai, TN - 600003, IN",
"city": "Chennai",
"state": "TN",
"country": "IN",
"customer": {
"poNumbers": [
"00210123OF-203503"
]
},
"postalCode": None,
"latitude": 13.0816437,
"longitude": 80.2752316,
"geofencePoints": [],
"appointmentTime": "2024-08-20T07:35:00.000Z",
"wantTime": None,
"earliestWantTime": None,
"latestWantTime": None,
"transportationMode": None,
"useLocalLatLng": True,
"StopReferenceNumber": "7085568349",
"pallets": [
{
"number": "PAL-001",
"parts": [
{
"quantity": "25",
"shipperPartNumber": "22EE",
"weight": "7.998"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "Rail Freight Item",
"productDescription": "Rail/intermodal freight shipment item",
"productCategory": "General Freight",
"quantity": 25,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25.0,
"currencyCode": "USD",
"extendedCost": 625.00,
"freightCost": 20.00,
"bestBeforeDate": "2026-04-25T00:00:00Z",
"additionalCharges": 5.00,
"tariffCost": 2.50,
"fourKitesCalculatedTariffCost": 2.50,
"totalLandedCost": 655.00,
"countryOfOrigin": "IN",
"harmonizedSystemCode": "8607911000",
"commodityTypeCode": "RAIL_FREIGHT",
"htsusCode": "8607911000",
"orderNumber": "TU-2945",
"deliveryNumber": "DN-7085568349",
"handlingUnitId": "PAL-001",
"barcode": "PAL001",
"containerType": "pallet",
"gtin": "00012345678905",
"customerPartNumber": "22EE",
"supplierPartNumber": "22EE",
"manufacturerPartNumber": "MFG-22EE",
"itemNumber": "ITM-22EE",
"productUpc": "012345678905",
"deliveryReferences": ["DEL-REF-001"],
"orderReferences": ["TU-2945"],
"brandName": "Generic Rail Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-22EE",
"productTrackingNumber": "7085568349",
"deviceType": "RFID_TAG"
}
]
},
{
"stopType": "delivery",
"completeAddress": "Bengaluru, KA - 560002, IN",
"city": "Bengaluru",
"state": "KA",
"country": "IN",
"postalCode": "78738",
"latitude": 12.96643,
"longitude": 77.58718,
"geofencePoints": [],
"appointmentTime": "2024-08-29T07:35:00.000Z",
"wantTime": None,
"earliestWantTime": None,
"latestWantTime": None,
"transportationMode": None,
"addressType": "",
"pallets": [
{
"number": "PAL-002",
"parts": [
{
"quantity": "25",
"shipperPartNumber": "22EE",
"weight": "7.998"
}
]
}
],
"productLineItems": [
{
"productId": "0123456",
"productName": "Rail Freight Item",
"productDescription": "Rail/intermodal freight shipment item",
"productCategory": "General Freight",
"quantity": 25,
"measurementUnitCode": "PCE",
"netWeight": 44.8,
"weightUnit": "KGM",
"unitCost": 25.0,
"currencyCode": "USD",
"extendedCost": 625.00,
"freightCost": 20.00,
"additionalCharges": 5.00,
"tariffCost": 2.50,
"fourKitesCalculatedTariffCost": 2.50,
"totalLandedCost": 655.00,
"countryOfOrigin": "IN",
"harmonizedSystemCode": "8607911000",
"commodityTypeCode": "RAIL_FREIGHT",
"htsusCode": "8607911000",
"orderNumber": "80982",
"deliveryNumber": "DN-PAL002",
"handlingUnitId": "PAL-002",
"barcode": "PAL002",
"containerType": "pallet",
"gtin": "00012345678912",
"customerPartNumber": "33CC",
"supplierPartNumber": "33CC",
"manufacturerPartNumber": "MFG-33CC",
"itemNumber": "ITM-33CC",
"productUpc": "012345678912",
"deliveryReferences": ["DEL-REF-002"],
"orderReferences": ["80982"],
"brandName": "Generic Rail Freight Co",
"minimumTemperature": 0,
"maximumTemperature": 0,
"temperatureUnitCode": "cel",
"labelIdentifier": "LBL-33CC",
"productTrackingNumber": "94BC8",
"deviceType": "QR_CODE"
}
],
"useLocalLatLng": True
}
],
"tags": [
"temp",
"field2",
"Inbound"
]
}
})
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"))