---
title: Async Load Create (Rail)
slug: fourkites-api-reference/async-load-create-rail
icon: {"apiMethod":"POST"}
createdAt: 2024-04-12T12:00:04.000Z
---

The Async Load Create API allows shippers to create with minimal information.&#x20;

:::hint{type="danger"}
### ⚠️ Important Update:

<font color="#EF4444">The Pallets structure is being deprecated. Please transition to  for product details. </font>[Learn more](https://docs.fourkites.com/api-reference/BXk7-create-shipment#ICU0Y)
:::

:::hint{type="warning"}
This API is called after the carrier has accepted the tender for the load. FourKites does not limit customers from creating more than one load with the same load number or PRO number -- creation of more than one load with the same load or PRO number will cause duplication of loads, which will end up affecting the tracking performance. Customers are advised to handle this on their side. To learn more about Idempotency Protection, [refer here](https://docs.fourkites.com/api-reference/idempotency-protection).
:::

:::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.
:::

Supporting Document: [Create Shipment](https://docs.fourkites.com/api-reference/BXk7-create-shipment#4xc3cRbgZT-au2XAHx_w3)

:::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;

:::ApiMethodV2
```json
{
  "name": "Production",
  "method": "POST",
  "url": "https://api.fourkites.com/data-providers/events/async",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "mqTNLNEzn-sUJ4GWmrH8z",
        "language": "curl",
        "code": "curl --location --request POST 'https://api.fourkites.com/data-providers/events/async' \\\n--header 'apiKey: REPLACE_KEY_VALUE' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n        }\n    ]\n}'",
        "customLabel": ""
      },
      {
        "id": "JUs6NgxsfScaqX2X5jjeP",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api.fourkites.com/data-providers/events/async\")\n  .method(\"POST\", body)\n  .addHeader(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  .addHeader(\"Content-Type\", \"application/json\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "ESd7-7uA2kf2vpP3qNUUk",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api.fourkites.com/data-providers/events/async\",\n  \"method\": \"POST\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"apiKey\": \"REPLACE_KEY_VALUE\",\n    \"Content-Type\": \"application/json\"\n  },\n  \"data\": JSON.stringify({\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n      {\n        \"sequence\": \"1\",\n        \"name\": \"Guahti,asam, Bihar\",\n        \"addressLine1\": \"Norrköpings Hamn AB\",\n        \"city\": \"Guahti\",\n        \"state\": \"Asam\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"12345\",\n        \"latitude\": \"58.62232\",\n        \"longitude\": \"16.228049\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n        \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n      },\n      {\n        \"sequence\": \"2\",\n        \"name\": \"Hamn Kombi / Nördö Link\",\n        \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n        \"city\": \"Malmö\",\n        \"state\": \"Skåne\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"67890\",\n        \"latitude\": \"55.626969\",\n        \"longitude\": \"12.994829\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n        \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n      }\n    ]\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "JH6oUdsMCH2ftPrJ0dVwT",
        "language": "swift",
        "code": "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api.fourkites.com/data-providers/events/async\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"REPLACE_KEY_VALUE\", forHTTPHeaderField: \"apiKey\")\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\n\nrequest.httpMethod = \"POST\"\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": "S1-7qcqCI73CYVwUVKKF0",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api.fourkites.com/data-providers/events/async\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"apiKey\", \"REPLACE_KEY_VALUE\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"shipmentIdentifier\"\": \"\"test-async-api99\"\",\" + \"\\n\" +\n@\"    \"\"carrierName\"\": \"\"rail-analysis-carrier\"\",\" + \"\\n\" +\n@\"    \"\"wagonNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"stops\"\": [\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"1\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Guahti,asam, Bihar\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Guahti\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Asam\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"12345\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"58.62232\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"16.228049\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-14T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-14T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight 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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-001\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-001\"\",\" + \"\\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\"\": [\"\"DEL-REF-001\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-001\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-001\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"                }\" + \"\\n\" +\n@\"            ]\" + \"\\n\" +\n@\"        },\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"2\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Malmö\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Skåne\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"67890\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"55.626969\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"12.994829\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-12T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-11T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-20T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-15T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0654321\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight shipment item\"\",\" + \"\\n\" +\n@\"                    \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                    \"\"quantity\"\": 30,\" + \"\\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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-002\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-002\"\",\" + \"\\n\" +\n@\"                    \"\"handlingUnitId\"\": \"\"PAL-002\"\",\" + \"\\n\" +\n@\"                    \"\"barcode\"\": \"\"PAL002\"\",\" + \"\\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\"\": [\"\"DEL-REF-002\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-002\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-002\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"QR_CODE\"\"\" + \"\\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": "11J22ToK4RkI5GCbHVJFm",
        "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/data-providers/events/async\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\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(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  req.Header.Add(\"Content-Type\", \"application/json\")\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": "oDWnP_LrvDRRKDacDlwL5",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.fourkites.com/data-providers/events/async\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"apiKey\"] = \"REPLACE_KEY_VALUE\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "PjhN3qJ2EbwjiEFJFrMtl",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api.fourkites.com\")\npayload = json.dumps({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\nheaders = {\n  'apiKey': 'REPLACE_KEY_VALUE',\n  'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/data-providers/events/async\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "mqTNLNEzn-sUJ4GWmrH8z"
  },
  "results": {
    "languages": [
      {
        "id": "lDjPpnSf5jjEyk6sPjUWD",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Accepted\",\n    \"statusCode\": 202\n}\n"
      },
      {
        "id": "IwYx2jr_bGbr7qOE3XMU5",
        "language": "400",
        "customLabel": "",
        "code": "{\n  \"errorCode\": 9999,\n  \"errorMessage\": \"error string\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"errorDetails\": [\n    \"carrierScac OR (carrierName AND mode) should be provided\",\n    \"proNumber OR trackingNumber should be provided\"\n  ],\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}"
      },
      {
        "id": "DQp_b4pI-BqPcQqoF6_Zg",
        "language": "401",
        "code": "{\n  \"errorCode\": 8888,\n  \"errorMessage\": \"Authentication Denied\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DQp_b4pI-BqPcQqoF6_Zg"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "shipmentIdentifier",
        "kind": "required",
        "type": "string",
        "description": "The load Identifiers associated with the particular stop only.",
        "": "required"
      },
      {
        "name": "carrierName",
        "kind": "required",
        "type": "string",
        "description": "Name of the carrier handling the shipment",
        "": "Name of the carrier handling the shipment"
      },
      {
        "name": "wagonNumber",
        "kind": "optional",
        "type": "string",
        "description": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored.",
        "": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored."
      },
      {
        "name": "stops",
        "kind": "required",
        "type": "object",
        "description": "It is the list of stops for the load.",
        "": "required",
        "children": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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.)"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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": "production",
  "legacyHash": "pqcONslsFLaO6eFs6buJZ"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Staging",
  "method": "POST",
  "url": "https://api-staging.fourkites.com/data-providers/events/async",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "mqTNLNEzn-sUJ4GWmrH8z",
        "language": "curl",
        "code": "curl --location --request POST 'https://api-staging.fourkites.com/data-providers/events/async' \\\n--header 'apiKey: REPLACE_KEY_VALUE' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n        }\n    ]\n}'",
        "customLabel": ""
      },
      {
        "id": "JUs6NgxsfScaqX2X5jjeP",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api-staging.fourkites.com/data-providers/events/async\")\n  .method(\"POST\", body)\n  .addHeader(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  .addHeader(\"Content-Type\", \"application/json\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "ESd7-7uA2kf2vpP3qNUUk",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api-staging.fourkites.com/data-providers/events/async\",\n  \"method\": \"POST\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"apiKey\": \"REPLACE_KEY_VALUE\",\n    \"Content-Type\": \"application/json\"\n  },\n  \"data\": JSON.stringify({\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n      {\n        \"sequence\": \"1\",\n        \"name\": \"Guahti,asam, Bihar\",\n        \"addressLine1\": \"Norrköpings Hamn AB\",\n        \"city\": \"Guahti\",\n        \"state\": \"Asam\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"12345\",\n        \"latitude\": \"58.62232\",\n        \"longitude\": \"16.228049\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n        \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n      },\n      {\n        \"sequence\": \"2\",\n        \"name\": \"Hamn Kombi / Nördö Link\",\n        \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n        \"city\": \"Malmö\",\n        \"state\": \"Skåne\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"67890\",\n        \"latitude\": \"55.626969\",\n        \"longitude\": \"12.994829\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n        \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n      }\n    ]\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "JH6oUdsMCH2ftPrJ0dVwT",
        "language": "swift",
        "code": "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api-staging.fourkites.com/data-providers/events/async\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"REPLACE_KEY_VALUE\", forHTTPHeaderField: \"apiKey\")\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\n\nrequest.httpMethod = \"POST\"\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": "S1-7qcqCI73CYVwUVKKF0",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api-staging.fourkites.com/data-providers/events/async\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"apiKey\", \"REPLACE_KEY_VALUE\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"shipmentIdentifier\"\": \"\"test-async-api99\"\",\" + \"\\n\" +\n@\"    \"\"carrierName\"\": \"\"rail-analysis-carrier\"\",\" + \"\\n\" +\n@\"    \"\"wagonNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"stops\"\": [\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"1\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Guahti,asam, Bihar\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Guahti\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Asam\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"12345\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"58.62232\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"16.228049\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-14T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-14T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight 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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-001\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-001\"\",\" + \"\\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\"\": [\"\"DEL-REF-001\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-001\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-001\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"                }\" + \"\\n\" +\n@\"            ]\" + \"\\n\" +\n@\"        },\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"2\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Malmö\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Skåne\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"67890\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"55.626969\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"12.994829\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-12T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-11T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-20T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-15T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0654321\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight shipment item\"\",\" + \"\\n\" +\n@\"                    \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                    \"\"quantity\"\": 30,\" + \"\\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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-002\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-002\"\",\" + \"\\n\" +\n@\"                    \"\"handlingUnitId\"\": \"\"PAL-002\"\",\" + \"\\n\" +\n@\"                    \"\"barcode\"\": \"\"PAL002\"\",\" + \"\\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\"\": [\"\"DEL-REF-002\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-002\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-002\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"QR_CODE\"\"\" + \"\\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": "11J22ToK4RkI5GCbHVJFm",
        "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/data-providers/events/async\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\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(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  req.Header.Add(\"Content-Type\", \"application/json\")\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": "oDWnP_LrvDRRKDacDlwL5",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-staging.fourkites.com/data-providers/events/async\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"apiKey\"] = \"REPLACE_KEY_VALUE\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "PjhN3qJ2EbwjiEFJFrMtl",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api-staging.fourkites.com\")\npayload = json.dumps({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\nheaders = {\n  'apiKey': 'REPLACE_KEY_VALUE',\n  'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/data-providers/events/async\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "mqTNLNEzn-sUJ4GWmrH8z"
  },
  "results": {
    "languages": [
      {
        "id": "lDjPpnSf5jjEyk6sPjUWD",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Accepted\",\n    \"statusCode\": 202\n}\n"
      },
      {
        "id": "IwYx2jr_bGbr7qOE3XMU5",
        "language": "400",
        "customLabel": "",
        "code": "{\n  \"errorCode\": 9999,\n  \"errorMessage\": \"error string\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"errorDetails\": [\n    \"carrierScac OR (carrierName AND mode) should be provided\",\n    \"proNumber OR trackingNumber should be provided\"\n  ],\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}"
      },
      {
        "id": "DQp_b4pI-BqPcQqoF6_Zg",
        "language": "401",
        "code": "{\n  \"errorCode\": 8888,\n  \"errorMessage\": \"Authentication Denied\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DQp_b4pI-BqPcQqoF6_Zg"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "shipmentIdentifier",
        "kind": "required",
        "type": "string",
        "description": "The load Identifiers associated with the particular stop only.",
        "": "required"
      },
      {
        "name": "carrierName",
        "kind": "required",
        "type": "string",
        "description": "Name of the carrier handling the shipment",
        "": "Name of the carrier handling the shipment"
      },
      {
        "name": "wagonNumber",
        "kind": "optional",
        "type": "string",
        "description": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored.",
        "": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored."
      },
      {
        "name": "stops",
        "kind": "required",
        "type": "object",
        "description": "It is the list of stops for the load.",
        "": "required",
        "children": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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.)"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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": "staging",
  "legacyHash": "qC9_04P2Qf-izB47juMqQ"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Azure - Production",
  "method": "POST",
  "url": "https://api.ng.fourkites.com/data-providers/events/async",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "mqTNLNEzn-sUJ4GWmrH8z",
        "language": "curl",
        "code": "curl --location --request POST 'https://api.ng.fourkites.com/data-providers/events/async' \\\n--header 'apiKey: REPLACE_KEY_VALUE' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n        }\n    ]\n}'",
        "customLabel": ""
      },
      {
        "id": "JUs6NgxsfScaqX2X5jjeP",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api.ng.fourkites.com/data-providers/events/async\")\n  .method(\"POST\", body)\n  .addHeader(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  .addHeader(\"Content-Type\", \"application/json\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "ESd7-7uA2kf2vpP3qNUUk",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api.ng.fourkites.com/data-providers/events/async\",\n  \"method\": \"POST\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"apiKey\": \"REPLACE_KEY_VALUE\",\n    \"Content-Type\": \"application/json\"\n  },\n  \"data\": JSON.stringify({\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n      {\n        \"sequence\": \"1\",\n        \"name\": \"Guahti,asam, Bihar\",\n        \"addressLine1\": \"Norrköpings Hamn AB\",\n        \"city\": \"Guahti\",\n        \"state\": \"Asam\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"12345\",\n        \"latitude\": \"58.62232\",\n        \"longitude\": \"16.228049\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n        \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n      },\n      {\n        \"sequence\": \"2\",\n        \"name\": \"Hamn Kombi / Nördö Link\",\n        \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n        \"city\": \"Malmö\",\n        \"state\": \"Skåne\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"67890\",\n        \"latitude\": \"55.626969\",\n        \"longitude\": \"12.994829\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n        \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n      }\n    ]\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "JH6oUdsMCH2ftPrJ0dVwT",
        "language": "swift",
        "code": "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api.ng.fourkites.com/data-providers/events/async\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"REPLACE_KEY_VALUE\", forHTTPHeaderField: \"apiKey\")\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\n\nrequest.httpMethod = \"POST\"\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": "S1-7qcqCI73CYVwUVKKF0",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api.ng.fourkites.com/data-providers/events/async\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"apiKey\", \"REPLACE_KEY_VALUE\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"shipmentIdentifier\"\": \"\"test-async-api99\"\",\" + \"\\n\" +\n@\"    \"\"carrierName\"\": \"\"rail-analysis-carrier\"\",\" + \"\\n\" +\n@\"    \"\"wagonNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"stops\"\": [\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"1\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Guahti,asam, Bihar\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Guahti\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Asam\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"12345\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"58.62232\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"16.228049\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-14T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-14T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight 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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-001\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-001\"\",\" + \"\\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\"\": [\"\"DEL-REF-001\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-001\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-001\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"                }\" + \"\\n\" +\n@\"            ]\" + \"\\n\" +\n@\"        },\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"2\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Malmö\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Skåne\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"67890\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"55.626969\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"12.994829\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-12T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-11T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-20T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-15T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0654321\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight shipment item\"\",\" + \"\\n\" +\n@\"                    \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                    \"\"quantity\"\": 30,\" + \"\\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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-002\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-002\"\",\" + \"\\n\" +\n@\"                    \"\"handlingUnitId\"\": \"\"PAL-002\"\",\" + \"\\n\" +\n@\"                    \"\"barcode\"\": \"\"PAL002\"\",\" + \"\\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\"\": [\"\"DEL-REF-002\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-002\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-002\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"QR_CODE\"\"\" + \"\\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": "11J22ToK4RkI5GCbHVJFm",
        "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.ng.fourkites.com/data-providers/events/async\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\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(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  req.Header.Add(\"Content-Type\", \"application/json\")\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": "oDWnP_LrvDRRKDacDlwL5",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api.ng.fourkites.com/data-providers/events/async\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"apiKey\"] = \"REPLACE_KEY_VALUE\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "PjhN3qJ2EbwjiEFJFrMtl",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api.ng.fourkites.com\")\npayload = json.dumps({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\nheaders = {\n  'apiKey': 'REPLACE_KEY_VALUE',\n  'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/data-providers/events/async\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "PjhN3qJ2EbwjiEFJFrMtl"
  },
  "results": {
    "languages": [
      {
        "id": "lDjPpnSf5jjEyk6sPjUWD",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Accepted\",\n    \"statusCode\": 202\n}\n"
      },
      {
        "id": "IwYx2jr_bGbr7qOE3XMU5",
        "language": "400",
        "customLabel": "",
        "code": "{\n  \"errorCode\": 9999,\n  \"errorMessage\": \"error string\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"errorDetails\": [\n    \"carrierScac OR (carrierName AND mode) should be provided\",\n    \"proNumber OR trackingNumber should be provided\"\n  ],\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}"
      },
      {
        "id": "DQp_b4pI-BqPcQqoF6_Zg",
        "language": "401",
        "code": "{\n  \"errorCode\": 8888,\n  \"errorMessage\": \"Authentication Denied\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DQp_b4pI-BqPcQqoF6_Zg"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "shipmentIdentifier",
        "kind": "required",
        "type": "string",
        "description": "The load Identifiers associated with the particular stop only.",
        "": "required"
      },
      {
        "name": "carrierName",
        "kind": "required",
        "type": "string",
        "description": "Name of the carrier handling the shipment",
        "": "Name of the carrier handling the shipment"
      },
      {
        "name": "wagonNumber",
        "kind": "optional",
        "type": "string",
        "description": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored.",
        "": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored."
      },
      {
        "name": "stops",
        "kind": "required",
        "type": "object",
        "description": "It is the list of stops for the load.",
        "": "required",
        "children": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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.)"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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": "azure-production",
  "legacyHash": "ZhG9ryfGQtHrxFj1szyVE"
}
```
:::

:::ApiMethodV2
```json
{
  "name": "Azure - Staging",
  "method": "POST",
  "url": "https://api-staging.ng.fourkites.com/data-providers/events/async",
  "description": "",
  "tab": "examples",
  "examples": {
    "languages": [
      {
        "id": "mqTNLNEzn-sUJ4GWmrH8z",
        "language": "curl",
        "code": "curl --location --request POST 'https://api-staging.ng.fourkites.com/data-providers/events/async' \\\n--header 'apiKey: REPLACE_KEY_VALUE' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n        }\n    ]\n}'",
        "customLabel": ""
      },
      {
        "id": "JUs6NgxsfScaqX2X5jjeP",
        "language": "java",
        "code": "OkHttpClient client = new OkHttpClient().newBuilder()\n  .build();\nMediaType mediaType = MediaType.parse(\"application/json\");\nRequestBody body = RequestBody.create(mediaType, \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\");\nRequest request = new Request.Builder()\n  .url(\"https://api-staging.ng.fourkites.com/data-providers/events/async\")\n  .method(\"POST\", body)\n  .addHeader(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  .addHeader(\"Content-Type\", \"application/json\")\n  .build();\nResponse response = client.newCall(request).execute();",
        "customLabel": ""
      },
      {
        "id": "ESd7-7uA2kf2vpP3qNUUk",
        "language": "javascript",
        "code": "var settings = {\n  \"url\": \"https://api-staging.ng.fourkites.com/data-providers/events/async\",\n  \"method\": \"POST\",\n  \"timeout\": 0,\n  \"headers\": {\n    \"apiKey\": \"REPLACE_KEY_VALUE\",\n    \"Content-Type\": \"application/json\"\n  },\n  \"data\": JSON.stringify({\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n      {\n        \"sequence\": \"1\",\n        \"name\": \"Guahti,asam, Bihar\",\n        \"addressLine1\": \"Norrköpings Hamn AB\",\n        \"city\": \"Guahti\",\n        \"state\": \"Asam\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"12345\",\n        \"latitude\": \"58.62232\",\n        \"longitude\": \"16.228049\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n        \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n      },\n      {\n        \"sequence\": \"2\",\n        \"name\": \"Hamn Kombi / Nördö Link\",\n        \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n        \"city\": \"Malmö\",\n        \"state\": \"Skåne\",\n        \"postalCode\": \"89560\",\n        \"country\": \"SE\",\n        \"splc\": \"67890\",\n        \"latitude\": \"55.626969\",\n        \"longitude\": \"12.994829\",\n        \"transportationMode\": \"rail\",\n        \"timezone\": \"UTC\",\n        \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n        \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n        \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n        \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n        \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\n                }\n            ]\n      }\n    ]\n  }),\n};\n\n$.ajax(settings).done(function (response) {\n  console.log(response);\n});",
        "customLabel": ""
      },
      {
        "id": "JH6oUdsMCH2ftPrJ0dVwT",
        "language": "swift",
        "code": "import Foundation\n#if canImport(FoundationNetworking)\nimport FoundationNetworking\n#endif\n\nvar semaphore = DispatchSemaphore (value: 0)\n\nlet parameters = \"{\\n    \\\"shipmentIdentifier\\\": \\\"test-async-api99\\\",\\n    \\\"carrierName\\\": \\\"rail-analysis-carrier\\\",\\n    \\\"wagonNumber\\\": \\\"\\\",\\n    \\\"stops\\\": [\\n        {\\n            \\\"sequence\\\": \\\"1\\\",\\n            \\\"name\\\": \\\"Guahti,asam, Bihar\\\",\\n            \\\"addressLine1\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"city\\\": \\\"Guahti\\\",\\n            \\\"state\\\": \\\"Asam\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"12345\\\",\\n            \\\"latitude\\\": \\\"58.62232\\\",\\n            \\\"longitude\\\": \\\"16.228049\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-10T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-14T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-14T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Norrköpings Hamn AB\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0123456\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 25,\\n                    \\\"measurementUnitCode\\\": \\\"PCE\\\",\\n                    \\\"netWeight\\\": 44.8,\\n                    \\\"weightUnit\\\": \\\"KGM\\\",\\n                    \\\"unitCost\\\": 25.0,\\n                    \\\"currencyCode\\\": \\\"USD\\\",\\n                    \\\"extendedCost\\\": 625.00,\\n                    \\\"freightCost\\\": 20.00,\\n                    \\\"additionalCharges\\\": 5.00,\\n                    \\\"tariffCost\\\": 2.50,\\n                    \\\"fourKitesCalculatedTariffCost\\\": 2.50,\\n                    \\\"totalLandedCost\\\": 655.00,\\n                    \\\"countryOfOrigin\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-001\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-001\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-001\\\",\\n                    \\\"barcode\\\": \\\"PAL001\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-001\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-001\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-001\\\",\\n                    \\\"deviceType\\\": \\\"RFID_TAG\\\"\\n                }\\n            ]\\n        },\\n        {\\n            \\\"sequence\\\": \\\"2\\\",\\n            \\\"name\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"addressLine1\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"city\\\": \\\"Malmö\\\",\\n            \\\"state\\\": \\\"Skåne\\\",\\n            \\\"postalCode\\\": \\\"89560\\\",\\n            \\\"country\\\": \\\"SE\\\",\\n            \\\"splc\\\": \\\"67890\\\",\\n            \\\"latitude\\\": \\\"55.626969\\\",\\n            \\\"longitude\\\": \\\"12.994829\\\",\\n            \\\"transportationMode\\\": \\\"rail\\\",\\n            \\\"timezone\\\": \\\"UTC\\\",\\n            \\\"appointmentTime\\\": \\\"2025-03-12T18:23:38Z\\\",\\n            \\\"earliestAppointmentTime\\\": \\\"2025-03-11T18:23:38Z\\\",\\n            \\\"latestAppointmentTime\\\": \\\"2025-03-20T18:23:38Z\\\",\\n            \\\"estimatedArrivalTime\\\": \\\"2025-03-15T18:23:38\\\",\\n            \\\"stopReferenceId\\\": \\\"Hamn Kombi / Nördö Link\\\",\\n            \\\"productLineItems\\\": [\\n                {\\n                    \\\"productId\\\": \\\"0654321\\\",\\n                    \\\"productName\\\": \\\"Rail Freight Item\\\",\\n                    \\\"productDescription\\\": \\\"Rail/intermodal freight shipment item\\\",\\n                    \\\"productCategory\\\": \\\"General Freight\\\",\\n                    \\\"quantity\\\": 30,\\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\\\": \\\"SE\\\",\\n                    \\\"harmonizedSystemCode\\\": \\\"8607911000\\\",\\n                    \\\"commodityTypeCode\\\": \\\"RAIL_FREIGHT\\\",\\n                    \\\"htsusCode\\\": \\\"8607911000\\\",\\n                    \\\"orderNumber\\\": \\\"ORD-002\\\",\\n                    \\\"deliveryNumber\\\": \\\"DN-002\\\",\\n                    \\\"handlingUnitId\\\": \\\"PAL-002\\\",\\n                    \\\"barcode\\\": \\\"PAL002\\\",\\n                    \\\"containerType\\\": \\\"pallet\\\",\\n                    \\\"gtin\\\": \\\"00012345678905\\\",\\n                    \\\"customerPartNumber\\\": \\\"22EE\\\",\\n                    \\\"supplierPartNumber\\\": \\\"22EE\\\",\\n                    \\\"manufacturerPartNumber\\\": \\\"MFG-22EE\\\",\\n                    \\\"itemNumber\\\": \\\"ITM-22EE\\\",\\n                    \\\"productUpc\\\": \\\"012345678905\\\",\\n                    \\\"deliveryReferences\\\": [\\\"DEL-REF-002\\\"],\\n                    \\\"orderReferences\\\": [\\\"ORD-002\\\"],\\n                    \\\"brandName\\\": \\\"Generic Rail Freight Co\\\",\\n                    \\\"minimumTemperature\\\": 0,\\n                    \\\"maximumTemperature\\\": 0,\\n                    \\\"temperatureUnitCode\\\": \\\"cel\\\",\\n                    \\\"labelIdentifier\\\": \\\"LBL-22EE\\\",\\n                    \\\"productTrackingNumber\\\": \\\"RAIL-STOP-002\\\",\\n                    \\\"deviceType\\\": \\\"QR_CODE\\\"\\n                }\\n            ]\\n        }\\n    ]\\n}\"\nlet postData = parameters.data(using: .utf8)\n\nvar request = URLRequest(url: URL(string: \"https://api-staging.ng.fourkites.com/data-providers/events/async\")!,timeoutInterval: Double.infinity)\nrequest.addValue(\"REPLACE_KEY_VALUE\", forHTTPHeaderField: \"apiKey\")\nrequest.addValue(\"application/json\", forHTTPHeaderField: \"Content-Type\")\n\nrequest.httpMethod = \"POST\"\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": "S1-7qcqCI73CYVwUVKKF0",
        "language": "csharp",
        "code": "var client = new RestClient(\"https://api-staging.ng.fourkites.com/data-providers/events/async\");\nclient.Timeout = -1;\nvar request = new RestRequest(Method.POST);\nrequest.AddHeader(\"apiKey\", \"REPLACE_KEY_VALUE\");\nrequest.AddHeader(\"Content-Type\", \"application/json\");\nvar body = @\"{\" + \"\\n\" +\n@\"    \"\"shipmentIdentifier\"\": \"\"test-async-api99\"\",\" + \"\\n\" +\n@\"    \"\"carrierName\"\": \"\"rail-analysis-carrier\"\",\" + \"\\n\" +\n@\"    \"\"wagonNumber\"\": \"\"\"\",\" + \"\\n\" +\n@\"    \"\"stops\"\": [\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"1\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Guahti,asam, Bihar\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Guahti\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Asam\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"12345\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"58.62232\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"16.228049\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-10T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-14T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-14T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Norrköpings Hamn AB\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0123456\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight 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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-001\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-001\"\",\" + \"\\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\"\": [\"\"DEL-REF-001\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-001\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-001\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"RFID_TAG\"\"\" + \"\\n\" +\n@\"                }\" + \"\\n\" +\n@\"            ]\" + \"\\n\" +\n@\"        },\" + \"\\n\" +\n@\"        {\" + \"\\n\" +\n@\"            \"\"sequence\"\": \"\"2\"\",\" + \"\\n\" +\n@\"            \"\"name\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"addressLine1\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"city\"\": \"\"Malmö\"\",\" + \"\\n\" +\n@\"            \"\"state\"\": \"\"Skåne\"\",\" + \"\\n\" +\n@\"            \"\"postalCode\"\": \"\"89560\"\",\" + \"\\n\" +\n@\"            \"\"country\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"            \"\"splc\"\": \"\"67890\"\",\" + \"\\n\" +\n@\"            \"\"latitude\"\": \"\"55.626969\"\",\" + \"\\n\" +\n@\"            \"\"longitude\"\": \"\"12.994829\"\",\" + \"\\n\" +\n@\"            \"\"transportationMode\"\": \"\"rail\"\",\" + \"\\n\" +\n@\"            \"\"timezone\"\": \"\"UTC\"\",\" + \"\\n\" +\n@\"            \"\"appointmentTime\"\": \"\"2025-03-12T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"earliestAppointmentTime\"\": \"\"2025-03-11T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"latestAppointmentTime\"\": \"\"2025-03-20T18:23:38Z\"\",\" + \"\\n\" +\n@\"            \"\"estimatedArrivalTime\"\": \"\"2025-03-15T18:23:38\"\",\" + \"\\n\" +\n@\"            \"\"stopReferenceId\"\": \"\"Hamn Kombi / Nördö Link\"\",\" + \"\\n\" +\n@\"            \"\"productLineItems\"\": [\" + \"\\n\" +\n@\"                {\" + \"\\n\" +\n@\"                    \"\"productId\"\": \"\"0654321\"\",\" + \"\\n\" +\n@\"                    \"\"productName\"\": \"\"Rail Freight Item\"\",\" + \"\\n\" +\n@\"                    \"\"productDescription\"\": \"\"Rail/intermodal freight shipment item\"\",\" + \"\\n\" +\n@\"                    \"\"productCategory\"\": \"\"General Freight\"\",\" + \"\\n\" +\n@\"                    \"\"quantity\"\": 30,\" + \"\\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\"\": \"\"SE\"\",\" + \"\\n\" +\n@\"                    \"\"harmonizedSystemCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"commodityTypeCode\"\": \"\"RAIL_FREIGHT\"\",\" + \"\\n\" +\n@\"                    \"\"htsusCode\"\": \"\"8607911000\"\",\" + \"\\n\" +\n@\"                    \"\"orderNumber\"\": \"\"ORD-002\"\",\" + \"\\n\" +\n@\"                    \"\"deliveryNumber\"\": \"\"DN-002\"\",\" + \"\\n\" +\n@\"                    \"\"handlingUnitId\"\": \"\"PAL-002\"\",\" + \"\\n\" +\n@\"                    \"\"barcode\"\": \"\"PAL002\"\",\" + \"\\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\"\": [\"\"DEL-REF-002\"\"],\" + \"\\n\" +\n@\"                    \"\"orderReferences\"\": [\"\"ORD-002\"\"],\" + \"\\n\" +\n@\"                    \"\"brandName\"\": \"\"Generic Rail Freight Co\"\",\" + \"\\n\" +\n@\"                    \"\"minimumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"maximumTemperature\"\": 0,\" + \"\\n\" +\n@\"                    \"\"temperatureUnitCode\"\": \"\"cel\"\",\" + \"\\n\" +\n@\"                    \"\"labelIdentifier\"\": \"\"LBL-22EE\"\",\" + \"\\n\" +\n@\"                    \"\"productTrackingNumber\"\": \"\"RAIL-STOP-002\"\",\" + \"\\n\" +\n@\"                    \"\"deviceType\"\": \"\"QR_CODE\"\"\" + \"\\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": "11J22ToK4RkI5GCbHVJFm",
        "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.ng.fourkites.com/data-providers/events/async\"\n  method := \"POST\"\n\n  payload := strings.NewReader(`{\n    \"shipmentIdentifier\": \"test-async-api99\",\n    \"carrierName\": \"rail-analysis-carrier\",\n    \"wagonNumber\": \"\",\n    \"stops\": [\n        {\n            \"sequence\": \"1\",\n            \"name\": \"Guahti,asam, Bihar\",\n            \"addressLine1\": \"Norrköpings Hamn AB\",\n            \"city\": \"Guahti\",\n            \"state\": \"Asam\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"12345\",\n            \"latitude\": \"58.62232\",\n            \"longitude\": \"16.228049\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n            \"stopReferenceId\": \"Norrköpings Hamn AB\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0123456\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 25,\n                    \"measurementUnitCode\": \"PCE\",\n                    \"netWeight\": 44.8,\n                    \"weightUnit\": \"KGM\",\n                    \"unitCost\": 25.0,\n                    \"currencyCode\": \"USD\",\n                    \"extendedCost\": 625.00,\n                    \"freightCost\": 20.00,\n                    \"additionalCharges\": 5.00,\n                    \"tariffCost\": 2.50,\n                    \"fourKitesCalculatedTariffCost\": 2.50,\n                    \"totalLandedCost\": 655.00,\n                    \"countryOfOrigin\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-001\",\n                    \"deliveryNumber\": \"DN-001\",\n                    \"handlingUnitId\": \"PAL-001\",\n                    \"barcode\": \"PAL001\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-001\"],\n                    \"orderReferences\": [\"ORD-001\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-001\",\n                    \"deviceType\": \"RFID_TAG\"\n                }\n            ]\n        },\n        {\n            \"sequence\": \"2\",\n            \"name\": \"Hamn Kombi / Nördö Link\",\n            \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n            \"city\": \"Malmö\",\n            \"state\": \"Skåne\",\n            \"postalCode\": \"89560\",\n            \"country\": \"SE\",\n            \"splc\": \"67890\",\n            \"latitude\": \"55.626969\",\n            \"longitude\": \"12.994829\",\n            \"transportationMode\": \"rail\",\n            \"timezone\": \"UTC\",\n            \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n            \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n            \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n            \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n            \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n            \"productLineItems\": [\n                {\n                    \"productId\": \"0654321\",\n                    \"productName\": \"Rail Freight Item\",\n                    \"productDescription\": \"Rail/intermodal freight shipment item\",\n                    \"productCategory\": \"General Freight\",\n                    \"quantity\": 30,\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\": \"SE\",\n                    \"harmonizedSystemCode\": \"8607911000\",\n                    \"commodityTypeCode\": \"RAIL_FREIGHT\",\n                    \"htsusCode\": \"8607911000\",\n                    \"orderNumber\": \"ORD-002\",\n                    \"deliveryNumber\": \"DN-002\",\n                    \"handlingUnitId\": \"PAL-002\",\n                    \"barcode\": \"PAL002\",\n                    \"containerType\": \"pallet\",\n                    \"gtin\": \"00012345678905\",\n                    \"customerPartNumber\": \"22EE\",\n                    \"supplierPartNumber\": \"22EE\",\n                    \"manufacturerPartNumber\": \"MFG-22EE\",\n                    \"itemNumber\": \"ITM-22EE\",\n                    \"productUpc\": \"012345678905\",\n                    \"deliveryReferences\": [\"DEL-REF-002\"],\n                    \"orderReferences\": [\"ORD-002\"],\n                    \"brandName\": \"Generic Rail Freight Co\",\n                    \"minimumTemperature\": 0,\n                    \"maximumTemperature\": 0,\n                    \"temperatureUnitCode\": \"cel\",\n                    \"labelIdentifier\": \"LBL-22EE\",\n                    \"productTrackingNumber\": \"RAIL-STOP-002\",\n                    \"deviceType\": \"QR_CODE\"\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(\"apiKey\", \"REPLACE_KEY_VALUE\")\n  req.Header.Add(\"Content-Type\", \"application/json\")\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": "oDWnP_LrvDRRKDacDlwL5",
        "language": "ruby",
        "code": "require \"uri\"\nrequire \"json\"\nrequire \"net/http\"\n\nurl = URI(\"https://api-staging.ng.fourkites.com/data-providers/events/async\")\n\nhttps = Net::HTTP.new(url.host, url.port)\nhttps.use_ssl = true\n\nrequest = Net::HTTP::Post.new(url)\nrequest[\"apiKey\"] = \"REPLACE_KEY_VALUE\"\nrequest[\"Content-Type\"] = \"application/json\"\nrequest.body = JSON.dump({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\n\nresponse = https.request(request)\nputs response.read_body\n",
        "customLabel": ""
      },
      {
        "id": "PjhN3qJ2EbwjiEFJFrMtl",
        "language": "python",
        "code": "import http.client\nimport json\n\nconn = http.client.HTTPSConnection(\"api-staging.ng.fourkites.com\")\npayload = json.dumps({\n  \"shipmentIdentifier\": \"test-async-api99\",\n  \"carrierName\": \"rail-analysis-carrier\",\n  \"wagonNumber\": \"\",\n  \"stops\": [\n    {\n      \"sequence\": \"1\",\n      \"name\": \"Guahti,asam, Bihar\",\n      \"addressLine1\": \"Norrköpings Hamn AB\",\n      \"city\": \"Guahti\",\n      \"state\": \"Asam\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"12345\",\n      \"latitude\": \"58.62232\",\n      \"longitude\": \"16.228049\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-10T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-14T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-14T18:23:38\",\n      \"stopReferenceId\": \"Norrköpings Hamn AB\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0123456\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 25,\n          \"measurementUnitCode\": \"PCE\",\n          \"netWeight\": 44.8,\n          \"weightUnit\": \"KGM\",\n          \"unitCost\": 25.0,\n          \"currencyCode\": \"USD\",\n          \"extendedCost\": 625.00,\n          \"freightCost\": 20.00,\n          \"additionalCharges\": 5.00,\n          \"tariffCost\": 2.50,\n          \"fourKitesCalculatedTariffCost\": 2.50,\n          \"totalLandedCost\": 655.00,\n          \"countryOfOrigin\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-001\",\n          \"deliveryNumber\": \"DN-001\",\n          \"handlingUnitId\": \"PAL-001\",\n          \"barcode\": \"PAL001\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-001\"],\n          \"orderReferences\": [\"ORD-001\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-001\",\n          \"deviceType\": \"RFID_TAG\"\n        }\n      ]\n    },\n    {\n      \"sequence\": \"2\",\n      \"name\": \"Hamn Kombi / Nördö Link\",\n      \"addressLine1\": \"Hamn Kombi / Nördö Link\",\n      \"city\": \"Malmö\",\n      \"state\": \"Skåne\",\n      \"postalCode\": \"89560\",\n      \"country\": \"SE\",\n      \"splc\": \"67890\",\n      \"latitude\": \"55.626969\",\n      \"longitude\": \"12.994829\",\n      \"transportationMode\": \"rail\",\n      \"timezone\": \"UTC\",\n      \"appointmentTime\": \"2025-03-12T18:23:38Z\",\n      \"earliestAppointmentTime\": \"2025-03-11T18:23:38Z\",\n      \"latestAppointmentTime\": \"2025-03-20T18:23:38Z\",\n      \"estimatedArrivalTime\": \"2025-03-15T18:23:38\",\n      \"stopReferenceId\": \"Hamn Kombi / Nördö Link\",\n      \"productLineItems\": [\n        {\n          \"productId\": \"0654321\",\n          \"productName\": \"Rail Freight Item\",\n          \"productDescription\": \"Rail/intermodal freight shipment item\",\n          \"productCategory\": \"General Freight\",\n          \"quantity\": 30,\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\": \"SE\",\n          \"harmonizedSystemCode\": \"8607911000\",\n          \"commodityTypeCode\": \"RAIL_FREIGHT\",\n          \"htsusCode\": \"8607911000\",\n          \"orderNumber\": \"ORD-002\",\n          \"deliveryNumber\": \"DN-002\",\n          \"handlingUnitId\": \"PAL-002\",\n          \"barcode\": \"PAL002\",\n          \"containerType\": \"pallet\",\n          \"gtin\": \"00012345678905\",\n          \"customerPartNumber\": \"22EE\",\n          \"supplierPartNumber\": \"22EE\",\n          \"manufacturerPartNumber\": \"MFG-22EE\",\n          \"itemNumber\": \"ITM-22EE\",\n          \"productUpc\": \"012345678905\",\n          \"deliveryReferences\": [\"DEL-REF-002\"],\n          \"orderReferences\": [\"ORD-002\"],\n          \"brandName\": \"Generic Rail Freight Co\",\n          \"minimumTemperature\": 0,\n          \"maximumTemperature\": 0,\n          \"temperatureUnitCode\": \"cel\",\n          \"labelIdentifier\": \"LBL-22EE\",\n          \"productTrackingNumber\": \"RAIL-STOP-002\",\n          \"deviceType\": \"QR_CODE\"\n        }\n      ]\n    }\n  ]\n})\nheaders = {\n  'apiKey': 'REPLACE_KEY_VALUE',\n  'Content-Type': 'application/json'\n}\nconn.request(\"POST\", \"/data-providers/events/async\", payload, headers)\nres = conn.getresponse()\ndata = res.read()\nprint(data.decode(\"utf-8\"))",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "PjhN3qJ2EbwjiEFJFrMtl"
  },
  "results": {
    "languages": [
      {
        "id": "lDjPpnSf5jjEyk6sPjUWD",
        "language": "200",
        "customLabel": "",
        "code": "{\n    \"message\": \"Accepted\",\n    \"statusCode\": 202\n}\n"
      },
      {
        "id": "IwYx2jr_bGbr7qOE3XMU5",
        "language": "400",
        "customLabel": "",
        "code": "{\n  \"errorCode\": 9999,\n  \"errorMessage\": \"error string\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"errorDetails\": [\n    \"carrierScac OR (carrierName AND mode) should be provided\",\n    \"proNumber OR trackingNumber should be provided\"\n  ],\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}"
      },
      {
        "id": "DQp_b4pI-BqPcQqoF6_Zg",
        "language": "401",
        "code": "{\n  \"errorCode\": 8888,\n  \"errorMessage\": \"Authentication Denied\",\n  \"requestId\": \"4265baffdc6938e6\",\n  \"occurredAt\": \"2022-03-07T05:22:19.327690Z[GMT]\"\n}",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "DQp_b4pI-BqPcQqoF6_Zg"
  },
  "request": {
    "pathParameters": [],
    "queryParameters": [],
    "headerParameters": [],
    "bodyDataParameters": [
      {
        "name": "shipmentIdentifier",
        "kind": "required",
        "type": "string",
        "description": "The load Identifiers associated with the particular stop only.",
        "": "required"
      },
      {
        "name": "carrierName",
        "kind": "required",
        "type": "string",
        "description": "Name of the carrier handling the shipment",
        "": "Name of the carrier handling the shipment"
      },
      {
        "name": "wagonNumber",
        "kind": "optional",
        "type": "string",
        "description": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored.",
        "": "For European Rail loads, the wagonNumber field should be used instead of the railEquipmentInitials and railEquipmentNumber fields as European standards of naming/identifying rail equipments are different than other regions. If your organization intends to track rail shipments in Europe, please contact your implementation manager and request that European rail tracking be enabled along with usage of this field. (Conditional Mandatory) This applies to Europe only. If you do not intend to track rail shipments in Europe, this field may be ignored."
      },
      {
        "name": "stops",
        "kind": "required",
        "type": "object",
        "description": "It is the list of stops for the load.",
        "": "required",
        "children": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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.)"
              }
            ]
          }
        ],
        "schema": [
          {
            "name": "sequence",
            "kind": "optional",
            "type": "string",
            "description": "Sequence order of the stop in the shipment route"
          },
          {
            "name": "name",
            "kind": "optional",
            "type": "string",
            "description": "Name of the stop location"
          },
          {
            "name": "addressLine1",
            "kind": "optional",
            "type": "string",
            "description": "Primary address line"
          },
          {
            "name": "city",
            "kind": "optional",
            "type": "string",
            "description": "City name"
          },
          {
            "name": "state",
            "kind": "optional",
            "type": "string",
            "description": "State or region name"
          },
          {
            "name": "postalCode",
            "kind": "optional",
            "type": "string",
            "description": "Postal code of the location"
          },
          {
            "name": "country",
            "kind": "optional",
            "type": "string",
            "description": "Two-letter country code"
          },
          {
            "name": "splc",
            "kind": "optional",
            "type": "string",
            "description": "Standard Point Location Code"
          },
          {
            "name": "latitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical latitude"
          },
          {
            "name": "longitude",
            "kind": "optional",
            "type": "string",
            "description": "Geographical longitude"
          },
          {
            "name": "transportationMode",
            "kind": "optional",
            "type": "string",
            "description": "Mode of transportation"
          },
          {
            "name": "timezone",
            "kind": "optional",
            "type": "string",
            "description": "Timezone of the location"
          },
          {
            "name": "appointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Scheduled appointment time"
          },
          {
            "name": "earliestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Earliest possible appointment time"
          },
          {
            "name": "latestAppointmentTime",
            "kind": "optional",
            "type": "string",
            "description": "Latest possible appointment time"
          },
          {
            "name": "estimatedArrivalTime",
            "kind": "optional",
            "type": "string",
            "description": "Estimated time of arrival"
          },
          {
            "name": "stopReferenceId",
            "kind": "optional",
            "type": "string",
            "description": "Unique identifier for the specific stop"
          },
          {
            "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": "azure-staging",
  "legacyHash": "VnS9ULE1Prco-A9yWMAmZ"
}
```
:::
