Skip to content
Last updated

Updating Guarantee Through Date

curl -i -X PATCH \
  https://developer.cargosprint.com/v1/orchestrations/trade-type/I/unit-nbr/ABCD1234567/locations/O \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "guarantee_through_date": "2022-01-01"
  }'

Updating Trucker license plate

License plate can be

curl -i -X PATCH \
  https://developer.cargosprint.com/v1/orchestrations/trade-type/I/unit-nbr/ABCD1234567/locations/O \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "reservation_details": {
      "trucker_info": {
        "trucker_scac": "ABCD",
        "lic_plate_nbr": "CA112233"
      }
    }
  }'
curl -i -X PATCH \
  https://developer.cargosprint.com/v1/orchestrations/trade-type/I/unit-nbr/ABCD1234567/locations/O \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY_HERE' \
  -d '{
    "location_Type": "string",
    "location_cd": "string",
    "port_cd": "string",
    "guarantee_through_date": "string",
    "delivery_type": "string",
    "reservation_details": {
      "reservation_preferences": {
        "tryLaterDates": "string",
        "threshold": "string",
        "preference_Datetimes": [
          {
            "range": [
              "string"
            ],
            "days": [
              0
            ],
            "after": "string",
            "before": "string"
          }
        ]
      },
      "hazmat_info": {
        "haz_Class": "string",
        "haz_UnCode": "string",
        "commodity_Weight": "string",
        "quantity": "string",
        "package_Group": "string",
        "commodity_Name": "string",
        "emergency_Ph": "string",
        "limited_Qty": "string",
        "comments": "string"
      },
      "trucker_info": {
        "trucker_Scac": "string",
        "truck_Nbr": "string",
        "lic_Plate_Nbr": "string",
        "lic_Plate_State_Cd": "string",
        "driver_Id": "string",
        "driver_Fname": "string",
        "driver_Lname": "string"
      },
      "pin_nbr": "string",
      "dual_unit": {
        "unit": {
          "unit_Nbr": "string",
          "unit_Category": "string",
          "line_Scac": "string",
          "sztypISO": "string",
          "seal_Nbr": [
            "string"
          ]
        },
        "drayUnit_Id": 0
      }
    },
    "billoflading": "string"
  }'