---
title: Ocean
slug: fourkites-api-reference/ocean
icon: {"apiMethod":"PATCH"}
createdAt: 2024-04-23T11:30:07.000Z
---

Allows authorized users to update an Ocean load. Please note, you will need to use the FourKites’ Internal Tracking ID, “loadId”, that was returned in the response from the Load Create API request. Read on to learn more.

:::hint{type="info"}
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.
:::

:::hint{type="warning"}
Please wait at least `2 minutes` after making an update before submitting another one.
:::

:::hint{type="success"}
**There are two ways you can update an Ocean Load:**

1. If your load is created with `stopReferenceId`, you can use it to update the load by adding the `stopReferenceId` field under the `stops` object. An [example](https://docs.fourkites.com/api-reference/5A7t-ocean#j5no368U50tjASY00uUnj) is given below.
2. If your load is created without `stopReferenceId` or the `stopReferenceId` is passed as empty, please do a Get Shipment API call to fetch the `fourKitesStopID`. You can then use the value of the fourKitesStopID as `stopId` under the stops object to start updating the load. An [example](https://docs.fourkites.com/api-reference/5A7t-ocean#0TGA0x5Z2fbJFqQB5TKmw) is given below.
:::

:::hint{type="info"}
### Rate Limit

**1 request per second**
:::

:::hint{type="info"}
### Format Supported

**JSON**
:::

:::hint{type="info"}
### Authenticated Resource

**API Key**
:::

For more information on Authentication, [click here](https://docs.fourkites.com/api-reference/authentication).&#x20;

:::hint{type="success"}
The FourKites internal loadId that is returned during load creation should be added to the endpoint to update the load. Click on the load that you would like to update to get the FourKites Internal LoadId as shown in the image below.&#x20;

![](https://api.archbee.com/api/optimize/2iLZ8zq0u-v-CPzk98WTR/jke23hF7rks2Qo7PfinnW_id.jpg)
:::

:::ApiMethodV2
```json
{
  "name": "Using stopReferenceId",
  "method": "PATCH",
  "url": "https://api.fourkites.com/api/v1/tracking/420742096",
  "description": "Production",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "fak1lcpsSvGB-bpxEN-p0",
        "language": "curl",
        "code": "curl --location --request PATCH 'https://api.fourkites.com/api/v1/tracking/420742096' \\\n--header 'Content-Type: application/json' \\\n--header 'apikey: REPLACE_KEY_VALUE' \\\n--data-raw '{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopReferenceId\": \"INMAA\",\n                \"stopType\": \"portOfLoading\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}'",
        "customLabel": ""
      },
      {
        "id": "vQbfMz8V7nfbuXW3Fs4DW",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"trackingInfo\\\": {\\n        \\\"driverPhone\\\": \\\"\\\",\\n        \\\"truckNumber\\\": \\\"\\\",\\n        \\\"vesselName\\\": \\\"\\\",\\n        \\\"imo\\\": \\\"\\\",\\n        \\\"mmsi\\\": \\\"\\\",\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"containerInfo\\\": {\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"load\\\": {\\n        \\\"loadNumber\\\": \\\"stop_completion_1_Update_New\\\",\\n        \\\"priority\\\": \\\"normal\\\",\\n        \\\"operatingCarrierScac\\\": null,\\n        \\\"carrierPermalink\\\": \\\"oceancarrier\\\",\\n        \\\"products\\\": [],\\n        \\\"bookingNumber\\\": \\\"\\\",\\n        \\\"billOfLading\\\": \\\"GOA230437868\\\",\\n        \\\"referenceNumbers\\\": [],\\n        \\\"stops\\\": [\\n            {\\n                \\\"stopReferenceId\\\": \\\"INMAA\\\",\\n                \\\"stopType\\\": \\\"portOfLoading\\\",\\n                \\\"addressLine1\\\": \\\"501 W\\\",\\n                \\\"city\\\": \\\"Chennai\\\",\\n                \\\"state\\\": \\\"TN\\\",\\n                \\\"country\\\": \\\"IN\\\",\\n                \\\"wantTime\\\": null,\\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\\\": \\\"Ocean Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Ocean 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\\\": \\\"8471499000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"OCEAN_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8471499000\\\",\\n                    \\\"orderNumber\\\": \\\"GOA230437868\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-INMAA\\\",\\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\\\": [\\\"OOLU4404637\\\"],\\n                    \\\"orderReferences\\\": [\\\"GOA230437868\\\"],\\n                    \\\"brandName\\\": \\\"Generic Ocean Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"OCEAN-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n            }\\n        ]\\n    }\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api.fourkites.com/api/v1/tracking/420742096\")\n  .method(\"PATCH\", body)\n  .addHeader(\"Content-Type\", \"application/json\")\n  .addHeader(\"apikey\", \"REPLACE_KEY_VALUE\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "cNQowxk46sUDr12iRoTsG",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api.fourkites.com/api/v1/tracking/420742096\",\n  \"method\": \"PATCH\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"apikey\": \"REPLACE_KEY_VALUE\"\n  },\n  \"data\": JSON.stringify({\n    \"trackingInfo\": {\n      \"driverPhone\": \"\",\n      \"truckNumber\": \"\",\n      \"vesselName\": \"\",\n      \"imo\": \"\",\n      \"mmsi\": \"\",\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n      \"loadNumber\": \"stop_completion_1_Update_New\",\n      \"priority\": \"normal\",\n      \"operatingCarrierScac\": null,\n      \"carrierPermalink\": \"oceancarrier\",\n      \"products\": [],\n      \"bookingNumber\": \"\",\n      \"billOfLading\": \"GOA230437868\",\n      \"referenceNumbers\": [],\n      \"stops\": [\n        {\n          \"stopReferenceId\": \"INMAA\",\n          \"stopType\": \"portOfLoading\",\n          \"addressLine1\": \"501 W\",\n          \"city\": \"Chennai\",\n          \"state\": \"TN\",\n          \"country\": \"IN\",\n          \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                \"productDescription\": \"Ocean 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\": \"8471499000\",\n                \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                \"htsusCode\": \"8471499000\",\n                \"orderNumber\": \"GOA230437868\",\n                \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                \"orderReferences\": [\"GOA230437868\"],\n                \"brandName\": \"Generic Ocean Freight Co\",\n                \"minimumTemperature\": 0,\n                \"maximumTemperature\": 0,\n                \"temperatureUnitCode\": \"cel\",\n                \"labelIdentifier\": \"LBL-22EE\",\n                \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                \"deviceType\": \"RFID_TAG\"\n            }\n        ]\n        }\n      ]\n    }\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "IMlb4-NHPezxVgthXOoQO",
        "language": "swift",
        "code": "var settings = {\n  \"url\": \"https://api.fourkites.com/api/v1/tracking/420742096\",\n  \"method\": \"PATCH\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"apikey\": \"REPLACE_KEY_VALUE\"\n  },\n  \"data\": JSON.stringify({\n    \"trackingInfo\": {\n      \"driverPhone\": \"\",\n      \"truckNumber\": \"\",\n      \"vesselName\": \"\",\n      \"imo\": \"\",\n      \"mmsi\": \"\",\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n      \"loadNumber\": \"stop_completion_1_Update_New\",\n      \"priority\": \"normal\",\n      \"operatingCarrierScac\": null,\n      \"carrierPermalink\": \"oceancarrier\",\n      \"products\": [],\n      \"bookingNumber\": \"\",\n      \"billOfLading\": \"GOA230437868\",\n      \"referenceNumbers\": [],\n      \"stops\": [\n        {\n          \"stopReferenceId\": \"INMAA\",\n          \"stopType\": \"portOfLoading\",\n          \"addressLine1\": \"501 W\",\n          \"city\": \"Chennai\",\n          \"state\": \"TN\",\n          \"country\": \"IN\",\n          \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                \"productDescription\": \"Ocean 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\": \"8471499000\",\n                \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                \"htsusCode\": \"8471499000\",\n                \"orderNumber\": \"GOA230437868\",\n                \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                \"orderReferences\": [\"GOA230437868\"],\n                \"brandName\": \"Generic Ocean Freight Co\",\n                \"minimumTemperature\": 0,\n                \"maximumTemperature\": 0,\n                \"temperatureUnitCode\": \"cel\",\n                \"labelIdentifier\": \"LBL-22EE\",\n                \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                \"deviceType\": \"RFID_TAG\"\n            }\n        ]\n        }\n      ]\n    }\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "fXrAW0qzWkwHzu0Ziuc0R",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api.fourkites.com/api/v1/tracking/420742096\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"apikey\", \"REPLACE_KEY_VALUE\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"trackingInfo\"\": {\" + \"\\n\" +\n@\"        \"\"driverPhone\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"truckNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"vesselName\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"imo\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"mmsi\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"containerInfo\"\": {\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"load\"\": {\" + \"\\n\" +\n@\"        \"\"loadNumber\"\": \"\"stop_completion_1_Update_New\"\",\" + \"\\n\" +\n@\"        \"\"priority\"\": \"\"normal\"\",\" + \"\\n\" +\n@\"        \"\"operatingCarrierScac\"\": null,\" + \"\\n\" +\n@\"        \"\"carrierPermalink\"\": \"\"oceancarrier\"\",\" + \"\\n\" +\n@\"        \"\"products\"\": [],\" + \"\\n\" +\n@\"        \"\"bookingNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"billOfLading\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"        \"\"referenceNumbers\"\": [],\" + \"\\n\" +\n@\"        \"\"stops\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"stopReferenceId\"\": \"\"INMAA\"\",\" + \"\\n\" +\n@\"                \"\"stopType\"\": \"\"portOfLoading\"\",\" + \"\\n\" +\n@\"                \"\"addressLine1\"\": \"\"501 W\"\",\" + \"\\n\" +\n@\"                \"\"city\"\": \"\"Chennai\"\",\" + \"\\n\" +\n@\"                \"\"state\"\": \"\"TN\"\",\" + \"\\n\" +\n@\"                \"\"country\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"wantTime\"\": null,\" + \"\\n\" +\n@\"        \"\"pallets\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"number\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"parts\"\": [\" + \"\\n\" +\n@\"                    {\" + \"\\n\" +\n@\"                        \"\"quantity\"\": \"\"25\"\",\" + \"\\n\" +\n@\"                        \"\"shipperPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                        \"\"weight\"\": \"\"7.998\"\"\" + \"\\n\" +\n@\"                    }\" + \"\\n\" +\n@\"                ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ],\" + \"\\n\" +\n@\"        \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                \"\"productName\"\": \"\"Ocean Freight Item\"\",\" + \"\\n\" +\n@\"                \"\"productDescription\"\": \"\"Ocean shipment item\"\",\" + \"\\n\" +\n@\"                \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                \"\"quantity\"\": 25,\" + \"\\n\" +\n@\"                \"\"measurementUnitCode\"\": \"\"PCE\"\",\" + \"\\n\" +\n@\"                \"\"netWeight\"\": 44.8,\" + \"\\n\" +\n@\"                \"\"weightUnit\"\": \"\"KGM\"\",\" + \"\\n\" +\n@\"                \"\"unitCost\"\": 25.0,\" + \"\\n\" +\n@\"                \"\"currencyCode\"\": \"\"USD\"\",\" + \"\\n\" +\n@\"                \"\"extendedCost\"\": 625.00,\" + \"\\n\" +\n@\"                \"\"freightCost\"\": 20.00,\" + \"\\n\" +\n@\"                \"\"additionalCharges\"\": 5.00,\" + \"\\n\" +\n@\"                \"\"tariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"fourKitesCalculatedTariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"totalLandedCost\"\": 655.00,\" + \"\\n\" +\n@\"                \"\"countryOfOrigin\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"harmonizedSystemCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"commodityTypeCode\"\": \"\"OCEAN_FREIGHT\"\",\" + \"\\n\" +\n@\"                \"\"htsusCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"orderNumber\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"                \"\"deliveryNumber\"\": \"\"DN-INMAA\"\",\" + \"\\n\" +\n@\"                \"\"handlingUnitId\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"barcode\"\": \"\"PAL001\"\",\" + \"\\n\" +\n@\"                \"\"containerType\"\": \"\"pallet\"\",\" + \"\\n\" +\n@\"                \"\"gtin\"\": \"\"00012345678905\"\",\" + \"\\n\" +\n@\"                \"\"customerPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"supplierPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"manufacturerPartNumber\"\": \"\"MFG-22EE\"\",\" + \"\\n\" +\n@\"                \"\"itemNumber\"\": \"\"ITM-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productUpc\"\": \"\"012345678905\"\",\" + \"\\n\" +\n@\"                \"\"deliveryReferences\"\": [\"\"OOLU4404637\"\"],\" + \"\\n\" +\n@\"                \"\"orderReferences\"\": [\"\"GOA230437868\"\"],\" + \"\\n\" +\n@\"                \"\"brandName\"\": \"\"Generic Ocean Freight Co\"\",\" + \"\\n\" +\n@\"                \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productTrackingNumber\"\": \"\"OCEAN-STOP-001\"\",\" + \"\\n\" +\n@\"                \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"    }\" + \"\\n\" +\n@\"}\";\nrequest.AddParameter(\"application/json\", body,  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);",
        "customLabel": ""
      },
      {
        "id": "0IKI39VlFOuW8nM3RrYQS",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n\n  url := \"https://api.fourkites.com/api/v1/tracking/420742096\"\n  method := \"PATCH\"\n\n  payload := strings.NewReader(`{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopReferenceId\": \"INMAA\",\n                \"stopType\": \"portOfLoading\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"apikey\", \"REPLACE_KEY_VALUE\")\n\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      },
      {
        "id": "Vt6NR_wcZm4bMaceEy6Rw",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fourkites.com/api/v1/tracking/420742096\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"apikey\"] = \"REPLACE_KEY_VALUE\"\nrequest.body = JSON.dump({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": nil,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopReferenceId\": \"INMAA\",\n        \"stopType\": \"portOfLoading\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": nil,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "IJ912xDXsr_30wmpObXOX",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api.fourkites.com\")\npayload = json.dumps({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": None,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopReferenceId\": \"INMAA\",\n        \"stopType\": \"portOfLoading\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": None,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\nheaders = {\n  'Content-Type': 'application/json',\n  'apikey': 'REPLACE_KEY_VALUE'\n}\nconn.request(\"PATCH\", \"/api/v1/tracking/420742096\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "fak1lcpsSvGB-bpxEN-p0"
  },
  "results": {
    "languages": [
      {
        "id": "kZy64iXjSya48NZsEuB7c",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Load updated successfully\",\n    \"requestId\": \"cojrd146o9momjnu5s6g\",\n    \"statusCode\": 200\n}"
      },
      {
        "id": "IaoCeotlRjCBKMefBv6EF",
        "language": "400",
        "code": "{\n    \"errors\": [\n        \"Stops should not contain more than one port of loading and port of discharge\"\n    ],\n    \"message\": \"\",\n    \"requestId\": \"cojq1c8ikb5on1nklj1g\",\n    \"statusCode\": 400\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "kZy64iXjSya48NZsEuB7c"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "trackingInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "driverPhone",
            "kind": "optional",
            "type": "string",
            "description": "Enter the phone number of the driver currently assigned to the load. The phone number must start with a \"+\" sign followed by the country code, area code, and then the mobile number.\n\nFor example, in Brazil, the country code is +55, followed by the area code 19, and then the driver's phone number.\n\n+5519999999999\n\nSimilarly, in the USA, the country code is +1, followed by the 10-digit driver phone number.\n\n+19087654321\n\nThe only exception is when a US user is updating a US phone number, in which case they can enter the number as a 10-digit string (e.g., \"9087654321\")."
          },
          {
            "name": "truckNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the tractor or asset number dispatched by the carrier for the load."
          },
          {
            "name": "vesselName",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the name of the vessel carrying the load."
          },
          {
            "name": "imo",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the international maritime organization number."
          },
          {
            "name": "mmsi",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the Maritime Mobile Service Identity (MMSI) of the vessel."
          },
          {
            "name": "containerNumber",
            "kind": "required",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel. ISO6346 format."
          }
        ]
      },
      {
        "name": "containerInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "containerNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel."
          }
        ]
      },
      {
        "name": "load",
        "kind": "optional",
        "type": "object",
        "description": "It is the parent object for the load. Place the load attributes inside this object.",
        "children": [
          {
            "name": "loadNumber",
            "kind": "required",
            "type": "string",
            "description": "It is the unique load identifier from shipper's system. The load Number or BOL is an important piece of information used to link the load with truck information received from the Carrier's TMS."
          },
          {
            "name": "priority",
            "kind": "optional",
            "type": "string",
            "description": "It indicates whether a load is of normal or high priority. If priority is set as ‘hot’, the load will be marked as ‘Hot’. Valid values: ‘normal’, ‘high’ and ‘hot’. Defaults to normal. Setting the 'Priority' as 'hot' will mark the load as 'Hot' load."
          },
          {
            "name": "operatingCarrierScac",
            "kind": "optional",
            "type": "string",
            "description": "SCAC or code of the operating carrier if setting up managing/operating carrier"
          },
          {
            "name": "carrierPermalink",
            "kind": "optional",
            "type": "string",
            "description": "It is the unique identifier for the carrier in the FK platform."
          },
          {
            "name": "products",
            "kind": "optional",
            "type": "object",
            "description": "It indicates the list of temperature tracked products on a load and their temperature tracking information."
          },
          {
            "name": "bookingNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the shipping line's booking number."
          },
          {
            "name": "billOfLading",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the bill of lading associated with the Ocean load."
          },
          {
            "name": "referenceNumbers",
            "kind": "optional",
            "type": "string",
            "description": "It is the list of load level reference numbers associated with a load. (CM)"
          },
          {
            "name": "stops",
            "kind": "required",
            "type": "object",
            "description": "It is the list of stops for the load.",
            "children": [
              {
                "name": "stopReferenceId",
                "kind": "optional",
                "type": "string",
                "description": "It is the unique identifier of the stop from the customer's system. This populates the \"Reference #\" field on the stop and is used to indicate which stop an update is applied to. (CM)"
              },
              {
                "name": "stopType",
                "kind": "required",
                "type": "string",
                "description": "It defines the function of the stop. Valid values: \"portOfLoading\", \"transshipmentPort\", etc. "
              },
              {
                "name": "addressLine1",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the first line of the stop's address."
              },
              {
                "name": "city",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the name of the city."
              },
              {
                "name": "state",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the 2 character state code for US & Canada and 3 Character state code for Mexico. "
              },
              {
                "name": "country",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the valid country code. It is the 2 digit country code."
              },
              {
                "name": "wantTime",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the time by which the load must be delivered to the consignee in stop's local time zone in ISO 8601 format. (CM)"
              },
              {
                "name": "pallets",
                "kind": "optional",
                "type": "object",
                "description": "It indicates the list of pallets to be delivered at the stop. Each pallet has a pallet number and list of parts.",
                "children": [
                  {
                    "name": "number",
                    "kind": "optional",
                    "type": "string",
                    "description": "It indicates the pallet number."
                  },
                  {
                    "name": "parts",
                    "kind": "optional",
                    "type": "object",
                    "description": "It indicates the list of parts in the pallet.",
                    "children": [
                      {
                        "name": "quantity",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the quantity of the part."
                      },
                      {
                        "name": "shipperPartNumber",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the shipper/manufacturer’s part number."
                      },
                      {
                        "name": "weight",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the weight of the part."
                      }
                    ]
                  }
                ]
              },
              {
                "name": "productLineItems",
                "kind": "optional",
                "type": "object",
                "description": "It is the list of product level details associated with a stop. Replaces the legacy pallets/parts structure going forward.",
                "children": [
                  {
                    "name": "productId",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier for the product. Mandatory if productLineItems object is present"
                  },
                  {
                    "name": "productName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Name of the product"
                  },
                  {
                    "name": "productDescription",
                    "kind": "optional",
                    "type": "string",
                    "description": "Detailed description of the product"
                  },
                  {
                    "name": "productCategory",
                    "kind": "optional",
                    "type": "string",
                    "description": "Category classification of the product"
                  },
                  {
                    "name": "quantity",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Number of units in the shipment"
                  },
                  {
                    "name": "measurementUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for quantity (e.g., PCE, KG, LB)"
                  },
                  {
                    "name": "netWeight",
                    "kind": "optional",
                    "type": "string",
                    "description": "Weight of the product excluding packaging"
                  },
                  {
                    "name": "weightUnit",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for weight (e.g., KGM, LBM)"
                  },
                  {
                    "name": "unitCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Cost per unit of the product"
                  },
                  {
                    "name": "currencyCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Currency code for cost fields"
                  },
                  {
                    "name": "extendedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total cost for all units (unitCost x quantity)"
                  },
                  {
                    "name": "freightCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Freight cost allocated to this line item"
                  },
                  {
                    "name": "bestBeforeDate",
                    "kind": "optional",
                    "type": "string",
                    "description": "Expiration or best before date for the product"
                  },
                  {
                    "name": "additionalCharges",
                    "kind": "optional",
                    "type": "number",
                    "description": "Any additional charges specific to this line item"
                  },
                  {
                    "name": "tariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Tariff cost for this specific line item"
                  },
                  {
                    "name": "fourKitesCalculatedTariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "System-calculated tariff cost"
                  },
                  {
                    "name": "totalLandedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total landed cost for this line item"
                  },
                  {
                    "name": "countryOfOrigin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country of origin for this product"
                  },
                  {
                    "name": "harmonizedSystemCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "International trade classification code"
                  },
                  {
                    "name": "commodityTypeCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Commodity classification code"
                  },
                  {
                    "name": "htsusCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Harmonized Tariff Schedule code for US imports"
                  },
                  {
                    "name": "orderNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Purchase order number"
                  },
                  {
                    "name": "deliveryNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Delivery reference number"
                  },
                  {
                    "name": "handlingUnitId",
                    "kind": "optional",
                    "type": "string",
                    "description": "Identifier for the handling unit (pallet, box, etc.)"
                  },
                  {
                    "name": "barcode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Product barcode"
                  },
                  {
                    "name": "containerType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of container (pallet, box, carton, etc.)"
                  },
                  {
                    "name": "gtin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Global Trade Item Number"
                  },
                  {
                    "name": "customerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Customer's part number for the product"
                  },
                  {
                    "name": "supplierPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Supplier's part number for the product"
                  },
                  {
                    "name": "manufacturerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Manufacturer's part number"
                  },
                  {
                    "name": "itemNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Internal item number"
                  },
                  {
                    "name": "productUpc",
                    "kind": "optional",
                    "type": "string",
                    "description": "Universal Product Code"
                  },
                  {
                    "name": "deliveryReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of delivery reference numbers"
                  },
                  {
                    "name": "orderReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of order reference numbers"
                  },
                  {
                    "name": "brandName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Brand name of the product"
                  },
                  {
                    "name": "minimumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Minimum storage/transport temperature"
                  },
                  {
                    "name": "maximumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Maximum storage/transport temperature"
                  },
                  {
                    "name": "temperatureUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Temperature unit (cel, fah)"
                  },
                  {
                    "name": "labelIdentifier",
                    "kind": "optional",
                    "type": "string",
                    "description": "Label identifier for tracking"
                  },
                  {
                    "name": "productTrackingNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unique tracking number for the product"
                  },
                  {
                    "name": "deviceType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of tracking device (RFID_TAG, QR_CODE, etc.)"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "using-stopreferenceid",
  "legacyHash": "PABVdBy61arlbPxndeDf1"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Using stopReferenceId (Staging)",
  "method": "PATCH",
  "url": "https://api-staging.fourkites.com/api/v1/tracking/420742096",
  "description": "Staging",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "fak1lcpsSvGB-bpxEN-p0",
        "language": "curl",
        "code": "curl --location --request PATCH 'https://api-staging.fourkites.com/api/v1/tracking/420742096' \\\n--header 'Content-Type: application/json' \\\n--header 'apikey: REPLACE_KEY_VALUE' \\\n--data-raw '{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopReferenceId\": \"INMAA\",\n                \"stopType\": \"portOfLoading\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}'",
        "customLabel": ""
      },
      {
        "id": "vQbfMz8V7nfbuXW3Fs4DW",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"trackingInfo\\\": {\\n        \\\"driverPhone\\\": \\\"\\\",\\n        \\\"truckNumber\\\": \\\"\\\",\\n        \\\"vesselName\\\": \\\"\\\",\\n        \\\"imo\\\": \\\"\\\",\\n        \\\"mmsi\\\": \\\"\\\",\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"containerInfo\\\": {\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"load\\\": {\\n        \\\"loadNumber\\\": \\\"stop_completion_1_Update_New\\\",\\n        \\\"priority\\\": \\\"normal\\\",\\n        \\\"operatingCarrierScac\\\": null,\\n        \\\"carrierPermalink\\\": \\\"oceancarrier\\\",\\n        \\\"products\\\": [],\\n        \\\"bookingNumber\\\": \\\"\\\",\\n        \\\"billOfLading\\\": \\\"GOA230437868\\\",\\n        \\\"referenceNumbers\\\": [],\\n        \\\"stops\\\": [\\n            {\\n                \\\"stopReferenceId\\\": \\\"INMAA\\\",\\n                \\\"stopType\\\": \\\"portOfLoading\\\",\\n                \\\"addressLine1\\\": \\\"501 W\\\",\\n                \\\"city\\\": \\\"Chennai\\\",\\n                \\\"state\\\": \\\"TN\\\",\\n                \\\"country\\\": \\\"IN\\\",\\n                \\\"wantTime\\\": null,\\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\\\": \\\"Ocean Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Ocean 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\\\": \\\"8471499000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"OCEAN_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8471499000\\\",\\n                    \\\"orderNumber\\\": \\\"GOA230437868\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-INMAA\\\",\\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\\\": [\\\"OOLU4404637\\\"],\\n                    \\\"orderReferences\\\": [\\\"GOA230437868\\\"],\\n                    \\\"brandName\\\": \\\"Generic Ocean Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"OCEAN-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n            }\\n        ]\\n    }\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api-staging.fourkites.com/api/v1/tracking/420742096\")\n  .method(\"PATCH\", body)\n  .addHeader(\"Content-Type\", \"application/json\")\n  .addHeader(\"apikey\", \"REPLACE_KEY_VALUE\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "cNQowxk46sUDr12iRoTsG",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api-staging.fourkites.com/api/v1/tracking/420742096\",\n  \"method\": \"PATCH\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"apikey\": \"REPLACE_KEY_VALUE\"\n  },\n  \"data\": JSON.stringify({\n    \"trackingInfo\": {\n      \"driverPhone\": \"\",\n      \"truckNumber\": \"\",\n      \"vesselName\": \"\",\n      \"imo\": \"\",\n      \"mmsi\": \"\",\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n      \"loadNumber\": \"stop_completion_1_Update_New\",\n      \"priority\": \"normal\",\n      \"operatingCarrierScac\": null,\n      \"carrierPermalink\": \"oceancarrier\",\n      \"products\": [],\n      \"bookingNumber\": \"\",\n      \"billOfLading\": \"GOA230437868\",\n      \"referenceNumbers\": [],\n      \"stops\": [\n        {\n          \"stopReferenceId\": \"INMAA\",\n          \"stopType\": \"portOfLoading\",\n          \"addressLine1\": \"501 W\",\n          \"city\": \"Chennai\",\n          \"state\": \"TN\",\n          \"country\": \"IN\",\n          \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                \"productDescription\": \"Ocean 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\": \"8471499000\",\n                \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                \"htsusCode\": \"8471499000\",\n                \"orderNumber\": \"GOA230437868\",\n                \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                \"orderReferences\": [\"GOA230437868\"],\n                \"brandName\": \"Generic Ocean Freight Co\",\n                \"minimumTemperature\": 0,\n                \"maximumTemperature\": 0,\n                \"temperatureUnitCode\": \"cel\",\n                \"labelIdentifier\": \"LBL-22EE\",\n                \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                \"deviceType\": \"RFID_TAG\"\n            }\n        ]\n        }\n      ]\n    }\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "IMlb4-NHPezxVgthXOoQO",
        "language": "swift",
        "code": "var settings = {\n  \"url\": \"https://api-staging.fourkites.com/api/v1/tracking/420742096\",\n  \"method\": \"PATCH\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"apikey\": \"REPLACE_KEY_VALUE\"\n  },\n  \"data\": JSON.stringify({\n    \"trackingInfo\": {\n      \"driverPhone\": \"\",\n      \"truckNumber\": \"\",\n      \"vesselName\": \"\",\n      \"imo\": \"\",\n      \"mmsi\": \"\",\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n      \"loadNumber\": \"stop_completion_1_Update_New\",\n      \"priority\": \"normal\",\n      \"operatingCarrierScac\": null,\n      \"carrierPermalink\": \"oceancarrier\",\n      \"products\": [],\n      \"bookingNumber\": \"\",\n      \"billOfLading\": \"GOA230437868\",\n      \"referenceNumbers\": [],\n      \"stops\": [\n        {\n          \"stopReferenceId\": \"INMAA\",\n          \"stopType\": \"portOfLoading\",\n          \"addressLine1\": \"501 W\",\n          \"city\": \"Chennai\",\n          \"state\": \"TN\",\n          \"country\": \"IN\",\n          \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                \"productDescription\": \"Ocean 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\": \"8471499000\",\n                \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                \"htsusCode\": \"8471499000\",\n                \"orderNumber\": \"GOA230437868\",\n                \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                \"orderReferences\": [\"GOA230437868\"],\n                \"brandName\": \"Generic Ocean Freight Co\",\n                \"minimumTemperature\": 0,\n                \"maximumTemperature\": 0,\n                \"temperatureUnitCode\": \"cel\",\n                \"labelIdentifier\": \"LBL-22EE\",\n                \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                \"deviceType\": \"RFID_TAG\"\n            }\n        ]\n        }\n      ]\n    }\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "fXrAW0qzWkwHzu0Ziuc0R",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api-staging.fourkites.com/api/v1/tracking/420742096\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"apikey\", \"REPLACE_KEY_VALUE\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"trackingInfo\"\": {\" + \"\\n\" +\n@\"        \"\"driverPhone\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"truckNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"vesselName\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"imo\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"mmsi\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"containerInfo\"\": {\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"load\"\": {\" + \"\\n\" +\n@\"        \"\"loadNumber\"\": \"\"stop_completion_1_Update_New\"\",\" + \"\\n\" +\n@\"        \"\"priority\"\": \"\"normal\"\",\" + \"\\n\" +\n@\"        \"\"operatingCarrierScac\"\": null,\" + \"\\n\" +\n@\"        \"\"carrierPermalink\"\": \"\"oceancarrier\"\",\" + \"\\n\" +\n@\"        \"\"products\"\": [],\" + \"\\n\" +\n@\"        \"\"bookingNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"billOfLading\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"        \"\"referenceNumbers\"\": [],\" + \"\\n\" +\n@\"        \"\"stops\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"stopReferenceId\"\": \"\"INMAA\"\",\" + \"\\n\" +\n@\"                \"\"stopType\"\": \"\"portOfLoading\"\",\" + \"\\n\" +\n@\"                \"\"addressLine1\"\": \"\"501 W\"\",\" + \"\\n\" +\n@\"                \"\"city\"\": \"\"Chennai\"\",\" + \"\\n\" +\n@\"                \"\"state\"\": \"\"TN\"\",\" + \"\\n\" +\n@\"                \"\"country\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"wantTime\"\": null,\" + \"\\n\" +\n@\"        \"\"pallets\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"number\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"parts\"\": [\" + \"\\n\" +\n@\"                    {\" + \"\\n\" +\n@\"                        \"\"quantity\"\": \"\"25\"\",\" + \"\\n\" +\n@\"                        \"\"shipperPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                        \"\"weight\"\": \"\"7.998\"\"\" + \"\\n\" +\n@\"                    }\" + \"\\n\" +\n@\"                ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ],\" + \"\\n\" +\n@\"        \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                \"\"productName\"\": \"\"Ocean Freight Item\"\",\" + \"\\n\" +\n@\"                \"\"productDescription\"\": \"\"Ocean shipment item\"\",\" + \"\\n\" +\n@\"                \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                \"\"quantity\"\": 25,\" + \"\\n\" +\n@\"                \"\"measurementUnitCode\"\": \"\"PCE\"\",\" + \"\\n\" +\n@\"                \"\"netWeight\"\": 44.8,\" + \"\\n\" +\n@\"                \"\"weightUnit\"\": \"\"KGM\"\",\" + \"\\n\" +\n@\"                \"\"unitCost\"\": 25.0,\" + \"\\n\" +\n@\"                \"\"currencyCode\"\": \"\"USD\"\",\" + \"\\n\" +\n@\"                \"\"extendedCost\"\": 625.00,\" + \"\\n\" +\n@\"                \"\"freightCost\"\": 20.00,\" + \"\\n\" +\n@\"                \"\"additionalCharges\"\": 5.00,\" + \"\\n\" +\n@\"                \"\"tariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"fourKitesCalculatedTariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"totalLandedCost\"\": 655.00,\" + \"\\n\" +\n@\"                \"\"countryOfOrigin\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"harmonizedSystemCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"commodityTypeCode\"\": \"\"OCEAN_FREIGHT\"\",\" + \"\\n\" +\n@\"                \"\"htsusCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"orderNumber\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"                \"\"deliveryNumber\"\": \"\"DN-INMAA\"\",\" + \"\\n\" +\n@\"                \"\"handlingUnitId\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"barcode\"\": \"\"PAL001\"\",\" + \"\\n\" +\n@\"                \"\"containerType\"\": \"\"pallet\"\",\" + \"\\n\" +\n@\"                \"\"gtin\"\": \"\"00012345678905\"\",\" + \"\\n\" +\n@\"                \"\"customerPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"supplierPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"manufacturerPartNumber\"\": \"\"MFG-22EE\"\",\" + \"\\n\" +\n@\"                \"\"itemNumber\"\": \"\"ITM-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productUpc\"\": \"\"012345678905\"\",\" + \"\\n\" +\n@\"                \"\"deliveryReferences\"\": [\"\"OOLU4404637\"\"],\" + \"\\n\" +\n@\"                \"\"orderReferences\"\": [\"\"GOA230437868\"\"],\" + \"\\n\" +\n@\"                \"\"brandName\"\": \"\"Generic Ocean Freight Co\"\",\" + \"\\n\" +\n@\"                \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productTrackingNumber\"\": \"\"OCEAN-STOP-001\"\",\" + \"\\n\" +\n@\"                \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"    }\" + \"\\n\" +\n@\"}\";\nrequest.AddParameter(\"application/json\", body,  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);",
        "customLabel": ""
      },
      {
        "id": "0IKI39VlFOuW8nM3RrYQS",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n\n  url := \"https://api-staging.fourkites.com/api/v1/tracking/420742096\"\n  method := \"PATCH\"\n\n  payload := strings.NewReader(`{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopReferenceId\": \"INMAA\",\n                \"stopType\": \"portOfLoading\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"apikey\", \"REPLACE_KEY_VALUE\")\n\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      },
      {
        "id": "Vt6NR_wcZm4bMaceEy6Rw",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-staging.fourkites.com/api/v1/tracking/420742096\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"apikey\"] = \"REPLACE_KEY_VALUE\"\nrequest.body = JSON.dump({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": nil,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopReferenceId\": \"INMAA\",\n        \"stopType\": \"portOfLoading\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": nil,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "IJ912xDXsr_30wmpObXOX",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api-staging.fourkites.com\")\npayload = json.dumps({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": None,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopReferenceId\": \"INMAA\",\n        \"stopType\": \"portOfLoading\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": None,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\nheaders = {\n  'Content-Type': 'application/json',\n  'apikey': 'REPLACE_KEY_VALUE'\n}\nconn.request(\"PATCH\", \"/api/v1/tracking/420742096\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "IJ912xDXsr_30wmpObXOX"
  },
  "results": {
    "languages": [
      {
        "id": "kZy64iXjSya48NZsEuB7c",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Load updated successfully\",\n    \"requestId\": \"cojrd146o9momjnu5s6g\",\n    \"statusCode\": 200\n}"
      },
      {
        "id": "IaoCeotlRjCBKMefBv6EF",
        "language": "400",
        "code": "{\n    \"errors\": [\n        \"Stops should not contain more than one port of loading and port of discharge\"\n    ],\n    \"message\": \"\",\n    \"requestId\": \"cojq1c8ikb5on1nklj1g\",\n    \"statusCode\": 400\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "kZy64iXjSya48NZsEuB7c"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "trackingInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "driverPhone",
            "kind": "optional",
            "type": "string",
            "description": "It indicates a valid mobile number. Example: +13125555555"
          },
          {
            "name": "truckNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the tractor or asset number dispatched by the carrier for the load."
          },
          {
            "name": "vesselName",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the name of the vessel carrying the load."
          },
          {
            "name": "imo",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the international maritime organization number."
          },
          {
            "name": "mmsi",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the Maritime Mobile Service Identity (MMSI) of the vessel."
          },
          {
            "name": "containerNumber",
            "kind": "required",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel. ISO6346 format."
          }
        ]
      },
      {
        "name": "containerInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "containerNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel."
          }
        ]
      },
      {
        "name": "load",
        "kind": "optional",
        "type": "object",
        "description": "It is the parent object for the load. Place the load attributes inside this object.",
        "children": [
          {
            "name": "loadNumber",
            "kind": "required",
            "type": "string",
            "description": "It is the unique load identifier from shipper's system. The load Number or BOL is an important piece of information used to link the load with truck information received from the Carrier's TMS."
          },
          {
            "name": "priority",
            "kind": "optional",
            "type": "string",
            "description": "It indicates whether a load is of normal or high priority. If priority is set as ‘hot’, the load will be marked as ‘Hot’. Valid values: ‘normal’, ‘high’ and ‘hot’. Defaults to normal. Setting the 'Priority' as 'hot' will mark the load as 'Hot' load."
          },
          {
            "name": "operatingCarrierScac",
            "kind": "optional",
            "type": "string",
            "description": "SCAC or code of the operating carrier if setting up managing/operating carrier"
          },
          {
            "name": "carrierPermalink",
            "kind": "optional",
            "type": "string",
            "description": "It is the unique identifier for the carrier in the FK platform."
          },
          {
            "name": "products",
            "kind": "optional",
            "type": "object",
            "description": "It indicates the list of temperature tracked products on a load and their temperature tracking information."
          },
          {
            "name": "bookingNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the shipping line's booking number."
          },
          {
            "name": "billOfLading",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the bill of lading associated with the Ocean load."
          },
          {
            "name": "referenceNumbers",
            "kind": "optional",
            "type": "string",
            "description": "It is the list of load level reference numbers associated with a load. (CM)"
          },
          {
            "name": "stops",
            "kind": "required",
            "type": "object",
            "description": "It is the list of stops for the load.",
            "children": [
              {
                "name": "stopReferenceId",
                "kind": "optional",
                "type": "string",
                "description": "It is the unique identifier of the stop from the customer's system. This populates the \"Reference #\" field on the stop and is used to indicate which stop an update is applied to. (CM)"
              },
              {
                "name": "stopType",
                "kind": "required",
                "type": "string",
                "description": "It defines the function of the stop. Valid values: \"portOfLoading\", \"transshipmentPort\", etc. "
              },
              {
                "name": "addressLine1",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the first line of the stop's address."
              },
              {
                "name": "city",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the name of the city."
              },
              {
                "name": "state",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the 2 character state code for US & Canada and 3 Character state code for Mexico. "
              },
              {
                "name": "country",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the valid country code. It is the 2 digit country code."
              },
              {
                "name": "wantTime",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the time by which the load must be delivered to the consignee in stop's local time zone in ISO 8601 format. (CM)"
              },
              {
                "name": "pallets",
                "kind": "optional",
                "type": "object",
                "description": "It indicates the list of pallets to be delivered at the stop. Each pallet has a pallet number and list of parts.",
                "children": [
                  {
                    "name": "number",
                    "kind": "optional",
                    "type": "string",
                    "description": "It indicates the pallet number."
                  },
                  {
                    "name": "parts",
                    "kind": "optional",
                    "type": "object",
                    "description": "It indicates the list of parts in the pallet.",
                    "children": [
                      {
                        "name": "quantity",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the quantity of the part."
                      },
                      {
                        "name": "shipperPartNumber",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the shipper/manufacturer’s part number."
                      },
                      {
                        "name": "weight",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the weight of the part."
                      }
                    ]
                  }
                ]
              },
              {
                "name": "productLineItems",
                "kind": "optional",
                "type": "object",
                "description": "It is the list of product level details associated with a stop. Replaces the legacy pallets/parts structure going forward.",
                "children": [
                  {
                    "name": "productId",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier for the product. Mandatory if productLineItems object is present"
                  },
                  {
                    "name": "productName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Name of the product"
                  },
                  {
                    "name": "productDescription",
                    "kind": "optional",
                    "type": "string",
                    "description": "Detailed description of the product"
                  },
                  {
                    "name": "productCategory",
                    "kind": "optional",
                    "type": "string",
                    "description": "Category classification of the product"
                  },
                  {
                    "name": "quantity",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Number of units in the shipment"
                  },
                  {
                    "name": "measurementUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for quantity (e.g., PCE, KG, LB)"
                  },
                  {
                    "name": "netWeight",
                    "kind": "optional",
                    "type": "string",
                    "description": "Weight of the product excluding packaging"
                  },
                  {
                    "name": "weightUnit",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for weight (e.g., KGM, LBM)"
                  },
                  {
                    "name": "unitCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Cost per unit of the product"
                  },
                  {
                    "name": "currencyCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Currency code for cost fields"
                  },
                  {
                    "name": "extendedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total cost for all units (unitCost x quantity)"
                  },
                  {
                    "name": "freightCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Freight cost allocated to this line item"
                  },
                  {
                    "name": "bestBeforeDate",
                    "kind": "optional",
                    "type": "string",
                    "description": "Expiration or best before date for the product"
                  },
                  {
                    "name": "additionalCharges",
                    "kind": "optional",
                    "type": "number",
                    "description": "Any additional charges specific to this line item"
                  },
                  {
                    "name": "tariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Tariff cost for this specific line item"
                  },
                  {
                    "name": "fourKitesCalculatedTariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "System-calculated tariff cost"
                  },
                  {
                    "name": "totalLandedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total landed cost for this line item"
                  },
                  {
                    "name": "countryOfOrigin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country of origin for this product"
                  },
                  {
                    "name": "harmonizedSystemCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "International trade classification code"
                  },
                  {
                    "name": "commodityTypeCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Commodity classification code"
                  },
                  {
                    "name": "htsusCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Harmonized Tariff Schedule code for US imports"
                  },
                  {
                    "name": "orderNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Purchase order number"
                  },
                  {
                    "name": "deliveryNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Delivery reference number"
                  },
                  {
                    "name": "handlingUnitId",
                    "kind": "optional",
                    "type": "string",
                    "description": "Identifier for the handling unit (pallet, box, etc.)"
                  },
                  {
                    "name": "barcode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Product barcode"
                  },
                  {
                    "name": "containerType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of container (pallet, box, carton, etc.)"
                  },
                  {
                    "name": "gtin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Global Trade Item Number"
                  },
                  {
                    "name": "customerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Customer's part number for the product"
                  },
                  {
                    "name": "supplierPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Supplier's part number for the product"
                  },
                  {
                    "name": "manufacturerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Manufacturer's part number"
                  },
                  {
                    "name": "itemNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Internal item number"
                  },
                  {
                    "name": "productUpc",
                    "kind": "optional",
                    "type": "string",
                    "description": "Universal Product Code"
                  },
                  {
                    "name": "deliveryReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of delivery reference numbers"
                  },
                  {
                    "name": "orderReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of order reference numbers"
                  },
                  {
                    "name": "brandName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Brand name of the product"
                  },
                  {
                    "name": "minimumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Minimum storage/transport temperature"
                  },
                  {
                    "name": "maximumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Maximum storage/transport temperature"
                  },
                  {
                    "name": "temperatureUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Temperature unit (cel, fah)"
                  },
                  {
                    "name": "labelIdentifier",
                    "kind": "optional",
                    "type": "string",
                    "description": "Label identifier for tracking"
                  },
                  {
                    "name": "productTrackingNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unique tracking number for the product"
                  },
                  {
                    "name": "deviceType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of tracking device (RFID_TAG, QR_CODE, etc.)"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "using-stopreferenceid-staging",
  "legacyHash": "-FpjXyOBRGHDlu6P06M2R"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Using stopId",
  "method": "PATCH",
  "url": "https://api.fourkites.com/api/v1/tracking/420742096",
  "description": "Production",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "fak1lcpsSvGB-bpxEN-p0",
        "language": "curl",
        "code": "curl --location --request PATCH 'https://api.fourkites.com/api/v1/tracking/420295963' \\\n--header 'Content-Type: application/json' \\\n--header 'apikey: REPLACE_KEY_VALUE' \\\n--data-raw '{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New1\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopId\": \"1112443717\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}'",
        "customLabel": ""
      },
      {
        "id": "vQbfMz8V7nfbuXW3Fs4DW",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"trackingInfo\\\": {\\n        \\\"driverPhone\\\": \\\"\\\",\\n        \\\"truckNumber\\\": \\\"\\\",\\n        \\\"vesselName\\\": \\\"\\\",\\n        \\\"imo\\\": \\\"\\\",\\n        \\\"mmsi\\\": \\\"\\\",\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"containerInfo\\\": {\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"load\\\": {\\n        \\\"loadNumber\\\": \\\"stop_completion_1_Update_New1\\\",\\n        \\\"priority\\\": \\\"normal\\\",\\n        \\\"operatingCarrierScac\\\": null,\\n        \\\"carrierPermalink\\\": \\\"oceancarrier\\\",\\n        \\\"products\\\": [],\\n        \\\"bookingNumber\\\": \\\"\\\",\\n        \\\"billOfLading\\\": \\\"GOA230437868\\\",\\n        \\\"referenceNumbers\\\": [],\\n        \\\"stops\\\": [\\n            {\\n                \\\"stopId\\\": \\\"1112443717\\\",\\n                \\\"addressLine1\\\": \\\"501 W\\\",\\n                \\\"city\\\": \\\"Chennai\\\",\\n                \\\"state\\\": \\\"TN\\\",\\n                \\\"country\\\": \\\"IN\\\",\\n                \\\"wantTime\\\": null,\\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\\\": \\\"Ocean Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Ocean 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\\\": \\\"8471499000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"OCEAN_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8471499000\\\",\\n                    \\\"orderNumber\\\": \\\"GOA230437868\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-INMAA\\\",\\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\\\": [\\\"OOLU4404637\\\"],\\n                    \\\"orderReferences\\\": [\\\"GOA230437868\\\"],\\n                    \\\"brandName\\\": \\\"Generic Ocean Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"OCEAN-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n            }\\n        ]\\n    }\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api.fourkites.com/api/v1/tracking/420295963\")\n  .method(\"PATCH\", body)\n  .addHeader(\"Content-Type\", \"application/json\")\n  .addHeader(\"apikey\", \"SPORD36GQF16LDMS89WRF2WQE6RH6\")\n  .addHeader(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", \"\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "cNQowxk46sUDr12iRoTsG",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api.fourkites.com/api/v1/tracking/420295963\",\n  \"method\": \"PATCH\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"apikey\": \"SPORD36GQF16LDMS89WRF2WQE6RH6\",\n    \"SPORD36GQF16LDMS89WRF2WQE6RH6\": \"\"\n  },\n  \"data\": JSON.stringify({\n    \"trackingInfo\": {\n      \"driverPhone\": \"\",\n      \"truckNumber\": \"\",\n      \"vesselName\": \"\",\n      \"imo\": \"\",\n      \"mmsi\": \"\",\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n      \"loadNumber\": \"stop_completion_1_Update_New1\",\n      \"priority\": \"normal\",\n      \"operatingCarrierScac\": null,\n      \"carrierPermalink\": \"oceancarrier\",\n      \"products\": [],\n      \"bookingNumber\": \"\",\n      \"billOfLading\": \"GOA230437868\",\n      \"referenceNumbers\": [],\n      \"stops\": [\n        {\n          \"stopId\": \"1112443717\",\n          \"addressLine1\": \"501 W\",\n          \"city\": \"Chennai\",\n          \"state\": \"TN\",\n          \"country\": \"IN\",\n          \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                \"productDescription\": \"Ocean 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\": \"8471499000\",\n                \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                \"htsusCode\": \"8471499000\",\n                \"orderNumber\": \"GOA230437868\",\n                \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                \"orderReferences\": [\"GOA230437868\"],\n                \"brandName\": \"Generic Ocean Freight Co\",\n                \"minimumTemperature\": 0,\n                \"maximumTemperature\": 0,\n                \"temperatureUnitCode\": \"cel\",\n                \"labelIdentifier\": \"LBL-22EE\",\n                \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                \"deviceType\": \"RFID_TAG\"\n            }\n        ]\n        }\n      ]\n    }\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "IMlb4-NHPezxVgthXOoQO",
        "language": "swift",
        "code": "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n    \\\"trackingInfo\\\": {\\n        \\\"driverPhone\\\": \\\"\\\",\\n        \\\"truckNumber\\\": \\\"\\\",\\n        \\\"vesselName\\\": \\\"\\\",\\n        \\\"imo\\\": \\\"\\\",\\n        \\\"mmsi\\\": \\\"\\\",\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"containerInfo\\\": {\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"load\\\": {\\n        \\\"loadNumber\\\": \\\"stop_completion_1_Update_New1\\\",\\n        \\\"priority\\\": \\\"normal\\\",\\n        \\\"operatingCarrierScac\\\": null,\\n        \\\"carrierPermalink\\\": \\\"oceancarrier\\\",\\n        \\\"products\\\": [],\\n        \\\"bookingNumber\\\": \\\"\\\",\\n        \\\"billOfLading\\\": \\\"GOA230437868\\\",\\n        \\\"referenceNumbers\\\": [],\\n        \\\"stops\\\": [\\n            {\\n                \\\"stopId\\\": \\\"1112443717\\\",\\n                \\\"addressLine1\\\": \\\"501 W\\\",\\n                \\\"city\\\": \\\"Chennai\\\",\\n                \\\"state\\\": \\\"TN\\\",\\n                \\\"country\\\": \\\"IN\\\",\\n                \\\"wantTime\\\": null,\\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\\\": \\\"Ocean Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Ocean 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\\\": \\\"8471499000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"OCEAN_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8471499000\\\",\\n                    \\\"orderNumber\\\": \\\"GOA230437868\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-INMAA\\\",\\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\\\": [\\\"OOLU4404637\\\"],\\n                    \\\"orderReferences\\\": [\\\"GOA230437868\\\"],\\n                    \\\"brandName\\\": \\\"Generic Ocean Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"OCEAN-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n            }\\n        ]\\n    }\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api.fourkites.com/api/v1/tracking/420295963\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\nrequest.addValue(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", forHTTPHeaderField: \"apikey\")\nrequest.addValue(\"\", forHTTPHeaderField: \"SPORD36GQF16LDMS89WRF2WQE6RH6\")\n\nrequest.httpMethod = \"PATCH\"\nrequest.httpBody = postData\n\nlet task = URLSession.shared.dataTask(with: request) { data, response, error in \n  guard let data = data else {\n    print(String(describing: error))\n    semaphore.signal()\n    return\n  }\n  print(String(data: data, encoding: .utf8)!)\n  semaphore.signal()\n}\n\ntask.resume()\nsemaphore.wait()\n",
        "customLabel": ""
      },
      {
        "id": "fXrAW0qzWkwHzu0Ziuc0R",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api.fourkites.com/api/v1/tracking/420295963\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"apikey\", \"SPORD36GQF16LDMS89WRF2WQE6RH6\");\nrequest.AddHeader(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", \"\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"trackingInfo\"\": {\" + \"\\n\" +\n@\"        \"\"driverPhone\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"truckNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"vesselName\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"imo\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"mmsi\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"containerInfo\"\": {\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"load\"\": {\" + \"\\n\" +\n@\"        \"\"loadNumber\"\": \"\"stop_completion_1_Update_New1\"\",\" + \"\\n\" +\n@\"        \"\"priority\"\": \"\"normal\"\",\" + \"\\n\" +\n@\"        \"\"operatingCarrierScac\"\": null,\" + \"\\n\" +\n@\"        \"\"carrierPermalink\"\": \"\"oceancarrier\"\",\" + \"\\n\" +\n@\"        \"\"products\"\": [],\" + \"\\n\" +\n@\"        \"\"bookingNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"billOfLading\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"        \"\"referenceNumbers\"\": [],\" + \"\\n\" +\n@\"        \"\"stops\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"stopId\"\": \"\"1112443717\"\",\" + \"\\n\" +\n@\"                \"\"addressLine1\"\": \"\"501 W\"\",\" + \"\\n\" +\n@\"                \"\"city\"\": \"\"Chennai\"\",\" + \"\\n\" +\n@\"                \"\"state\"\": \"\"TN\"\",\" + \"\\n\" +\n@\"                \"\"country\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"wantTime\"\": null,\" + \"\\n\" +\n@\"        \"\"pallets\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"number\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"parts\"\": [\" + \"\\n\" +\n@\"                    {\" + \"\\n\" +\n@\"                        \"\"quantity\"\": \"\"25\"\",\" + \"\\n\" +\n@\"                        \"\"shipperPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                        \"\"weight\"\": \"\"7.998\"\"\" + \"\\n\" +\n@\"                    }\" + \"\\n\" +\n@\"                ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ],\" + \"\\n\" +\n@\"        \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                \"\"productName\"\": \"\"Ocean Freight Item\"\",\" + \"\\n\" +\n@\"                \"\"productDescription\"\": \"\"Ocean shipment item\"\",\" + \"\\n\" +\n@\"                \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                \"\"quantity\"\": 25,\" + \"\\n\" +\n@\"                \"\"measurementUnitCode\"\": \"\"PCE\"\",\" + \"\\n\" +\n@\"                \"\"netWeight\"\": 44.8,\" + \"\\n\" +\n@\"                \"\"weightUnit\"\": \"\"KGM\"\",\" + \"\\n\" +\n@\"                \"\"unitCost\"\": 25.0,\" + \"\\n\" +\n@\"                \"\"currencyCode\"\": \"\"USD\"\",\" + \"\\n\" +\n@\"                \"\"extendedCost\"\": 625.00,\" + \"\\n\" +\n@\"                \"\"freightCost\"\": 20.00,\" + \"\\n\" +\n@\"                \"\"additionalCharges\"\": 5.00,\" + \"\\n\" +\n@\"                \"\"tariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"fourKitesCalculatedTariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"totalLandedCost\"\": 655.00,\" + \"\\n\" +\n@\"                \"\"countryOfOrigin\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"harmonizedSystemCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"commodityTypeCode\"\": \"\"OCEAN_FREIGHT\"\",\" + \"\\n\" +\n@\"                \"\"htsusCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"orderNumber\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"                \"\"deliveryNumber\"\": \"\"DN-INMAA\"\",\" + \"\\n\" +\n@\"                \"\"handlingUnitId\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"barcode\"\": \"\"PAL001\"\",\" + \"\\n\" +\n@\"                \"\"containerType\"\": \"\"pallet\"\",\" + \"\\n\" +\n@\"                \"\"gtin\"\": \"\"00012345678905\"\",\" + \"\\n\" +\n@\"                \"\"customerPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"supplierPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"manufacturerPartNumber\"\": \"\"MFG-22EE\"\",\" + \"\\n\" +\n@\"                \"\"itemNumber\"\": \"\"ITM-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productUpc\"\": \"\"012345678905\"\",\" + \"\\n\" +\n@\"                \"\"deliveryReferences\"\": [\"\"OOLU4404637\"\"],\" + \"\\n\" +\n@\"                \"\"orderReferences\"\": [\"\"GOA230437868\"\"],\" + \"\\n\" +\n@\"                \"\"brandName\"\": \"\"Generic Ocean Freight Co\"\",\" + \"\\n\" +\n@\"                \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productTrackingNumber\"\": \"\"OCEAN-STOP-001\"\",\" + \"\\n\" +\n@\"                \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"    }\" + \"\\n\" +\n@\"}\";\nrequest.AddParameter(\"application/json\", body,  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);",
        "customLabel": ""
      },
      {
        "id": "0IKI39VlFOuW8nM3RrYQS",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n\n  url := \"https://api.fourkites.com/api/v1/tracking/420295963\"\n  method := \"PATCH\"\n\n  payload := strings.NewReader(`{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New1\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopId\": \"1112443717\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"apikey\", \"SPORD36GQF16LDMS89WRF2WQE6RH6\")\n  req.Header.Add(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", \"\")\n\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      },
      {
        "id": "Vt6NR_wcZm4bMaceEy6Rw",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fourkites.com/api/v1/tracking/420295963\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"apikey\"] = \"SPORD36GQF16LDMS89WRF2WQE6RH6\"\nrequest[\"SPORD36GQF16LDMS89WRF2WQE6RH6\"] = \"\"\nrequest.body = JSON.dump({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New1\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": nil,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopId\": \"1112443717\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": nil,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "IJ912xDXsr_30wmpObXOX",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api.fourkites.com\")\npayload = json.dumps({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New1\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": None,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopId\": \"1112443717\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": None,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\nheaders = {\n  'Content-Type': 'application/json',\n  'apikey': 'SPORD36GQF16LDMS89WRF2WQE6RH6',\n  'SPORD36GQF16LDMS89WRF2WQE6RH6': ''\n}\nconn.request(\"PATCH\", \"/api/v1/tracking/420295963\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "fak1lcpsSvGB-bpxEN-p0"
  },
  "results": {
    "languages": [
      {
        "id": "kZy64iXjSya48NZsEuB7c",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Load updated successfully\",\n    \"requestId\": \"cojsf9oikb5on1nlcij0\",\n    \"statusCode\": 200\n}"
      },
      {
        "id": "IaoCeotlRjCBKMefBv6EF",
        "language": "400",
        "code": "{\n    \"errors\": [\n        \"Stops should not contain more than one port of loading and port of discharge\"\n    ],\n    \"message\": \"\",\n    \"requestId\": \"cojq1c8ikb5on1nklj1g\",\n    \"statusCode\": 400\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "kZy64iXjSya48NZsEuB7c"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "trackingInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "driverPhone",
            "kind": "optional",
            "type": "string",
            "description": "It indicates a valid mobile number. Example: +13125555555"
          },
          {
            "name": "truckNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the tractor or asset number dispatched by the carrier for the load."
          },
          {
            "name": "vesselName",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the name of the vessel carrying the load."
          },
          {
            "name": "imo",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the international maritime organization number."
          },
          {
            "name": "mmsi",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the Maritime Mobile Service Identity (MMSI) of the vessel."
          },
          {
            "name": "containerNumber",
            "kind": "required",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel. ISO6346 format."
          }
        ]
      },
      {
        "name": "containerInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "containerNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel."
          }
        ]
      },
      {
        "name": "load",
        "kind": "optional",
        "type": "object",
        "description": "It is the parent object for the load. Place the load attributes inside this object.",
        "children": [
          {
            "name": "loadNumber",
            "kind": "required",
            "type": "string",
            "description": "It is the unique load identifier from shipper's system. The load Number or BOL is an important piece of information used to link the load with truck information received from the Carrier's TMS."
          },
          {
            "name": "priority",
            "kind": "optional",
            "type": "string",
            "description": "It indicates whether a load is of normal or high priority. If priority is set as ‘hot’, the load will be marked as ‘Hot’. Valid values: ‘normal’, ‘high’ and ‘hot’. Defaults to normal. Setting the 'Priority' as 'hot' will mark the load as 'Hot' load."
          },
          {
            "name": "operatingCarrierScac",
            "kind": "optional",
            "type": "string",
            "description": "SCAC or code of the operating carrier if setting up managing/operating carrier"
          },
          {
            "name": "carrierPermalink",
            "kind": "optional",
            "type": "string",
            "description": "It is the unique identifier for the carrier in the FK platform."
          },
          {
            "name": "products",
            "kind": "optional",
            "type": "object",
            "description": "It indicates the list of temperature tracked products on a load and their temperature tracking information."
          },
          {
            "name": "bookingNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the shipping line's booking number."
          },
          {
            "name": "billOfLading",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the bill of lading associated with the Ocean load."
          },
          {
            "name": "referenceNumbers",
            "kind": "optional",
            "type": "string",
            "description": "It is the list of load level reference numbers associated with a load. (CM)"
          },
          {
            "name": "stops",
            "kind": "required",
            "type": "object",
            "description": "It is the list of stops for the load.",
            "children": [
              {
                "name": "stopId",
                "kind": "required",
                "type": "string",
                "description": "Do a Get Shipment API call to get the fourKiteStopID value."
              },
              {
                "name": "addressLine1",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the first line of the stop's address."
              },
              {
                "name": "city",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the name of the city."
              },
              {
                "name": "state",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the 2 character state code for US & Canada and 3 Character state code for Mexico. "
              },
              {
                "name": "country",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the valid country code. It is the 2 digit country code."
              },
              {
                "name": "wantTime",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the time by which the load must be delivered to the consignee in stop's local time zone in ISO 8601 format. (CM)"
              },
              {
                "name": "pallets",
                "kind": "optional",
                "type": "object",
                "description": "It indicates the list of pallets to be delivered at the stop. Each pallet has a pallet number and list of parts.",
                "children": [
                  {
                    "name": "number",
                    "kind": "optional",
                    "type": "string",
                    "description": "It indicates the pallet number."
                  },
                  {
                    "name": "parts",
                    "kind": "optional",
                    "type": "object",
                    "description": "It indicates the list of parts in the pallet.",
                    "children": [
                      {
                        "name": "quantity",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the quantity of the part."
                      },
                      {
                        "name": "shipperPartNumber",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the shipper/manufacturer’s part number."
                      },
                      {
                        "name": "weight",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the weight of the part."
                      }
                    ]
                  }
                ]
              },
              {
                "name": "productLineItems",
                "kind": "optional",
                "type": "object",
                "description": "It is the list of product level details associated with a stop. Replaces the legacy pallets/parts structure going forward.",
                "children": [
                  {
                    "name": "productId",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier for the product. Mandatory if productLineItems object is present"
                  },
                  {
                    "name": "productName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Name of the product"
                  },
                  {
                    "name": "productDescription",
                    "kind": "optional",
                    "type": "string",
                    "description": "Detailed description of the product"
                  },
                  {
                    "name": "productCategory",
                    "kind": "optional",
                    "type": "string",
                    "description": "Category classification of the product"
                  },
                  {
                    "name": "quantity",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Number of units in the shipment"
                  },
                  {
                    "name": "measurementUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for quantity (e.g., PCE, KG, LB)"
                  },
                  {
                    "name": "netWeight",
                    "kind": "optional",
                    "type": "string",
                    "description": "Weight of the product excluding packaging"
                  },
                  {
                    "name": "weightUnit",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for weight (e.g., KGM, LBM)"
                  },
                  {
                    "name": "unitCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Cost per unit of the product"
                  },
                  {
                    "name": "currencyCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Currency code for cost fields"
                  },
                  {
                    "name": "extendedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total cost for all units (unitCost x quantity)"
                  },
                  {
                    "name": "freightCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Freight cost allocated to this line item"
                  },
                  {
                    "name": "bestBeforeDate",
                    "kind": "optional",
                    "type": "string",
                    "description": "Expiration or best before date for the product"
                  },
                  {
                    "name": "additionalCharges",
                    "kind": "optional",
                    "type": "number",
                    "description": "Any additional charges specific to this line item"
                  },
                  {
                    "name": "tariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Tariff cost for this specific line item"
                  },
                  {
                    "name": "fourKitesCalculatedTariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "System-calculated tariff cost"
                  },
                  {
                    "name": "totalLandedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total landed cost for this line item"
                  },
                  {
                    "name": "countryOfOrigin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country of origin for this product"
                  },
                  {
                    "name": "harmonizedSystemCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "International trade classification code"
                  },
                  {
                    "name": "commodityTypeCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Commodity classification code"
                  },
                  {
                    "name": "htsusCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Harmonized Tariff Schedule code for US imports"
                  },
                  {
                    "name": "orderNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Purchase order number"
                  },
                  {
                    "name": "deliveryNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Delivery reference number"
                  },
                  {
                    "name": "handlingUnitId",
                    "kind": "optional",
                    "type": "string",
                    "description": "Identifier for the handling unit (pallet, box, etc.)"
                  },
                  {
                    "name": "barcode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Product barcode"
                  },
                  {
                    "name": "containerType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of container (pallet, box, carton, etc.)"
                  },
                  {
                    "name": "gtin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Global Trade Item Number"
                  },
                  {
                    "name": "customerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Customer's part number for the product"
                  },
                  {
                    "name": "supplierPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Supplier's part number for the product"
                  },
                  {
                    "name": "manufacturerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Manufacturer's part number"
                  },
                  {
                    "name": "itemNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Internal item number"
                  },
                  {
                    "name": "productUpc",
                    "kind": "optional",
                    "type": "string",
                    "description": "Universal Product Code"
                  },
                  {
                    "name": "deliveryReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of delivery reference numbers"
                  },
                  {
                    "name": "orderReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of order reference numbers"
                  },
                  {
                    "name": "brandName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Brand name of the product"
                  },
                  {
                    "name": "minimumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Minimum storage/transport temperature"
                  },
                  {
                    "name": "maximumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Maximum storage/transport temperature"
                  },
                  {
                    "name": "temperatureUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Temperature unit (cel, fah)"
                  },
                  {
                    "name": "labelIdentifier",
                    "kind": "optional",
                    "type": "string",
                    "description": "Label identifier for tracking"
                  },
                  {
                    "name": "productTrackingNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unique tracking number for the product"
                  },
                  {
                    "name": "deviceType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of tracking device (RFID_TAG, QR_CODE, etc.)"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "using-stopid",
  "legacyHash": "b-TfyNxgZZSofZRsXUhG_"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Using stopId (Staging)",
  "method": "PATCH",
  "url": "https://api-staging.fourkites.com/api/v1/tracking/420742096",
  "description": "Staging",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "fak1lcpsSvGB-bpxEN-p0",
        "language": "curl",
        "code": "curl --location --request PATCH 'https://api-staging.fourkites.com/api/v1/tracking/420295963' \\\n--header 'Content-Type: application/json' \\\n--header 'apikey: REPLACE_KEY_VALUE' \\\n--data-raw '{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New1\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopId\": \"1112443717\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}'",
        "customLabel": ""
      },
      {
        "id": "vQbfMz8V7nfbuXW3Fs4DW",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"trackingInfo\\\": {\\n        \\\"driverPhone\\\": \\\"\\\",\\n        \\\"truckNumber\\\": \\\"\\\",\\n        \\\"vesselName\\\": \\\"\\\",\\n        \\\"imo\\\": \\\"\\\",\\n        \\\"mmsi\\\": \\\"\\\",\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"containerInfo\\\": {\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"load\\\": {\\n        \\\"loadNumber\\\": \\\"stop_completion_1_Update_New1\\\",\\n        \\\"priority\\\": \\\"normal\\\",\\n        \\\"operatingCarrierScac\\\": null,\\n        \\\"carrierPermalink\\\": \\\"oceancarrier\\\",\\n        \\\"products\\\": [],\\n        \\\"bookingNumber\\\": \\\"\\\",\\n        \\\"billOfLading\\\": \\\"GOA230437868\\\",\\n        \\\"referenceNumbers\\\": [],\\n        \\\"stops\\\": [\\n            {\\n                \\\"stopId\\\": \\\"1112443717\\\",\\n                \\\"addressLine1\\\": \\\"501 W\\\",\\n                \\\"city\\\": \\\"Chennai\\\",\\n                \\\"state\\\": \\\"TN\\\",\\n                \\\"country\\\": \\\"IN\\\",\\n                \\\"wantTime\\\": null,\\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\\\": \\\"Ocean Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Ocean 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\\\": \\\"8471499000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"OCEAN_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8471499000\\\",\\n                    \\\"orderNumber\\\": \\\"GOA230437868\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-INMAA\\\",\\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\\\": [\\\"OOLU4404637\\\"],\\n                    \\\"orderReferences\\\": [\\\"GOA230437868\\\"],\\n                    \\\"brandName\\\": \\\"Generic Ocean Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"OCEAN-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n            }\\n        ]\\n    }\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api-staging.fourkites.com/api/v1/tracking/420295963\")\n  .method(\"PATCH\", body)\n  .addHeader(\"Content-Type\", \"application/json\")\n  .addHeader(\"apikey\", \"SPORD36GQF16LDMS89WRF2WQE6RH6\")\n  .addHeader(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", \"\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "cNQowxk46sUDr12iRoTsG",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api-staging.fourkites.com/api/v1/tracking/420295963\",\n  \"method\": \"PATCH\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"Content-Type\": \"application/json\",\n    \"apikey\": \"SPORD36GQF16LDMS89WRF2WQE6RH6\",\n    \"SPORD36GQF16LDMS89WRF2WQE6RH6\": \"\"\n  },\n  \"data\": JSON.stringify({\n    \"trackingInfo\": {\n      \"driverPhone\": \"\",\n      \"truckNumber\": \"\",\n      \"vesselName\": \"\",\n      \"imo\": \"\",\n      \"mmsi\": \"\",\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n      \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n      \"loadNumber\": \"stop_completion_1_Update_New1\",\n      \"priority\": \"normal\",\n      \"operatingCarrierScac\": null,\n      \"carrierPermalink\": \"oceancarrier\",\n      \"products\": [],\n      \"bookingNumber\": \"\",\n      \"billOfLading\": \"GOA230437868\",\n      \"referenceNumbers\": [],\n      \"stops\": [\n        {\n          \"stopId\": \"1112443717\",\n          \"addressLine1\": \"501 W\",\n          \"city\": \"Chennai\",\n          \"state\": \"TN\",\n          \"country\": \"IN\",\n          \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                \"productDescription\": \"Ocean 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\": \"8471499000\",\n                \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                \"htsusCode\": \"8471499000\",\n                \"orderNumber\": \"GOA230437868\",\n                \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                \"orderReferences\": [\"GOA230437868\"],\n                \"brandName\": \"Generic Ocean Freight Co\",\n                \"minimumTemperature\": 0,\n                \"maximumTemperature\": 0,\n                \"temperatureUnitCode\": \"cel\",\n                \"labelIdentifier\": \"LBL-22EE\",\n                \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                \"deviceType\": \"RFID_TAG\"\n            }\n        ]\n        }\n      ]\n    }\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "IMlb4-NHPezxVgthXOoQO",
        "language": "swift",
        "code": "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n    \\\"trackingInfo\\\": {\\n        \\\"driverPhone\\\": \\\"\\\",\\n        \\\"truckNumber\\\": \\\"\\\",\\n        \\\"vesselName\\\": \\\"\\\",\\n        \\\"imo\\\": \\\"\\\",\\n        \\\"mmsi\\\": \\\"\\\",\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"containerInfo\\\": {\\n        \\\"containerNumber\\\": \\\"OOLU4404637\\\"\\n    },\\n    \\\"load\\\": {\\n        \\\"loadNumber\\\": \\\"stop_completion_1_Update_New1\\\",\\n        \\\"priority\\\": \\\"normal\\\",\\n        \\\"operatingCarrierScac\\\": null,\\n        \\\"carrierPermalink\\\": \\\"oceancarrier\\\",\\n        \\\"products\\\": [],\\n        \\\"bookingNumber\\\": \\\"\\\",\\n        \\\"billOfLading\\\": \\\"GOA230437868\\\",\\n        \\\"referenceNumbers\\\": [],\\n        \\\"stops\\\": [\\n            {\\n                \\\"stopId\\\": \\\"1112443717\\\",\\n                \\\"addressLine1\\\": \\\"501 W\\\",\\n                \\\"city\\\": \\\"Chennai\\\",\\n                \\\"state\\\": \\\"TN\\\",\\n                \\\"country\\\": \\\"IN\\\",\\n                \\\"wantTime\\\": null,\\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\\\": \\\"Ocean Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Ocean 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\\\": \\\"8471499000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"OCEAN_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8471499000\\\",\\n                    \\\"orderNumber\\\": \\\"GOA230437868\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-INMAA\\\",\\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\\\": [\\\"OOLU4404637\\\"],\\n                    \\\"orderReferences\\\": [\\\"GOA230437868\\\"],\\n                    \\\"brandName\\\": \\\"Generic Ocean Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"OCEAN-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n            }\\n        ]\\n    }\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api-staging.fourkites.com/api/v1/tracking/420295963\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\nrequest.addValue(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", forHTTPHeaderField: \"apikey\")\nrequest.addValue(\"\", forHTTPHeaderField: \"SPORD36GQF16LDMS89WRF2WQE6RH6\")\n\nrequest.httpMethod = \"PATCH\"\nrequest.httpBody = postData\n\nlet task = URLSession.shared.dataTask(with: request) { data, response, error in \n  guard let data = data else {\n    print(String(describing: error))\n    semaphore.signal()\n    return\n  }\n  print(String(data: data, encoding: .utf8)!)\n  semaphore.signal()\n}\n\ntask.resume()\nsemaphore.wait()\n",
        "customLabel": ""
      },
      {
        "id": "fXrAW0qzWkwHzu0Ziuc0R",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api-staging.fourkites.com/api/v1/tracking/420295963\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.PATCH);\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nrequest.AddHeader(\"apikey\", \"SPORD36GQF16LDMS89WRF2WQE6RH6\");\nrequest.AddHeader(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", \"\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"trackingInfo\"\": {\" + \"\\n\" +\n@\"        \"\"driverPhone\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"truckNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"vesselName\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"imo\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"mmsi\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"containerInfo\"\": {\" + \"\\n\" +\n@\"        \"\"containerNumber\"\": \"\"OOLU4404637\"\"\" + \"\\n\" +\n@\"    },\" + \"\\n\" +\n@\"    \"\"load\"\": {\" + \"\\n\" +\n@\"        \"\"loadNumber\"\": \"\"stop_completion_1_Update_New1\"\",\" + \"\\n\" +\n@\"        \"\"priority\"\": \"\"normal\"\",\" + \"\\n\" +\n@\"        \"\"operatingCarrierScac\"\": null,\" + \"\\n\" +\n@\"        \"\"carrierPermalink\"\": \"\"oceancarrier\"\",\" + \"\\n\" +\n@\"        \"\"products\"\": [],\" + \"\\n\" +\n@\"        \"\"bookingNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"        \"\"billOfLading\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"        \"\"referenceNumbers\"\": [],\" + \"\\n\" +\n@\"        \"\"stops\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"stopId\"\": \"\"1112443717\"\",\" + \"\\n\" +\n@\"                \"\"addressLine1\"\": \"\"501 W\"\",\" + \"\\n\" +\n@\"                \"\"city\"\": \"\"Chennai\"\",\" + \"\\n\" +\n@\"                \"\"state\"\": \"\"TN\"\",\" + \"\\n\" +\n@\"                \"\"country\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"wantTime\"\": null,\" + \"\\n\" +\n@\"        \"\"pallets\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"number\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"parts\"\": [\" + \"\\n\" +\n@\"                    {\" + \"\\n\" +\n@\"                        \"\"quantity\"\": \"\"25\"\",\" + \"\\n\" +\n@\"                        \"\"shipperPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                        \"\"weight\"\": \"\"7.998\"\"\" + \"\\n\" +\n@\"                    }\" + \"\\n\" +\n@\"                ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ],\" + \"\\n\" +\n@\"        \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"            {\" + \"\\n\" +\n@\"                \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                \"\"productName\"\": \"\"Ocean Freight Item\"\",\" + \"\\n\" +\n@\"                \"\"productDescription\"\": \"\"Ocean shipment item\"\",\" + \"\\n\" +\n@\"                \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                \"\"quantity\"\": 25,\" + \"\\n\" +\n@\"                \"\"measurementUnitCode\"\": \"\"PCE\"\",\" + \"\\n\" +\n@\"                \"\"netWeight\"\": 44.8,\" + \"\\n\" +\n@\"                \"\"weightUnit\"\": \"\"KGM\"\",\" + \"\\n\" +\n@\"                \"\"unitCost\"\": 25.0,\" + \"\\n\" +\n@\"                \"\"currencyCode\"\": \"\"USD\"\",\" + \"\\n\" +\n@\"                \"\"extendedCost\"\": 625.00,\" + \"\\n\" +\n@\"                \"\"freightCost\"\": 20.00,\" + \"\\n\" +\n@\"                \"\"additionalCharges\"\": 5.00,\" + \"\\n\" +\n@\"                \"\"tariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"fourKitesCalculatedTariffCost\"\": 2.50,\" + \"\\n\" +\n@\"                \"\"totalLandedCost\"\": 655.00,\" + \"\\n\" +\n@\"                \"\"countryOfOrigin\"\": \"\"IN\"\",\" + \"\\n\" +\n@\"                \"\"harmonizedSystemCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"commodityTypeCode\"\": \"\"OCEAN_FREIGHT\"\",\" + \"\\n\" +\n@\"                \"\"htsusCode\"\": \"\"8471499000\"\",\" + \"\\n\" +\n@\"                \"\"orderNumber\"\": \"\"GOA230437868\"\",\" + \"\\n\" +\n@\"                \"\"deliveryNumber\"\": \"\"DN-INMAA\"\",\" + \"\\n\" +\n@\"                \"\"handlingUnitId\"\": \"\"PAL-001\"\",\" + \"\\n\" +\n@\"                \"\"barcode\"\": \"\"PAL001\"\",\" + \"\\n\" +\n@\"                \"\"containerType\"\": \"\"pallet\"\",\" + \"\\n\" +\n@\"                \"\"gtin\"\": \"\"00012345678905\"\",\" + \"\\n\" +\n@\"                \"\"customerPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"supplierPartNumber\"\": \"\"22EE\"\",\" + \"\\n\" +\n@\"                \"\"manufacturerPartNumber\"\": \"\"MFG-22EE\"\",\" + \"\\n\" +\n@\"                \"\"itemNumber\"\": \"\"ITM-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productUpc\"\": \"\"012345678905\"\",\" + \"\\n\" +\n@\"                \"\"deliveryReferences\"\": [\"\"OOLU4404637\"\"],\" + \"\\n\" +\n@\"                \"\"orderReferences\"\": [\"\"GOA230437868\"\"],\" + \"\\n\" +\n@\"                \"\"brandName\"\": \"\"Generic Ocean Freight Co\"\",\" + \"\\n\" +\n@\"                \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                \"\"productTrackingNumber\"\": \"\"OCEAN-STOP-001\"\",\" + \"\\n\" +\n@\"                \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"            }\" + \"\\n\" +\n@\"        ]\" + \"\\n\" +\n@\"    }\" + \"\\n\" +\n@\"}\";\nrequest.AddParameter(\"application/json\", body,  ParameterType.RequestBody);\nIRestResponse response = client.Execute(request);\nConsole.WriteLine(response.Content);",
        "customLabel": ""
      },
      {
        "id": "0IKI39VlFOuW8nM3RrYQS",
        "language": "go",
        "code": "package main\n\nimport (\n  \"fmt\"\n  \"strings\"\n  \"net/http\"\n  \"io/ioutil\"\n)\n\nfunc main() {\n\n  url := \"https://api-staging.fourkites.com/api/v1/tracking/420295963\"\n  method := \"PATCH\"\n\n  payload := strings.NewReader(`{\n    \"trackingInfo\": {\n        \"driverPhone\": \"\",\n        \"truckNumber\": \"\",\n        \"vesselName\": \"\",\n        \"imo\": \"\",\n        \"mmsi\": \"\",\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"containerInfo\": {\n        \"containerNumber\": \"OOLU4404637\"\n    },\n    \"load\": {\n        \"loadNumber\": \"stop_completion_1_Update_New1\",\n        \"priority\": \"normal\",\n        \"operatingCarrierScac\": null,\n        \"carrierPermalink\": \"oceancarrier\",\n        \"products\": [],\n        \"bookingNumber\": \"\",\n        \"billOfLading\": \"GOA230437868\",\n        \"referenceNumbers\": [],\n        \"stops\": [\n            {\n                \"stopId\": \"1112443717\",\n                \"addressLine1\": \"501 W\",\n                \"city\": \"Chennai\",\n                \"state\": \"TN\",\n                \"country\": \"IN\",\n                \"wantTime\": null,\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\": \"Ocean Freight Item\",\n                    \"productDescription\": \"Ocean 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\": \"8471499000\",\n                    \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n                    \"htsusCode\": \"8471499000\",\n                    \"orderNumber\": \"GOA230437868\",\n                    \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n                    \"orderReferences\": [\"GOA230437868\"],\n                    \"brandName\": \"Generic Ocean Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"OCEAN-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n            }\n        ]\n    }\n}`)\n\n  client := &http.Client {\n  }\n  req, err := http.NewRequest(method, url, payload)\n\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  req.Header.Add(\"Content-Type\", \"application/json\")\n  req.Header.Add(\"apikey\", \"SPORD36GQF16LDMS89WRF2WQE6RH6\")\n  req.Header.Add(\"SPORD36GQF16LDMS89WRF2WQE6RH6\", \"\")\n\n  res, err := client.Do(req)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  defer res.Body.Close()\n\n  body, err := ioutil.ReadAll(res.Body)\n  if err != nil {\n    fmt.Println(err)\n    return\n  }\n  fmt.Println(string(body))\n}",
        "customLabel": ""
      },
      {
        "id": "Vt6NR_wcZm4bMaceEy6Rw",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-staging.fourkites.com/api/v1/tracking/420295963\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Patch.new(url)\nrequest[\"Content-Type\"] = \"application/json\"\nrequest[\"apikey\"] = \"SPORD36GQF16LDMS89WRF2WQE6RH6\"\nrequest[\"SPORD36GQF16LDMS89WRF2WQE6RH6\"] = \"\"\nrequest.body = JSON.dump({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New1\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": nil,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopId\": \"1112443717\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": nil,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "IJ912xDXsr_30wmpObXOX",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api-staging.fourkites.com\")\npayload = json.dumps({\n  \"trackingInfo\": {\n    \"driverPhone\": \"\",\n    \"truckNumber\": \"\",\n    \"vesselName\": \"\",\n    \"imo\": \"\",\n    \"mmsi\": \"\",\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"containerInfo\": {\n    \"containerNumber\": \"OOLU4404637\"\n  },\n  \"load\": {\n    \"loadNumber\": \"stop_completion_1_Update_New1\",\n    \"priority\": \"normal\",\n    \"operatingCarrierScac\": None,\n    \"carrierPermalink\": \"oceancarrier\",\n    \"products\": [],\n    \"bookingNumber\": \"\",\n    \"billOfLading\": \"GOA230437868\",\n    \"referenceNumbers\": [],\n    \"stops\": [\n      {\n        \"stopId\": \"1112443717\",\n        \"addressLine1\": \"501 W\",\n        \"city\": \"Chennai\",\n        \"state\": \"TN\",\n        \"country\": \"IN\",\n        \"wantTime\": None,\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\": \"Ocean Freight Item\",\n              \"productDescription\": \"Ocean 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\": \"8471499000\",\n              \"commodityTypeCode\": \"OCEAN_FREIGHT\",\n              \"htsusCode\": \"8471499000\",\n              \"orderNumber\": \"GOA230437868\",\n              \"deliveryNumber\": \"DN-INMAA\",\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\": [\"OOLU4404637\"],\n              \"orderReferences\": [\"GOA230437868\"],\n              \"brandName\": \"Generic Ocean Freight Co\",\n              \"minimumTemperature\": 0,\n              \"maximumTemperature\": 0,\n              \"temperatureUnitCode\": \"cel\",\n              \"labelIdentifier\": \"LBL-22EE\",\n              \"productTrackingNumber\": \"OCEAN-STOP-001\",\n              \"deviceType\": \"RFID_TAG\"\n          }\n      ]\n      }\n    ]\n  }\n})\nheaders = {\n  'Content-Type': 'application/json',\n  'apikey': 'SPORD36GQF16LDMS89WRF2WQE6RH6',\n  'SPORD36GQF16LDMS89WRF2WQE6RH6': ''\n}\nconn.request(\"PATCH\", \"/api/v1/tracking/420295963\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "IJ912xDXsr_30wmpObXOX"
  },
  "results": {
    "languages": [
      {
        "id": "kZy64iXjSya48NZsEuB7c",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Load updated successfully\",\n    \"requestId\": \"cojsf9oikb5on1nlcij0\",\n    \"statusCode\": 200\n}"
      },
      {
        "id": "IaoCeotlRjCBKMefBv6EF",
        "language": "400",
        "code": "{\n    \"errors\": [\n        \"Stops should not contain more than one port of loading and port of discharge\"\n    ],\n    \"message\": \"\",\n    \"requestId\": \"cojq1c8ikb5on1nklj1g\",\n    \"statusCode\": 400\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "kZy64iXjSya48NZsEuB7c"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "trackingInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "driverPhone",
            "kind": "optional",
            "type": "string",
            "description": "It indicates a valid mobile number. Example: +13125555555"
          },
          {
            "name": "truckNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the tractor or asset number dispatched by the carrier for the load."
          },
          {
            "name": "vesselName",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the name of the vessel carrying the load."
          },
          {
            "name": "imo",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the international maritime organization number."
          },
          {
            "name": "mmsi",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the Maritime Mobile Service Identity (MMSI) of the vessel."
          },
          {
            "name": "containerNumber",
            "kind": "required",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel. ISO6346 format."
          }
        ]
      },
      {
        "name": "containerInfo",
        "kind": "optional",
        "type": "object",
        "description": "It indicates the information required for tracking the load.",
        "children": [
          {
            "name": "containerNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the number of the container that is on the vessel."
          }
        ]
      },
      {
        "name": "load",
        "kind": "optional",
        "type": "object",
        "description": "It is the parent object for the load. Place the load attributes inside this object.",
        "children": [
          {
            "name": "loadNumber",
            "kind": "required",
            "type": "string",
            "description": "It is the unique load identifier from shipper's system. The load Number or BOL is an important piece of information used to link the load with truck information received from the Carrier's TMS."
          },
          {
            "name": "priority",
            "kind": "optional",
            "type": "string",
            "description": "It indicates whether a load is of normal or high priority. If priority is set as ‘hot’, the load will be marked as ‘Hot’. Valid values: ‘normal’, ‘high’ and ‘hot’. Defaults to normal. Setting the 'Priority' as 'hot' will mark the load as 'Hot' load."
          },
          {
            "name": "operatingCarrierScac",
            "kind": "optional",
            "type": "string",
            "description": "SCAC or code of the operating carrier if setting up managing/operating carrier"
          },
          {
            "name": "carrierPermalink",
            "kind": "optional",
            "type": "string",
            "description": "It is the unique identifier for the carrier in the FK platform."
          },
          {
            "name": "products",
            "kind": "optional",
            "type": "object",
            "description": "It indicates the list of temperature tracked products on a load and their temperature tracking information."
          },
          {
            "name": "bookingNumber",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the shipping line's booking number."
          },
          {
            "name": "billOfLading",
            "kind": "optional",
            "type": "string",
            "description": "It indicates the bill of lading associated with the Ocean load."
          },
          {
            "name": "referenceNumbers",
            "kind": "optional",
            "type": "string",
            "description": "It is the list of load level reference numbers associated with a load. (CM)"
          },
          {
            "name": "stops",
            "kind": "required",
            "type": "object",
            "description": "It is the list of stops for the load.",
            "children": [
              {
                "name": "stopId",
                "kind": "required",
                "type": "string",
                "description": "Do a Get Shipment API call to get the fourKiteStopID value."
              },
              {
                "name": "addressLine1",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the first line of the stop's address."
              },
              {
                "name": "city",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the name of the city."
              },
              {
                "name": "state",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the 2 character state code for US & Canada and 3 Character state code for Mexico. "
              },
              {
                "name": "country",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the valid country code. It is the 2 digit country code."
              },
              {
                "name": "wantTime",
                "kind": "optional",
                "type": "string",
                "description": "It indicates the time by which the load must be delivered to the consignee in stop's local time zone in ISO 8601 format. (CM)"
              },
              {
                "name": "pallets",
                "kind": "optional",
                "type": "object",
                "description": "It indicates the list of pallets to be delivered at the stop. Each pallet has a pallet number and list of parts.",
                "children": [
                  {
                    "name": "number",
                    "kind": "optional",
                    "type": "string",
                    "description": "It indicates the pallet number."
                  },
                  {
                    "name": "parts",
                    "kind": "optional",
                    "type": "object",
                    "description": "It indicates the list of parts in the pallet.",
                    "children": [
                      {
                        "name": "quantity",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the quantity of the part."
                      },
                      {
                        "name": "shipperPartNumber",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the shipper/manufacturer’s part number."
                      },
                      {
                        "name": "weight",
                        "kind": "optional",
                        "type": "string",
                        "description": "It indicates the weight of the part."
                      }
                    ]
                  }
                ]
              },
              {
                "name": "productLineItems",
                "kind": "optional",
                "type": "object",
                "description": "It is the list of product level details associated with a stop. Replaces the legacy pallets/parts structure going forward.",
                "children": [
                  {
                    "name": "productId",
                    "kind": "required",
                    "type": "string",
                    "description": "Unique identifier for the product. Mandatory if productLineItems object is present"
                  },
                  {
                    "name": "productName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Name of the product"
                  },
                  {
                    "name": "productDescription",
                    "kind": "optional",
                    "type": "string",
                    "description": "Detailed description of the product"
                  },
                  {
                    "name": "productCategory",
                    "kind": "optional",
                    "type": "string",
                    "description": "Category classification of the product"
                  },
                  {
                    "name": "quantity",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Number of units in the shipment"
                  },
                  {
                    "name": "measurementUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for quantity (e.g., PCE, KG, LB)"
                  },
                  {
                    "name": "netWeight",
                    "kind": "optional",
                    "type": "string",
                    "description": "Weight of the product excluding packaging"
                  },
                  {
                    "name": "weightUnit",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unit of measurement for weight (e.g., KGM, LBM)"
                  },
                  {
                    "name": "unitCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Cost per unit of the product"
                  },
                  {
                    "name": "currencyCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Currency code for cost fields"
                  },
                  {
                    "name": "extendedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total cost for all units (unitCost x quantity)"
                  },
                  {
                    "name": "freightCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Freight cost allocated to this line item"
                  },
                  {
                    "name": "bestBeforeDate",
                    "kind": "optional",
                    "type": "string",
                    "description": "Expiration or best before date for the product"
                  },
                  {
                    "name": "additionalCharges",
                    "kind": "optional",
                    "type": "number",
                    "description": "Any additional charges specific to this line item"
                  },
                  {
                    "name": "tariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Tariff cost for this specific line item"
                  },
                  {
                    "name": "fourKitesCalculatedTariffCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "System-calculated tariff cost"
                  },
                  {
                    "name": "totalLandedCost",
                    "kind": "optional",
                    "type": "number",
                    "description": "Total landed cost for this line item"
                  },
                  {
                    "name": "countryOfOrigin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Country of origin for this product"
                  },
                  {
                    "name": "harmonizedSystemCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "International trade classification code"
                  },
                  {
                    "name": "commodityTypeCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Commodity classification code"
                  },
                  {
                    "name": "htsusCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Harmonized Tariff Schedule code for US imports"
                  },
                  {
                    "name": "orderNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Purchase order number"
                  },
                  {
                    "name": "deliveryNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Delivery reference number"
                  },
                  {
                    "name": "handlingUnitId",
                    "kind": "optional",
                    "type": "string",
                    "description": "Identifier for the handling unit (pallet, box, etc.)"
                  },
                  {
                    "name": "barcode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Product barcode"
                  },
                  {
                    "name": "containerType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of container (pallet, box, carton, etc.)"
                  },
                  {
                    "name": "gtin",
                    "kind": "optional",
                    "type": "string",
                    "description": "Global Trade Item Number"
                  },
                  {
                    "name": "customerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Customer's part number for the product"
                  },
                  {
                    "name": "supplierPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Supplier's part number for the product"
                  },
                  {
                    "name": "manufacturerPartNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Manufacturer's part number"
                  },
                  {
                    "name": "itemNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Internal item number"
                  },
                  {
                    "name": "productUpc",
                    "kind": "optional",
                    "type": "string",
                    "description": "Universal Product Code"
                  },
                  {
                    "name": "deliveryReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of delivery reference numbers"
                  },
                  {
                    "name": "orderReferences",
                    "kind": "optional",
                    "type": "string",
                    "description": "Array of order reference numbers"
                  },
                  {
                    "name": "brandName",
                    "kind": "optional",
                    "type": "string",
                    "description": "Brand name of the product"
                  },
                  {
                    "name": "minimumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Minimum storage/transport temperature"
                  },
                  {
                    "name": "maximumTemperature",
                    "kind": "optional",
                    "type": "integer",
                    "description": "Maximum storage/transport temperature"
                  },
                  {
                    "name": "temperatureUnitCode",
                    "kind": "optional",
                    "type": "string",
                    "description": "Temperature unit (cel, fah)"
                  },
                  {
                    "name": "labelIdentifier",
                    "kind": "optional",
                    "type": "string",
                    "description": "Label identifier for tracking"
                  },
                  {
                    "name": "productTrackingNumber",
                    "kind": "optional",
                    "type": "string",
                    "description": "Unique tracking number for the product"
                  },
                  {
                    "name": "deviceType",
                    "kind": "optional",
                    "type": "string",
                    "description": "Type of tracking device (RFID_TAG, QR_CODE, etc.)"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "formDataParameters": []
  },
  "currentNewParameter": {
    "label": "Body Parameter",
    "value": "bodyDataParameters"
  },
  "hasTryItOut": false,
  "autoGeneratedAnchorSlug": "using-stopid-staging",
  "legacyHash": "xZeotHK2ekvOo-aQHCxhY"
}
```
:::
