Operation Page Breadcrumb

Developer APIs Orders Capture API

Orders Capture API

Create Full Truck Load Order

Creates a full truck load order in the J.B. Hunt 360 platform.

Try it

Request

Request URL

Request headers

  • (optional)
    string
    Media type of the body sent to the API.
  • string
    Subscription key which provides access to this API. Found in your Profile.
  • string
    OAuth 2.0 access token obtained from JB Hunt OAuth 2.0 Provider (RHSSO - Security360). Supported grant types: Authorization code.

Request body

Describes the characteristics of the order to create.

{
  "orders": [
    {
      "customerReferenceNumber": "ABC123",
      "stops": [
        {
          "stopReason": "Pickup",
          "sequenceNumber": 1,
          "location": {
            "id": "L2345",
            "address": {
              "name": "Store 22",
              "streetAddress1": "10045 International Blvd",
              "city": "West Chester",
              "state": "OH",
              "postalCode": "45246",
              "countryCode": "USA"
            }
          },
          "appointments": [
            {
              "appointmentBegin": {
                "date": "2020-02-14T00:00:00+00:00",
                "time": "2021-04-16T14:00:00+00:00"
              },
              "appointmentEnd": {
                "date": "2020-02-14T00:00:00+00:00",
                "time": "2021-04-16T15:00:00+00:00"
              }
            }
          ],
          "handlingUnits": [
            {
              "id": "handlingUnit1",
              "quantity": {
                "value": 26,
                "unitOfMeasure": "Pallets"
              },
              "weight": {
                "value": 40000,
                "unitOfMeasure": "Pounds"
              },
              "commodityDescription": "Paper"
            }
          ]
        },
        {
          "stopReason": "Delivery",
          "sequenceNumber": 2,
          "location": {
            "id": "L2346",
            "address": {
              "name": "Store 23",
              "streetAddress1": "10046 International Blvd",
              "city": "West Chester",
              "state": "OH",
              "postalCode": "45246",
              "countryCode": "USA"
            }
          },
          "appointments": [
            {
              "appointmentBegin": {
                "date": "2020-02-15T00:00:00+00:00",
                "time": "2021-04-16T14:00:00+00:00"
              },
              "appointmentEnd": {
                "date": "2020-02-15T00:00:00+00:00",
                "time": "2021-04-16T15:00:00+00:00"
              }
            }
          ],
          "handlingUnits": [
            {
              "id": "handlingUnit1",
              "commodityDescription": "Merchandise",
              "quantity": {
                "value": 1,
                "unitOfMeasure": "Pallets"
              },
              "weight": {
                "value": 1000,
                "unitOfMeasure": "Pounds"
              }
            }
          ]
        }
      ],
      "transportationMode": "Truck",
      "equipmentType": "DryVan",
      "contact": {
        "firstName": "James",
        "lastName": "King",
        "preferredContactMethod": "Phone",
        "phoneNumber": {
          "phoneNumberValue": "4798203313"
        },
        "emailAddress": "james.king@email.com"
      }
    }
  ]
}
{
  "title": "Batch Full Truck Load Order Request",
  "type": "object",
  "properties": {
    "orders": {
      "title": "Orders",
      "type": "array",
      "items": {
        "title": "Full Truck Load Order Request",
        "required": [
          "customerReferenceNumber",
          "stops",
          "transportationMode",
          "equipmentType",
          "contact"
        ],
        "type": "object",
        "properties": {
          "customerReferenceNumber": {
            "title": "Primary Reference Number",
            "type": "string",
            "description": "The customer's identification number for this order. This can be used to look up the order in the absence of a J.B. Hunt order ID."
          },
          "stops": {
            "title": "Stops",
            "type": "array",
            "items": {
              "title": "Stop",
              "type": "object",
              "allOf": [
                {
                  "title": "Base Stop",
                  "required": [
                    "sequenceNumber",
                    "location",
                    "stopReason"
                  ],
                  "type": "object",
                  "properties": {
                    "sequenceNumber": {
                      "title": "Sequence Number",
                      "type": "integer",
                      "description": "Sequence Number",
                      "format": "int32"
                    },
                    "appointments": {
                      "title": "Appointments",
                      "items": {
                        "title": "Appointment",
                        "type": "object",
                        "properties": {
                          "appointmentType": {
                            "title": "Appointment Type",
                            "type": "string",
                            "description": "The type of appointment scheduled."
                          },
                          "confirmationNumber": {
                            "title": "Confirmation Number",
                            "type": "string",
                            "description": "A confirmation number associated with this appointment."
                          },
                          "appointmentBegin": {
                            "title": "Appointment Begin",
                            "allOf": [
                              {
                                "title": "Date With Optional Time",
                                "required": [
                                  "date"
                                ],
                                "type": "object",
                                "properties": {
                                  "date": {
                                    "allOf": [
                                      {
                                        "title": "Full Date",
                                        "type": "string",
                                        "description": "As defined by `full-date` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
                                        "format": "date"
                                      }
                                    ],
                                    "description": "The date portion of the date-time."
                                  },
                                  "time": {
                                    "allOf": [
                                      {
                                        "title": "Full Time",
                                        "pattern": "^\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?([Zz]|[+-]\\d\\d:\\d\\d)$",
                                        "type": "string",
                                        "description": "As defined by `full-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
                                        "example": "01:23:45.6789+01:23"
                                      }
                                    ],
                                    "description": "The optional time portion of the date-time."
                                  }
                                },
                                "description": "A date that may also have a timezone-qualified time attached."
                              }
                            ],
                            "description": "The beginning time of the appointment window."
                          },
                          "appointmentEnd": {
                            "title": "Appointment End",
                            "allOf": [
                              {
                                "title": "Date With Optional Time",
                                "required": [
                                  "date"
                                ],
                                "type": "object",
                                "properties": {
                                  "date": {
                                    "allOf": [
                                      {
                                        "title": "Full Date",
                                        "type": "string",
                                        "description": "As defined by `full-date` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
                                        "format": "date"
                                      }
                                    ],
                                    "description": "The date portion of the date-time."
                                  },
                                  "time": {
                                    "allOf": [
                                      {
                                        "title": "Full Time",
                                        "pattern": "^\\d\\d:\\d\\d:\\d\\d(\\.\\d+)?([Zz]|[+-]\\d\\d:\\d\\d)$",
                                        "type": "string",
                                        "description": "As defined by `full-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
                                        "example": "01:23:45.6789+01:23"
                                      }
                                    ],
                                    "description": "The optional time portion of the date-time."
                                  }
                                },
                                "description": "A date that may also have a timezone-qualified time attached."
                              }
                            ],
                            "description": "The end time of the appointment window."
                          },
                          "primaryAppointment": {
                            "title": "Primary Appointment Indicator",
                            "type": "boolean",
                            "description": "A flag indicating whether this is the primary appointment for the stop."
                          },
                          "contacts": {
                            "title": "Contacts",
                            "type": "array",
                            "items": {
                              "title": "Contact",
                              "required": [
                                "firstName",
                                "lastName",
                                "preferredContactMethod",
                                "phoneNumber",
                                "emailAddress"
                              ],
                              "type": "object",
                              "properties": {
                                "firstName": {
                                  "title": "First Name",
                                  "type": "string",
                                  "description": "The first name of the contact"
                                },
                                "lastName": {
                                  "title": "Last Name",
                                  "type": "string",
                                  "description": "The last name of the contact"
                                },
                                "preferredContactMethod": {
                                  "title": "Preferred Contact Method",
                                  "type": "string",
                                  "description": "The preferred contact method to use when reaching this contact.",
                                  "example": "Phone"
                                },
                                "phoneNumber": {
                                  "title": "Phone Number",
                                  "required": [
                                    "phoneNumberValue"
                                  ],
                                  "type": "object",
                                  "properties": {
                                    "phoneNumberValue": {
                                      "title": "Number",
                                      "type": "string",
                                      "description": "Phone number"
                                    },
                                    "extension": {
                                      "title": "Extension",
                                      "type": "string",
                                      "description": "Extension number"
                                    },
                                    "phoneNumberType": {
                                      "title": "Phone Number Type",
                                      "type": "string",
                                      "description": "The type of phone number being described.",
                                      "example": "Home"
                                    },
                                    "allowsSms": {
                                      "title": "Allow SMS",
                                      "type": "boolean",
                                      "description": "Indicates whether notifications about the order should be sent via SMS"
                                    }
                                  },
                                  "description": "Contact details for a phone number"
                                },
                                "emailAddress": {
                                  "title": "Email Address",
                                  "type": "string",
                                  "description": "The email address of the contact"
                                }
                              },
                              "description": "Information about a point of contact"
                            },
                            "description": "Contacts associated with this particular stop."
                          }
                        },
                        "description": "An appointment related to a stop."
                      },
                      "description": "Appointments relating to a stop."
                    },
                    "comments": {
                      "title": "Comments",
                      "type": "array",
                      "items": {
                        "title": "Comment",
                        "required": [
                          "text"
                        ],
                        "type": "object",
                        "properties": {
                          "commentText": {
                            "title": "Comment",
                            "type": "string",
                            "description": "Comment"
                          },
                          "commentTypeCode": {
                            "title": "Comment Type Code",
                            "type": "string",
                            "description": "The type of comment on the order. See the `commentTypeCodes` property on the return from `/supported-values` for a list of valid options."
                          }
                        },
                        "description": "Comments or instructions relating to the order or stop."
                      },
                      "description": "Comments"
                    },
                    "location": {
                      "title": "Location",
                      "type": "object",
                      "properties": {
                        "id": {
                          "title": "ID",
                          "type": "string",
                          "description": "Customer-defined unique identifier for a stop"
                        },
                        "address": {
                          "title": "Postal Address",
                          "required": [
                            "name",
                            "streetAddress1",
                            "state",
                            "city",
                            "postalCode",
                            "countryCode"
                          ],
                          "type": "object",
                          "properties": {
                            "name": {
                              "title": "Name",
                              "type": "string",
                              "description": "The name of the business or facility."
                            },
                            "streetAddress1": {
                              "title": "Street Address 1",
                              "type": "string",
                              "description": "address (eg. number, street, etc.)."
                            },
                            "streetAddress2": {
                              "title": "Street Address 2",
                              "type": "string",
                              "description": "PO Box, Apartment Number, etc"
                            },
                            "state": {
                              "title": "State",
                              "type": "string",
                              "description": "Province, state, or [ISO-3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) subdivision."
                            },
                            "county": {
                              "title": "County",
                              "type": "string",
                              "description": "In the United States, this refers to county."
                            },
                            "city": {
                              "title": "City",
                              "type": "string",
                              "description": "City or town."
                            },
                            "neighborhood": {
                              "title": "Neighborhood",
                              "type": "string",
                              "description": "neighborhood"
                            },
                            "postalCode": {
                              "title": "Postal Code",
                              "type": "string",
                              "description": "zipcode, postcode, or postal code"
                            },
                            "countryCode": {
                              "maxLength": 3,
                              "minLength": 3,
                              "pattern": "^[A-Z]{3}$",
                              "type": "string",
                              "description": "[ISO 3166-1 alpha-3](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) country code."
                            },
                            "latitude": {
                              "title": "Latitude",
                              "type": "number",
                              "description": "The latitude of the location, if known.",
                              "format": "double"
                            },
                            "longitude": {
                              "title": "Longitude",
                              "type": "number",
                              "description": "The longitude of the location, if known.",
                              "format": "double"
                            }
                          },
                          "description": "The address of a location or facility.",
                          "example": {
                            "name": "Store 22",
                            "streetAddress1": "10045 International Blvd",
                            "city": "West Chester",
                            "state": "OH",
                            "postalCode": "45246-4845",
                            "countryCode": "USA"
                          }
                        }
                      },
                      "description": "Physical location for a stop. Customers may refer to locations by their identifier, or by the address."
                    },
                    "contacts": {
                      "title": "Contacts",
                      "type": "array",
                      "items": {
                        "title": "Contact",
                        "required": [
                          "firstName",
                          "lastName",
                          "preferredContactMethod",
                          "phoneNumber",
                          "emailAddress"
                        ],
                        "type": "object",
                        "properties": {
                          "firstName": {
                            "title": "First Name",
                            "type": "string",
                            "description": "The first name of the contact"
                          },
                          "lastName": {
                            "title": "Last Name",
                            "type": "string",
                            "description": "The last name of the contact"
                          },
                          "preferredContactMethod": {
                            "title": "Preferred Contact Method",
                            "type": "string",
                            "description": "The preferred contact method to use when reaching this contact.",
                            "example": "Phone"
                          },
                          "phoneNumber": {
                            "title": "Phone Number",
                            "required": [
                              "phoneNumberValue"
                            ],
                            "type": "object",
                            "properties": {
                              "phoneNumberValue": {
                                "title": "Number",
                                "type": "string",
                                "description": "Phone number"
                              },
                              "extension": {
                                "title": "Extension",
                                "type": "string",
                                "description": "Extension number"
                              },
                              "phoneNumberType": {
                                "title": "Phone Number Type",
                                "type": "string",
                                "description": "The type of phone number being described.",
                                "example": "Home"
                              },
                              "allowsSms": {
                                "title": "Allow SMS",
                                "type": "boolean",
                                "description": "Indicates whether notifications about the order should be sent via SMS"
                              }
                            },
                            "description": "Contact details for a phone number"
                          },
                          "emailAddress": {
                            "title": "Email Address",
                            "type": "string",
                            "description": "The email address of the contact"
                          }
                        },
                        "description": "Information about a point of contact"
                      },
                      "description": "Contacts"
                    }
                  },
                  "description": "Base Stop"
                },
                {
                  "properties": {
                    "handlingUnits": {
                      "title": "Handling Unit",
                      "type": "array",
                      "items": {
                        "title": "Handling Unit",
                        "required": [
                          "id",
                          "quantity",
                          "weight",
                          "commodityDescription"
                        ],
                        "type": "object",
                        "properties": {
                          "id": {
                            "title": "ID",
                            "type": "string",
                            "description": "The identifier for the handling unit, as defined by the customer. Must be unique to the order."
                          },
                          "quantity": {
                            "title": "Quantity",
                            "allOf": [
                              {
                                "title": "Quantity Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Quantity unit of measure. Refer to the `quantityOfMeasure` property in the response for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A count of items or handling units to be shipped."
                              }
                            ],
                            "description": "Handling unit quantity"
                          },
                          "weight": {
                            "title": "Weight",
                            "allOf": [
                              {
                                "title": "Weight Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Weight unit of measure. Refer to the `weightOfMeasure` property in the response for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A qualified value indicating the weight of something."
                              }
                            ],
                            "description": "Handling unit weight"
                          },
                          "length": {
                            "title": "Length",
                            "allOf": [
                              {
                                "title": "Length Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Length unit of measure. Refer to the `lengthOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A qualified value indicating the length, width or breadth of something."
                              }
                            ],
                            "description": "Handling unit length"
                          },
                          "width": {
                            "title": "Width",
                            "allOf": [
                              {
                                "title": "Length Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Length unit of measure. Refer to the `lengthOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A qualified value indicating the length, width or breadth of something."
                              }
                            ],
                            "description": "Handling unit width"
                          },
                          "height": {
                            "title": "Height",
                            "allOf": [
                              {
                                "title": "Length Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Length unit of measure. Refer to the `lengthOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A qualified value indicating the length, width or breadth of something."
                              }
                            ],
                            "description": "Handling unit height"
                          },
                          "volume": {
                            "title": "Volume",
                            "allOf": [
                              {
                                "title": "Volume Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Volume unit of measure. Refer to the `volumeOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A qualified value indicating the volume of some freight."
                              }
                            ],
                            "description": "Handling unit volume"
                          },
                          "density": {
                            "title": "Density",
                            "allOf": [
                              {
                                "title": "Density Value",
                                "allOf": [
                                  {
                                    "title": "Quantitative Value",
                                    "required": [
                                      "value",
                                      "unitOfMeasure"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "value": {
                                        "title": "Value",
                                        "type": "number",
                                        "description": "A numeric value"
                                      },
                                      "unitOfMeasure": {
                                        "title": "Unit Of Measure",
                                        "type": "string",
                                        "description": "Unit of measurement for the measured value."
                                      }
                                    },
                                    "description": "Measured Value"
                                  },
                                  {
                                    "properties": {
                                      "unitOfMeasure": {
                                        "title": "Unit of Measure",
                                        "type": "string",
                                        "description": "Density unit of measure. Refer to the `densityUnitOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                      }
                                    }
                                  }
                                ],
                                "description": "A qualified value indicating the density of some freight."
                              }
                            ],
                            "description": "Handling unit density"
                          },
                          "commodityDescription": {
                            "title": "Commodity Description",
                            "type": "string",
                            "description": "Customer's description of the commodity being transported."
                          },
                          "stackable": {
                            "title": "Stackable",
                            "type": "boolean",
                            "description": "Indicates whether the handling unit can be stacked."
                          },
                          "items": {
                            "title": "Items",
                            "type": "array",
                            "items": {
                              "title": "Item",
                              "type": "object",
                              "properties": {
                                "quantity": {
                                  "title": "Quantity",
                                  "type": "integer",
                                  "description": "Quantity",
                                  "format": "int32"
                                },
                                "upc": {
                                  "title": "UPC",
                                  "type": "string",
                                  "description": "UPC"
                                },
                                "serialNumber": {
                                  "title": "Serial Number",
                                  "type": "string",
                                  "description": "Serial Number"
                                },
                                "manufacturerName": {
                                  "title": "Manufacturer Name",
                                  "type": "string",
                                  "description": "Manufacturer Name"
                                },
                                "make": {
                                  "title": "Make",
                                  "type": "string",
                                  "description": "Make"
                                },
                                "modelNumber": {
                                  "title": "Model Number",
                                  "type": "string",
                                  "description": "Model Number"
                                },
                                "materialNumber": {
                                  "title": "Material Number",
                                  "type": "string",
                                  "description": "Material Number"
                                },
                                "partNumber": {
                                  "title": "Part Number",
                                  "type": "string",
                                  "description": "Part Number"
                                },
                                "classification": {
                                  "title": "Classification",
                                  "type": "string",
                                  "description": "Product classification. See the `productClassification` value in the output from the supported values endpoint."
                                },
                                "hazmatCertifications": {
                                  "title": "Hazmat Certifications",
                                  "type": "array",
                                  "items": {
                                    "title": "Hazardous Certification",
                                    "required": [
                                      "name",
                                      "UNNANumber",
                                      "hazardousMaterialClassification"
                                    ],
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "title": "Name",
                                        "type": "string",
                                        "description": "Name"
                                      },
                                      "declaration": {
                                        "title": "Declaration",
                                        "type": "string",
                                        "description": "Declaration"
                                      },
                                      "UNNANumber": {
                                        "title": "UN / NA Number",
                                        "type": "string",
                                        "description": "The UN / NA number to identify the classification of the materials being moved.",
                                        "example": "NA0124"
                                      },
                                      "hazardousMaterialClassification": {
                                        "title": "Hazardous Material Classification",
                                        "type": "string",
                                        "description": "The Hazardous Materials Classification as defined by the DOT/IATA.",
                                        "example": "5.1"
                                      }
                                    },
                                    "description": "Hazardous Certification"
                                  },
                                  "description": "Hazmat Certifications"
                                },
                                "unitOfQuantity": {
                                  "title": "Quantity Value",
                                  "allOf": [
                                    {
                                      "title": "Quantitative Value",
                                      "required": [
                                        "value",
                                        "unitOfMeasure"
                                      ],
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "title": "Value",
                                          "type": "number",
                                          "description": "A numeric value"
                                        },
                                        "unitOfMeasure": {
                                          "title": "Unit Of Measure",
                                          "type": "string",
                                          "description": "Unit of measurement for the measured value."
                                        }
                                      },
                                      "description": "Measured Value"
                                    },
                                    {
                                      "properties": {
                                        "unitOfMeasure": {
                                          "title": "Unit of Measure",
                                          "type": "string",
                                          "description": "Quantity unit of measure. Refer to the `quantityOfMeasure` property in the response for valid values of `unitOfMeasure`."
                                        }
                                      }
                                    }
                                  ],
                                  "description": "A count of items or handling units to be shipped."
                                },
                                "unitOfWeight": {
                                  "title": "Weight Value",
                                  "allOf": [
                                    {
                                      "title": "Quantitative Value",
                                      "required": [
                                        "value",
                                        "unitOfMeasure"
                                      ],
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "title": "Value",
                                          "type": "number",
                                          "description": "A numeric value"
                                        },
                                        "unitOfMeasure": {
                                          "title": "Unit Of Measure",
                                          "type": "string",
                                          "description": "Unit of measurement for the measured value."
                                        }
                                      },
                                      "description": "Measured Value"
                                    },
                                    {
                                      "properties": {
                                        "unitOfMeasure": {
                                          "title": "Unit of Measure",
                                          "type": "string",
                                          "description": "Weight unit of measure. Refer to the `weightOfMeasure` property in the response for valid values of `unitOfMeasure`."
                                        }
                                      }
                                    }
                                  ],
                                  "description": "A qualified value indicating the weight of something."
                                },
                                "weight": {
                                  "title": "Weight",
                                  "type": "number",
                                  "description": "Weight",
                                  "format": "double"
                                },
                                "volume": {
                                  "title": "Volume",
                                  "type": "number",
                                  "description": "Volume",
                                  "format": "double"
                                },
                                "unitOfVolume": {
                                  "title": "Volume Value",
                                  "allOf": [
                                    {
                                      "title": "Quantitative Value",
                                      "required": [
                                        "value",
                                        "unitOfMeasure"
                                      ],
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "title": "Value",
                                          "type": "number",
                                          "description": "A numeric value"
                                        },
                                        "unitOfMeasure": {
                                          "title": "Unit Of Measure",
                                          "type": "string",
                                          "description": "Unit of measurement for the measured value."
                                        }
                                      },
                                      "description": "Measured Value"
                                    },
                                    {
                                      "properties": {
                                        "unitOfMeasure": {
                                          "title": "Unit of Measure",
                                          "type": "string",
                                          "description": "Volume unit of measure. Refer to the `volumeOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                        }
                                      }
                                    }
                                  ],
                                  "description": "A qualified value indicating the volume of some freight."
                                },
                                "height": {
                                  "title": "Height",
                                  "type": "number",
                                  "description": "Height",
                                  "format": "double"
                                },
                                "unitOfHeight": {
                                  "title": "Length Value",
                                  "allOf": [
                                    {
                                      "title": "Quantitative Value",
                                      "required": [
                                        "value",
                                        "unitOfMeasure"
                                      ],
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "title": "Value",
                                          "type": "number",
                                          "description": "A numeric value"
                                        },
                                        "unitOfMeasure": {
                                          "title": "Unit Of Measure",
                                          "type": "string",
                                          "description": "Unit of measurement for the measured value."
                                        }
                                      },
                                      "description": "Measured Value"
                                    },
                                    {
                                      "properties": {
                                        "unitOfMeasure": {
                                          "title": "Unit of Measure",
                                          "type": "string",
                                          "description": "Length unit of measure. Refer to the `lengthOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                        }
                                      }
                                    }
                                  ],
                                  "description": "A qualified value indicating the length, width or breadth of something."
                                },
                                "width": {
                                  "title": "Width",
                                  "type": "number",
                                  "description": "Width",
                                  "format": "double"
                                },
                                "unitOfWidth": {
                                  "title": "Length Value",
                                  "allOf": [
                                    {
                                      "title": "Quantitative Value",
                                      "required": [
                                        "value",
                                        "unitOfMeasure"
                                      ],
                                      "type": "object",
                                      "properties": {
                                        "value": {
                                          "title": "Value",
                                          "type": "number",
                                          "description": "A numeric value"
                                        },
                                        "unitOfMeasure": {
                                          "title": "Unit Of Measure",
                                          "type": "string",
                                          "description": "Unit of measurement for the measured value."
                                        }
                                      },
                                      "description": "Measured Value"
                                    },
                                    {
                                      "properties": {
                                        "unitOfMeasure": {
                                          "title": "Unit of Measure",
                                          "type": "string",
                                          "description": "Length unit of measure. Refer to the `lengthOfMeasure` property in the response of `/supported-values` for valid values of `unitOfMeasure`."
                                        }
                                      }
                                    }
                                  ],
                                  "description": "A qualified value indicating the length, width or breadth of something."
                                },
                                "nmfcFreightClassCode": {
                                  "title": "NMFC Freight Class Code",
                                  "type": "number",
                                  "description": "NMFC Freight Class Code",
                                  "format": "double"
                                },
                                "nmfcItemNumber": {
                                  "title": "NMFC Item Number",
                                  "type": "string",
                                  "description": "NMFC Item Number"
                                },
                                "description": {
                                  "title": "Description",
                                  "type": "string",
                                  "description": "A human-readable description of the product."
                                },
                                "childLineItems": {
                                  "title": "Child Line Items",
                                  "type": "array",
                                  "items": {
                                    "title": "Item Service",
                                    "type": "object",
                                    "properties": {
                                      "quantity": {
                                        "title": "Quantity",
                                        "type": "integer",
                                        "description": "Quantity",
                                        "format": "int32"
                                      },
                                      "itemServiceType": {
                                        "title": "Item Service Type",
                                        "type": "object",
                                        "properties": {
                                          "serviceId": {
                                            "title": "Service ID",
                                            "type": "string",
                                            "description": "The identifier for the service to be performed."
                                          },
                                          "description": {
                                            "title": "Description",
                                            "type": "string",
                                            "description": "A human-readable description of the service to be performed."
                                          },
                                          "category": {
                                            "title": "Category",
                                            "type": "string",
                                            "description": "The category under which the service falls."
                                          }
                                        },
                                        "description": "Item Service Type"
                                      }
                                    },
                                    "description": "Item Service"
                                  },
                                  "description": "Child Line Items"
                                }
                              },
                              "description": "A physical item to be picked up or delivered at a stop."
                            },
                            "description": "List of items"
                          }
                        },
                        "description": "Handling unit to be picked up or delivered."
                      },
                      "description": "List of handling units being picked up."
                    }
                  }
                }
              ],
              "description": "Represents the location of a pickup or delivery"
            },
            "description": "Array of stops to be completed. Stops will be completed in order of the sequence in the array, with the first sequence in the array being delivered first."
          },
          "transportationMode": {
            "title": "Transportation Mode",
            "type": "string",
            "description": "The desired transportation mode. If you choose Best, J.B. Hunt will select the transportation mode based on cost and transit.",
            "example": "Truck"
          },
          "equipmentType": {
            "title": "Equipment Type",
            "type": "string",
            "description": "The type of trailing equipment desired. If LTL, use DryVan"
          },
          "quoteId": {
            "title": "Quote ID",
            "type": "string",
            "description": "If a quote has previously been obtained, the quote identifier can be specified to apply the agreed-upon rate."
          },
          "options": {
            "title": "Options",
            "type": "object",
            "properties": {
              "trailerNumber": {
                "title": "Trailer Number",
                "type": "string",
                "description": "The unique identifier for a tractor trailer."
              },
              "preloadedTrailer": {
                "title": "Preloaded Trailer",
                "type": "boolean",
                "description": "Indicates whether the trailer will be loaded prior to arrival, or upon arrival. Assume live load and unload unless preloadedTrailer is true"
              },
              "highValue": {
                "title": "High Value",
                "type": "boolean",
                "description": "Indicates whether the value of cargo being hauled exceeds $100,000.00 USD, which requires extra insurance. Additional fees may apply."
              },
              "extremeLength": {
                "title": "Extreme Length",
                "type": "boolean",
                "description": "Indicates whether the length of cargo being hauled exceeds standard trailer size (53'). Additional fees may apply."
              },
              "oversized": {
                "title": "Oversized",
                "type": "boolean",
                "description": "Indicates whether the cargo is oversized, requiring additional permits and safety considerations. Additional fees may apply."
              },
              "hazmatCertificationsRequirement": {
                "title": "Hazmat Certifications Requirement",
                "type": "array",
                "items": {
                  "title": "Hazmat Certifications Requirement",
                  "required": [
                    "name",
                    "declaration",
                    "unnaNumber",
                    "hazardousMaterialClassification"
                  ],
                  "type": "object",
                  "properties": {
                    "name": {
                      "title": "Name",
                      "type": "string",
                      "description": "Name of the hazardous material or substance",
                      "example": "Batteries"
                    },
                    "declaration": {
                      "title": "Declaration",
                      "type": "string",
                      "description": "Declaration of dangerous goods, applicable where required by law",
                      "example": "Dangerous goods as per attached Shippers Declaration"
                    },
                    "unnaNumber": {
                      "title": "UN/NA Number",
                      "type": "string",
                      "description": "Four-digit United Nations and North American number for the identification of hazardous goods and substances",
                      "example": "2794"
                    },
                    "hazardousMaterialClassification": {
                      "title": "Hazardous Material Classification",
                      "type": "number",
                      "description": "Classification number of the hazardous material, as adopted by the United Nations Globally Harmonized System for Hazard Communications",
                      "example": 1.1
                    }
                  },
                  "description": "Indicates which hazardous materials certifications will be required to legally haul the load. Additional fees may apply."
                },
                "description": "List of hazardous materials certifications that will be required to legally haul the load."
              },
              "temperatureControlRequirements": {
                "title": "Temperature Control Requirements",
                "required": [
                  "minimumTemperature",
                  "maximumTemperature",
                  "rearZonePrecoolTemperature"
                ],
                "type": "object",
                "properties": {
                  "minimumTemperature": {
                    "title": "Minimum Temperature",
                    "allOf": [
                      {
                        "title": "Temperature Value",
                        "required": [
                          "value",
                          "unitOfMeasure"
                        ],
                        "properties": {
                          "value": {
                            "title": "Value",
                            "type": "integer",
                            "description": "A numeric value",
                            "format": "int32"
                          },
                          "unitOfMeasure": {
                            "title": "Unit Of Measure",
                            "type": "string",
                            "description": "Unit of measurement for the measured value."
                          }
                        },
                        "description": "Quantitative value for temperature",
                        "example": {
                          "value": 32,
                          "unitOfMeasure": "Fahrenheit"
                        }
                      }
                    ],
                    "description": "The lower limit temperature permissible in the trailer while in transit"
                  },
                  "maximumTemperature": {
                    "title": "Maximum Temperature",
                    "allOf": [
                      {
                        "title": "Temperature Value",
                        "required": [
                          "value",
                          "unitOfMeasure"
                        ],
                        "properties": {
                          "value": {
                            "title": "Value",
                            "type": "integer",
                            "description": "A numeric value",
                            "format": "int32"
                          },
                          "unitOfMeasure": {
                            "title": "Unit Of Measure",
                            "type": "string",
                            "description": "Unit of measurement for the measured value."
                          }
                        },
                        "description": "Quantitative value for temperature",
                        "example": {
                          "value": 32,
                          "unitOfMeasure": "Fahrenheit"
                        }
                      }
                    ],
                    "description": "The upper limit temperature permissible in the trailer while in transit"
                  },
                  "rearZonePrecoolTemperature": {
                    "title": "Rear Zone Pre-cool Temperature",
                    "allOf": [
                      {
                        "title": "Temperature Value",
                        "required": [
                          "value",
                          "unitOfMeasure"
                        ],
                        "properties": {
                          "value": {
                            "title": "Value",
                            "type": "integer",
                            "description": "A numeric value",
                            "format": "int32"
                          },
                          "unitOfMeasure": {
                            "title": "Unit Of Measure",
                            "type": "string",
                            "description": "Unit of measurement for the measured value."
                          }
                        },
                        "description": "Quantitative value for temperature",
                        "example": {
                          "value": 32,
                          "unitOfMeasure": "Fahrenheit"
                        }
                      }
                    ],
                    "description": "The desired temperature setting of the rear zone of the trailer to be precooled prior to trailer loading."
                  }
                },
                "description": "The desired temperature range for transport. Additional fees may apply to temperature protected and refridgerated loads."
              }
            },
            "description": "Optional information about the order. If not specified, J.B. Hunt will apply standard shipping options."
          },
          "comments": {
            "type": "array",
            "items": {
              "title": "Comment",
              "required": [
                "text"
              ],
              "type": "object",
              "properties": {
                "commentText": {
                  "title": "Comment",
                  "type": "string",
                  "description": "Comment"
                },
                "commentTypeCode": {
                  "title": "Comment Type Code",
                  "type": "string",
                  "description": "The type of comment on the order. See the `commentTypeCodes` property on the return from `/supported-values` for a list of valid options."
                }
              },
              "description": "Comments or instructions relating to the order or stop."
            },
            "description": "List of order comments"
          },
          "referenceNumbers": {
            "type": "array",
            "items": {
              "title": "Reference Number",
              "required": [
                "referenceType",
                "referenceValue"
              ],
              "type": "object",
              "properties": {
                "referenceType": {
                  "title": "Reference Number Type",
                  "type": "string",
                  "description": "Type of reference identifier provided."
                },
                "referenceNumberValue": {
                  "type": "string",
                  "description": "An identifier that can be used to look up the order, stop, or item."
                }
              },
              "description": "A reference identifier that can be used to look up or reference an order, stop, or item."
            },
            "description": "List of reference identifiers"
          },
          "contact": {
            "title": "Contact",
            "required": [
              "firstName",
              "lastName",
              "preferredContactMethod",
              "phoneNumber",
              "emailAddress"
            ],
            "type": "object",
            "properties": {
              "firstName": {
                "title": "First Name",
                "type": "string",
                "description": "The first name of the contact"
              },
              "lastName": {
                "title": "Last Name",
                "type": "string",
                "description": "The last name of the contact"
              },
              "preferredContactMethod": {
                "title": "Preferred Contact Method",
                "type": "string",
                "description": "The preferred contact method to use when reaching this contact.",
                "example": "Phone"
              },
              "phoneNumber": {
                "title": "Phone Number",
                "required": [
                  "phoneNumberValue"
                ],
                "type": "object",
                "properties": {
                  "phoneNumberValue": {
                    "title": "Number",
                    "type": "string",
                    "description": "Phone number"
                  },
                  "extension": {
                    "title": "Extension",
                    "type": "string",
                    "description": "Extension number"
                  },
                  "phoneNumberType": {
                    "title": "Phone Number Type",
                    "type": "string",
                    "description": "The type of phone number being described.",
                    "example": "Home"
                  },
                  "allowsSms": {
                    "title": "Allow SMS",
                    "type": "boolean",
                    "description": "Indicates whether notifications about the order should be sent via SMS"
                  }
                },
                "description": "Contact details for a phone number"
              },
              "emailAddress": {
                "title": "Email Address",
                "type": "string",
                "description": "The email address of the contact"
              }
            },
            "description": "Information about a point of contact"
          }
        },
        "description": "Object containing the order details requested by user to create order.",
        "example": {
          "customerReferenceNumber": "ABC123",
          "stops": [
            {
              "stopReason": "Pickup",
              "sequenceNumber": 1,
              "location": {
                "id": "L2345",
                "address": {
                  "name": "Store 22",
                  "streetAddress1": "10045 International Blvd",
                  "city": "West Chester",
                  "state": "OH",
                  "postalCode": "45246",
                  "countryCode": "USA"
                }
              },
              "appointments": [
                {
                  "appointmentBegin": {
                    "date": "2020-02-14T00:00:00Z",
                    "time": "2021-04-16T14:00:00Z"
                  },
                  "appointmentEnd": {
                    "date": "2020-02-14T00:00:00Z",
                    "time": "2021-04-16T15:00:00Z"
                  }
                }
              ],
              "handlingUnits": [
                {
                  "id": "handlingUnit1",
                  "quantity": {
                    "value": 26,
                    "unitOfMeasure": "Pallets"
                  },
                  "weight": {
                    "value": 40000,
                    "unitOfMeasure": "Pounds"
                  },
                  "commodityDescription": "Paper"
                }
              ]
            },
            {
              "stopReason": "Delivery",
              "sequenceNumber": 2,
              "location": {
                "id": "L2346",
                "address": {
                  "name": "Store 23",
                  "streetAddress1": "10046 International Blvd",
                  "city": "West Chester",
                  "state": "OH",
                  "postalCode": "45246",
                  "countryCode": "USA"
                }
              },
              "appointments": [
                {
                  "appointmentBegin": {
                    "date": "2020-02-15T00:00:00Z",
                    "time": "2021-04-16T14:00:00Z"
                  },
                  "appointmentEnd": {
                    "date": "2020-02-15T00:00:00Z",
                    "time": "2021-04-16T15:00:00Z"
                  }
                }
              ],
              "handlingUnits": [
                {
                  "id": "handlingUnit1",
                  "commodityDescription": "Merchandise",
                  "quantity": {
                    "value": 1,
                    "unitOfMeasure": "Pallets"
                  },
                  "weight": {
                    "value": 1000,
                    "unitOfMeasure": "Pounds"
                  }
                }
              ]
            }
          ],
          "transportationMode": "Truck",
          "equipmentType": "DryVan",
          "contact": {
            "firstName": "James",
            "lastName": "King",
            "preferredContactMethod": "Phone",
            "phoneNumber": {
              "phoneNumberValue": "4798203313"
            },
            "emailAddress": "james.king@email.com"
          }
        }
      },
      "description": "A list of orders to be booked."
    }
  },
  "description": "A list of order requests to be booked together."
}

Responses

201 Created

The order was received and will be processed asynchronously.

Response headers

Representations

{
  "createdOrderIdentifiers": [
    {
      "orderId": "373c1eb2-527b-496a-9fd5-36e338f52985",
      "customerReferenceNumber": 0.0,
      "trackingNumber": "ZYN3321"
    },
    {
      "orderId": "978d7b8f-8bf6-4983-83d2-e60fa8fea312",
      "customerReferenceNumber": "388883333",
      "trackingNumber": "ABC221"
    }
  ],
  "errors": [
    {
      "dateTime": "2019-10-22T19:30:05.112+00:00",
      "issues": [
        {
          "description": "Primary Reference Number found was not unique.",
          "field": "orders.referenceNumbers.referenceNumberValue",
          "location": "body",
          "value": "TEST_ORDER_123"
        }
      ]
    },
    {
      "dateTime": "2019-10-22T19:30:05.112+00:00",
      "issues": [
        {
          "description": "Primary Reference Number found was not unique.",
          "field": "orders.referenceNumbers.referenceNumberValue",
          "location": "body",
          "value": "TEST_ORDER_456"
        }
      ]
    }
  ]
}
{
  "title": "Create Order Response",
  "type": "object",
  "properties": {
    "createdOrderIdentifiers": {
      "title": "Created Order Identifiers",
      "type": "array",
      "items": {
        "title": "Order Identifier",
        "type": "object",
        "properties": {
          "orderId": {
            "title": "Order ID",
            "type": "string",
            "description": "Order ID"
          },
          "customerReferenceNumber": {
            "title": "Customer Reference Number",
            "type": "string",
            "description": "Customer reference number provided with the order."
          },
          "trackingNumber": {
            "title": "Tracking Number",
            "type": "string",
            "description": "The auto-generated tracking number associated with this order."
          }
        },
        "description": "Order identifiers generated as part of order creation."
      },
      "description": "A list of identifiers for orders created."
    },
    "errors": {
      "title": "Errors",
      "type": "array",
      "items": {
        "title": "Problem Details",
        "allOf": [
          {
            "title": "Core Problem Details",
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "description": "A [URI reference](https://tools.ietf.org/html/rfc3986#section-4.1) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using [HTML](https://www.w3.org/TR/2014/REC-html5-20141028)). When this member is not present, its value is assumed to be `\"about:blank\"`.",
                "default": "about:blank"
              },
              "title": {
                "type": "string",
                "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive [content negotiation](https://tools.ietf.org/html/rfc7231#section-3.4))."
              },
              "status": {
                "maximum": 600.0,
                "exclusiveMaximum": true,
                "minimum": 100.0,
                "type": "integer",
                "description": "The [HTTP status code](https://tools.ietf.org/html/rfc7231#section-6) generated by the origin server for this occurrence of the problem."
              },
              "detail": {
                "type": "string",
                "description": "A human-readable explanation specific to this occurrence of the problem."
              },
              "instance": {
                "type": "string",
                "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced."
              }
            },
            "description": "The core problem details object. See [Section 3.1 of RFC 7807](https://tools.ietf.org/html/rfc7807#section-3.1)."
          },
          {
            "title": "Problem Details Extensions",
            "type": "object",
            "properties": {
              "dateTime": {
                "allOf": [
                  {
                    "title": "Date Time",
                    "type": "string",
                    "description": "As defined by `date-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
                    "format": "date-time"
                  }
                ],
                "description": "The date and time that the problem occurred."
              },
              "issues": {
                "type": "array",
                "items": {
                  "title": "Issue",
                  "required": [
                    "description",
                    "field",
                    "location"
                  ],
                  "type": "object",
                  "properties": {
                    "description": {
                      "type": "string",
                      "description": "A human-readable explanation of the specific issue."
                    },
                    "field": {
                      "anyOf": [
                        {
                          "title": "JSON Pointer",
                          "pattern": "^(\\/([^/~]|~[01])*)*$",
                          "type": "string",
                          "description": "A string representing a JSON Pointer as defined by [RFC 6901](https://tools.ietf.org/html/rfc6901)."
                        },
                        {
                          "type": "string"
                        }
                      ],
                      "description": "The name of the field in error. If `location` is `body`, then this MUST be either a [JSON pointer](https://tools.ietf.org/html/rfc6901) or an [XPath expression](https://www.w3.org/TR/1999/REC-xpath-19991116) referring to the field of the body."
                    },
                    "location": {
                      "enum": [
                        "body",
                        "header",
                        "path",
                        "query"
                      ],
                      "type": "string",
                      "description": "The location of the issue.",
                      "default": "body"
                    },
                    "value": {
                      "allOf": [
                        {
                          "title": "Any?",
                          "allOf": [
                            {
                              "title": "Any",
                              "oneOf": [
                                {
                                  "title": "Any Primitive",
                                  "oneOf": [
                                    {
                                      "type": "boolean"
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string"
                                    }
                                  ],
                                  "description": "Any non-nullable primitive JSON value"
                                },
                                {
                                  "title": "Any Structured Value",
                                  "oneOf": [
                                    {
                                      "type": "array"
                                    },
                                    {
                                      "type": "object"
                                    }
                                  ],
                                  "description": "Any non-nullable structured JSON value"
                                }
                              ],
                              "description": "Any non-nullable JSON value"
                            }
                          ],
                          "description": "Any nullable JSON value",
                          "nullable": true
                        }
                      ],
                      "description": "The value of the field in error."
                    }
                  },
                  "description": "An object describing the issue of a particular field in an HTTP request message."
                },
                "description": "An array of issues related to specific fields in the HTTP request message."
              }
            },
            "description": "Custom J.B. Hunt extensions to the problems details format"
          }
        ],
        "description": "The [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807) format with extensions."
      },
      "description": "A list of problems encountered while attempting to create orders"
    }
  },
  "description": "Contains details about the created order.",
  "example": {
    "createdOrderIdentifiers": [
      {
        "orderId": "373c1eb2-527b-496a-9fd5-36e338f52985",
        "customerReferenceNumber": 0.0,
        "trackingNumber": "ZYN3321"
      },
      {
        "orderId": "978d7b8f-8bf6-4983-83d2-e60fa8fea312",
        "customerReferenceNumber": "388883333",
        "trackingNumber": "ABC221"
      }
    ],
    "errors": [
      {
        "dateTime": "2019-10-22T19:30:05.112Z",
        "issues": [
          {
            "description": "Primary Reference Number found was not unique.",
            "field": "orders.referenceNumbers.referenceNumberValue",
            "location": "body",
            "value": "TEST_ORDER_123"
          }
        ]
      },
      {
        "dateTime": "2019-10-22T19:30:05.112Z",
        "issues": [
          {
            "description": "Primary Reference Number found was not unique.",
            "field": "orders.referenceNumbers.referenceNumberValue",
            "location": "body",
            "value": "TEST_ORDER_456"
          }
        ]
      }
    ]
  }
}

400 Bad Request

Invalid request for create order.

Representations

{
  "title": "Bad request",
  "status": 400,
  "detail": "Invalid request.",
  "instance": "urn:uuid:d3ba38b8-54c1-4d20-b9f8-c6b81bb1913b",
  "dateTime": "2019-10-22T19:30:05.1120000+00:00",
  "issues": [
    {
      "description": "The equipment type provided in invalid. Please provide valid equipment type.",
      "field": "equipmentType",
      "location": "body",
      "value": "Dry"
    }
  ]
}
{
  "title": "Problem Details",
  "allOf": [
    {
      "title": "Core Problem Details",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A [URI reference](https://tools.ietf.org/html/rfc3986#section-4.1) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using [HTML](https://www.w3.org/TR/2014/REC-html5-20141028)). When this member is not present, its value is assumed to be `\"about:blank\"`.",
          "default": "about:blank"
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive [content negotiation](https://tools.ietf.org/html/rfc7231#section-3.4))."
        },
        "status": {
          "maximum": 600.0,
          "exclusiveMaximum": true,
          "minimum": 100.0,
          "type": "integer",
          "description": "The [HTTP status code](https://tools.ietf.org/html/rfc7231#section-6) generated by the origin server for this occurrence of the problem."
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem."
        },
        "instance": {
          "type": "string",
          "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced."
        }
      },
      "description": "The core problem details object. See [Section 3.1 of RFC 7807](https://tools.ietf.org/html/rfc7807#section-3.1)."
    },
    {
      "title": "Problem Details Extensions",
      "type": "object",
      "properties": {
        "dateTime": {
          "allOf": [
            {
              "title": "Date Time",
              "type": "string",
              "description": "As defined by `date-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
              "format": "date-time"
            }
          ],
          "description": "The date and time that the problem occurred."
        },
        "issues": {
          "type": "array",
          "items": {
            "title": "Issue",
            "required": [
              "description",
              "field",
              "location"
            ],
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "description": "A human-readable explanation of the specific issue."
              },
              "field": {
                "anyOf": [
                  {
                    "title": "JSON Pointer",
                    "pattern": "^(\\/([^/~]|~[01])*)*$",
                    "type": "string",
                    "description": "A string representing a JSON Pointer as defined by [RFC 6901](https://tools.ietf.org/html/rfc6901)."
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "The name of the field in error. If `location` is `body`, then this MUST be either a [JSON pointer](https://tools.ietf.org/html/rfc6901) or an [XPath expression](https://www.w3.org/TR/1999/REC-xpath-19991116) referring to the field of the body."
              },
              "location": {
                "enum": [
                  "body",
                  "header",
                  "path",
                  "query"
                ],
                "type": "string",
                "description": "The location of the issue.",
                "default": "body"
              },
              "value": {
                "allOf": [
                  {
                    "title": "Any?",
                    "allOf": [
                      {
                        "title": "Any",
                        "oneOf": [
                          {
                            "title": "Any Primitive",
                            "oneOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "Any non-nullable primitive JSON value"
                          },
                          {
                            "title": "Any Structured Value",
                            "oneOf": [
                              {
                                "type": "array"
                              },
                              {
                                "type": "object"
                              }
                            ],
                            "description": "Any non-nullable structured JSON value"
                          }
                        ],
                        "description": "Any non-nullable JSON value"
                      }
                    ],
                    "description": "Any nullable JSON value",
                    "nullable": true
                  }
                ],
                "description": "The value of the field in error."
              }
            },
            "description": "An object describing the issue of a particular field in an HTTP request message."
          },
          "description": "An array of issues related to specific fields in the HTTP request message."
        }
      },
      "description": "Custom J.B. Hunt extensions to the problems details format"
    }
  ],
  "description": "The [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807) format with extensions."
}

401 Unauthorized

The request has not been applied because it lacks valid authentication credentials for the target resource. See RFC 7235, Section 3.1.

Representations

{
  "status": 401,
  "title": "Missing or Invalid API Key",
  "details": "Access denied due to missing API key. Make sure to include API key when making requests to an API.\n",
  "instance": "urn:uuid:d7ec3301-412c-4903-a00c-524c3efc0eba"
}
{
  "title": "Problem Details",
  "allOf": [
    {
      "title": "Core Problem Details",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A [URI reference](https://tools.ietf.org/html/rfc3986#section-4.1) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using [HTML](https://www.w3.org/TR/2014/REC-html5-20141028)). When this member is not present, its value is assumed to be `\"about:blank\"`.",
          "default": "about:blank"
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive [content negotiation](https://tools.ietf.org/html/rfc7231#section-3.4))."
        },
        "status": {
          "maximum": 600.0,
          "exclusiveMaximum": true,
          "minimum": 100.0,
          "type": "integer",
          "description": "The [HTTP status code](https://tools.ietf.org/html/rfc7231#section-6) generated by the origin server for this occurrence of the problem."
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem."
        },
        "instance": {
          "type": "string",
          "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced."
        }
      },
      "description": "The core problem details object. See [Section 3.1 of RFC 7807](https://tools.ietf.org/html/rfc7807#section-3.1)."
    },
    {
      "title": "Problem Details Extensions",
      "type": "object",
      "properties": {
        "dateTime": {
          "allOf": [
            {
              "title": "Date Time",
              "type": "string",
              "description": "As defined by `date-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
              "format": "date-time"
            }
          ],
          "description": "The date and time that the problem occurred."
        },
        "issues": {
          "type": "array",
          "items": {
            "title": "Issue",
            "required": [
              "description",
              "field",
              "location"
            ],
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "description": "A human-readable explanation of the specific issue."
              },
              "field": {
                "anyOf": [
                  {
                    "title": "JSON Pointer",
                    "pattern": "^(\\/([^/~]|~[01])*)*$",
                    "type": "string",
                    "description": "A string representing a JSON Pointer as defined by [RFC 6901](https://tools.ietf.org/html/rfc6901)."
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "The name of the field in error. If `location` is `body`, then this MUST be either a [JSON pointer](https://tools.ietf.org/html/rfc6901) or an [XPath expression](https://www.w3.org/TR/1999/REC-xpath-19991116) referring to the field of the body."
              },
              "location": {
                "enum": [
                  "body",
                  "header",
                  "path",
                  "query"
                ],
                "type": "string",
                "description": "The location of the issue.",
                "default": "body"
              },
              "value": {
                "allOf": [
                  {
                    "title": "Any?",
                    "allOf": [
                      {
                        "title": "Any",
                        "oneOf": [
                          {
                            "title": "Any Primitive",
                            "oneOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "Any non-nullable primitive JSON value"
                          },
                          {
                            "title": "Any Structured Value",
                            "oneOf": [
                              {
                                "type": "array"
                              },
                              {
                                "type": "object"
                              }
                            ],
                            "description": "Any non-nullable structured JSON value"
                          }
                        ],
                        "description": "Any non-nullable JSON value"
                      }
                    ],
                    "description": "Any nullable JSON value",
                    "nullable": true
                  }
                ],
                "description": "The value of the field in error."
              }
            },
            "description": "An object describing the issue of a particular field in an HTTP request message."
          },
          "description": "An array of issues related to specific fields in the HTTP request message."
        }
      },
      "description": "Custom J.B. Hunt extensions to the problems details format"
    }
  ],
  "description": "The [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807) format with extensions."
}

403 Forbidden

The server understood the request but refuses to authorize it. See RFC 7231, Section 6.5.3.

Representations

{
  "type": "about:blank",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "dateTime": {},
  "issues": [
    {
      "description": "string",
      "field": {},
      "location": "body",
      "value": {}
    }
  ]
}
{
  "title": "Problem Details",
  "allOf": [
    {
      "title": "Core Problem Details",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A [URI reference](https://tools.ietf.org/html/rfc3986#section-4.1) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using [HTML](https://www.w3.org/TR/2014/REC-html5-20141028)). When this member is not present, its value is assumed to be `\"about:blank\"`.",
          "default": "about:blank"
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive [content negotiation](https://tools.ietf.org/html/rfc7231#section-3.4))."
        },
        "status": {
          "maximum": 600.0,
          "exclusiveMaximum": true,
          "minimum": 100.0,
          "type": "integer",
          "description": "The [HTTP status code](https://tools.ietf.org/html/rfc7231#section-6) generated by the origin server for this occurrence of the problem."
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem."
        },
        "instance": {
          "type": "string",
          "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced."
        }
      },
      "description": "The core problem details object. See [Section 3.1 of RFC 7807](https://tools.ietf.org/html/rfc7807#section-3.1)."
    },
    {
      "title": "Problem Details Extensions",
      "type": "object",
      "properties": {
        "dateTime": {
          "allOf": [
            {
              "title": "Date Time",
              "type": "string",
              "description": "As defined by `date-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
              "format": "date-time"
            }
          ],
          "description": "The date and time that the problem occurred."
        },
        "issues": {
          "type": "array",
          "items": {
            "title": "Issue",
            "required": [
              "description",
              "field",
              "location"
            ],
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "description": "A human-readable explanation of the specific issue."
              },
              "field": {
                "anyOf": [
                  {
                    "title": "JSON Pointer",
                    "pattern": "^(\\/([^/~]|~[01])*)*$",
                    "type": "string",
                    "description": "A string representing a JSON Pointer as defined by [RFC 6901](https://tools.ietf.org/html/rfc6901)."
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "The name of the field in error. If `location` is `body`, then this MUST be either a [JSON pointer](https://tools.ietf.org/html/rfc6901) or an [XPath expression](https://www.w3.org/TR/1999/REC-xpath-19991116) referring to the field of the body."
              },
              "location": {
                "enum": [
                  "body",
                  "header",
                  "path",
                  "query"
                ],
                "type": "string",
                "description": "The location of the issue.",
                "default": "body"
              },
              "value": {
                "allOf": [
                  {
                    "title": "Any?",
                    "allOf": [
                      {
                        "title": "Any",
                        "oneOf": [
                          {
                            "title": "Any Primitive",
                            "oneOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "Any non-nullable primitive JSON value"
                          },
                          {
                            "title": "Any Structured Value",
                            "oneOf": [
                              {
                                "type": "array"
                              },
                              {
                                "type": "object"
                              }
                            ],
                            "description": "Any non-nullable structured JSON value"
                          }
                        ],
                        "description": "Any non-nullable JSON value"
                      }
                    ],
                    "description": "Any nullable JSON value",
                    "nullable": true
                  }
                ],
                "description": "The value of the field in error."
              }
            },
            "description": "An object describing the issue of a particular field in an HTTP request message."
          },
          "description": "An array of issues related to specific fields in the HTTP request message."
        }
      },
      "description": "Custom J.B. Hunt extensions to the problems details format"
    }
  ],
  "description": "The [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807) format with extensions."
}

500 Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request. See RFC 7231, Section 6.6.1.

Representations

{
  "type": "about:blank",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "dateTime": {},
  "issues": [
    {
      "description": "string",
      "field": {},
      "location": "body",
      "value": {}
    }
  ]
}
{
  "title": "Problem Details",
  "allOf": [
    {
      "title": "Core Problem Details",
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "A [URI reference](https://tools.ietf.org/html/rfc3986#section-4.1) that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using [HTML](https://www.w3.org/TR/2014/REC-html5-20141028)). When this member is not present, its value is assumed to be `\"about:blank\"`.",
          "default": "about:blank"
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive [content negotiation](https://tools.ietf.org/html/rfc7231#section-3.4))."
        },
        "status": {
          "maximum": 600.0,
          "exclusiveMaximum": true,
          "minimum": 100.0,
          "type": "integer",
          "description": "The [HTTP status code](https://tools.ietf.org/html/rfc7231#section-6) generated by the origin server for this occurrence of the problem."
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem."
        },
        "instance": {
          "type": "string",
          "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced."
        }
      },
      "description": "The core problem details object. See [Section 3.1 of RFC 7807](https://tools.ietf.org/html/rfc7807#section-3.1)."
    },
    {
      "title": "Problem Details Extensions",
      "type": "object",
      "properties": {
        "dateTime": {
          "allOf": [
            {
              "title": "Date Time",
              "type": "string",
              "description": "As defined by `date-time` in [Section 5.6 of RFC 3339](https://tools.ietf.org/html/rfc3339#section-5.6)",
              "format": "date-time"
            }
          ],
          "description": "The date and time that the problem occurred."
        },
        "issues": {
          "type": "array",
          "items": {
            "title": "Issue",
            "required": [
              "description",
              "field",
              "location"
            ],
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "description": "A human-readable explanation of the specific issue."
              },
              "field": {
                "anyOf": [
                  {
                    "title": "JSON Pointer",
                    "pattern": "^(\\/([^/~]|~[01])*)*$",
                    "type": "string",
                    "description": "A string representing a JSON Pointer as defined by [RFC 6901](https://tools.ietf.org/html/rfc6901)."
                  },
                  {
                    "type": "string"
                  }
                ],
                "description": "The name of the field in error. If `location` is `body`, then this MUST be either a [JSON pointer](https://tools.ietf.org/html/rfc6901) or an [XPath expression](https://www.w3.org/TR/1999/REC-xpath-19991116) referring to the field of the body."
              },
              "location": {
                "enum": [
                  "body",
                  "header",
                  "path",
                  "query"
                ],
                "type": "string",
                "description": "The location of the issue.",
                "default": "body"
              },
              "value": {
                "allOf": [
                  {
                    "title": "Any?",
                    "allOf": [
                      {
                        "title": "Any",
                        "oneOf": [
                          {
                            "title": "Any Primitive",
                            "oneOf": [
                              {
                                "type": "boolean"
                              },
                              {
                                "type": "number"
                              },
                              {
                                "type": "string"
                              }
                            ],
                            "description": "Any non-nullable primitive JSON value"
                          },
                          {
                            "title": "Any Structured Value",
                            "oneOf": [
                              {
                                "type": "array"
                              },
                              {
                                "type": "object"
                              }
                            ],
                            "description": "Any non-nullable structured JSON value"
                          }
                        ],
                        "description": "Any non-nullable JSON value"
                      }
                    ],
                    "description": "Any nullable JSON value",
                    "nullable": true
                  }
                ],
                "description": "The value of the field in error."
              }
            },
            "description": "An object describing the issue of a particular field in an HTTP request message."
          },
          "description": "An array of issues related to specific fields in the HTTP request message."
        }
      },
      "description": "Custom J.B. Hunt extensions to the problems details format"
    }
  ],
  "description": "The [Problem Details for HTTP APIs](https://tools.ietf.org/html/rfc7807) format with extensions."
}

Code samples

@ECHO OFF

curl -v -X POST "https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order"
-H "Content-Type: application/json"
-H "Api-Key: {subscription key}"
-H "Authorization: {access token}"

--data-ascii "{body}" 
using System;
using System.Net.Http.Headers;
using System.Text;
using System.Net.Http;
using System.Web;

namespace CSHttpClientSample
{
    static class Program
    {
        static void Main()
        {
            MakeRequest();
            Console.WriteLine("Hit ENTER to exit...");
            Console.ReadLine();
        }
        
        static async void MakeRequest()
        {
            var client = new HttpClient();
            var queryString = HttpUtility.ParseQueryString(string.Empty);

            // Request headers
            client.DefaultRequestHeaders.Add("Api-Key", "{subscription key}");
            client.DefaultRequestHeaders.Add("Authorization", "{access token}");

            var uri = "https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order?" + queryString;

            HttpResponseMessage response;

            // Request body
            byte[] byteData = Encoding.UTF8.GetBytes("{body}");

            using (var content = new ByteArrayContent(byteData))
            {
               content.Headers.ContentType = new MediaTypeHeaderValue("< your content type, i.e. application/json >");
               response = await client.PostAsync(uri, content);
            }

        }
    }
}	
// // This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
import java.net.URI;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.utils.URIBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

public class JavaSample 
{
    public static void main(String[] args) 
    {
        HttpClient httpclient = HttpClients.createDefault();

        try
        {
            URIBuilder builder = new URIBuilder("https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order");


            URI uri = builder.build();
            HttpPost request = new HttpPost(uri);
            request.setHeader("Content-Type", "application/json");
            request.setHeader("Api-Key", "{subscription key}");
            request.setHeader("Authorization", "{access token}");


            // Request body
            StringEntity reqEntity = new StringEntity("{body}");
            request.setEntity(reqEntity);

            HttpResponse response = httpclient.execute(request);
            HttpEntity entity = response.getEntity();

            if (entity != null) 
            {
                System.out.println(EntityUtils.toString(entity));
            }
        }
        catch (Exception e)
        {
            System.out.println(e.getMessage());
        }
    }
}

<!DOCTYPE html>
<html>
<head>
    <title>JSSample</title>
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
</head>
<body>

<script type="text/javascript">
    $(function() {
        var params = {
            // Request parameters
        };
      
        $.ajax({
            url: "https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order?" + $.param(params),
            beforeSend: function(xhrObj){
                // Request headers
                xhrObj.setRequestHeader("Content-Type","application/json");
                xhrObj.setRequestHeader("Api-Key","{subscription key}");
                xhrObj.setRequestHeader("Authorization","{access token}");
            },
            type: "POST",
            // Request body
            data: "{body}",
        })
        .done(function(data) {
            alert("success");
        })
        .fail(function() {
            alert("error");
        });
    });
</script>
</body>
</html>
#import <Foundation/Foundation.h>

int main(int argc, const char * argv[])
{
    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    
    NSString* path = @"https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order";
    NSArray* array = @[
                         // Request parameters
                         @"entities=true",
                      ];
    
    NSString* string = [array componentsJoinedByString:@"&"];
    path = [path stringByAppendingFormat:@"?%@", string];

    NSLog(@"%@", path);

    NSMutableURLRequest* _request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:path]];
    [_request setHTTPMethod:@"POST"];
    // Request headers
    [_request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
    [_request setValue:@"{subscription key}" forHTTPHeaderField:@"Api-Key"];
    [_request setValue:@"{access token}" forHTTPHeaderField:@"Authorization"];
    // Request body
    [_request setHTTPBody:[@"{body}" dataUsingEncoding:NSUTF8StringEncoding]];
    
    NSURLResponse *response = nil;
    NSError *error = nil;
    NSData* _connectionData = [NSURLConnection sendSynchronousRequest:_request returningResponse:&response error:&error];

    if (nil != error)
    {
        NSLog(@"Error: %@", error);
    }
    else
    {
        NSError* error = nil;
        NSMutableDictionary* json = nil;
        NSString* dataString = [[NSString alloc] initWithData:_connectionData encoding:NSUTF8StringEncoding];
        NSLog(@"%@", dataString);
        
        if (nil != _connectionData)
        {
            json = [NSJSONSerialization JSONObjectWithData:_connectionData options:NSJSONReadingMutableContainers error:&error];
        }
        
        if (error || !json)
        {
            NSLog(@"Could not parse loaded json with error:%@", error);
        }
        
        NSLog(@"%@", json);
        _connectionData = nil;
    }
    
    [pool drain];

    return 0;
}
<?php
// This sample uses the Apache HTTP client from HTTP Components (http://hc.apache.org/httpcomponents-client-ga/)
require_once 'HTTP/Request2.php';

$request = new Http_Request2('https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order');
$url = $request->getUrl();

$headers = array(
    // Request headers
    'Content-Type' => 'application/json',
    'Api-Key' => '{subscription key}',
    'Authorization' => '{access token}',
);

$request->setHeader($headers);

$parameters = array(
    // Request parameters
);

$url->setQueryVariables($parameters);

$request->setMethod(HTTP_Request2::METHOD_POST);

// Request body
$request->setBody("{body}");

try
{
    $response = $request->send();
    echo $response->getBody();
}
catch (HttpException $ex)
{
    echo $ex;
}

?>
########### Python 2.7 #############
import httplib, urllib, base64

headers = {
    # Request headers
    'Content-Type': 'application/json',
    'Api-Key': '{subscription key}',
    'Authorization': '{access token}',
}

params = urllib.urlencode({
})

try:
    conn = httplib.HTTPSConnection('api.jbhunt.com')
    conn.request("POST", "/orders-api-v2/v2/orders/create-truck-load-order?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################

########### Python 3.2 #############
import http.client, urllib.request, urllib.parse, urllib.error, base64

headers = {
    # Request headers
    'Content-Type': 'application/json',
    'Api-Key': '{subscription key}',
    'Authorization': '{access token}',
}

params = urllib.parse.urlencode({
})

try:
    conn = http.client.HTTPSConnection('api.jbhunt.com')
    conn.request("POST", "/orders-api-v2/v2/orders/create-truck-load-order?%s" % params, "{body}", headers)
    response = conn.getresponse()
    data = response.read()
    print(data)
    conn.close()
except Exception as e:
    print("[Errno {0}] {1}".format(e.errno, e.strerror))

####################################
require 'net/http'

uri = URI('https://api.jbhunt.com/orders-api-v2/v2/orders/create-truck-load-order')


request = Net::HTTP::Post.new(uri.request_uri)
# Request headers
request['Content-Type'] = 'application/json'
# Request headers
request['Api-Key'] = '{subscription key}'
# Request headers
request['Authorization'] = '{access token}'
# Request body
request.body = "{body}"

response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
    http.request(request)
end

puts response.body