Operation Page Breadcrumb

Developer APIs Order Update API

Order Update API

Batch Update Line Items

Perform line items update on entire batch of orders.

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

{
  "commands": [
    {
      "commandType": "updateOrderLines",
      "orders": [
        {
          "orderType": "FinalMileOrderCreationRequest",
          "orderSubtype": "FULLFILMNT",
          "account": {
            "name": "PELOTON"
          },
          "orderId": "CC1795AF-58I9-4ZZ8-951Q-073D9899A255",
          "referenceNumbers": [
            {
              "referenceType": "PrimaryRefNumber",
              "referenceNumberValue": "PELT_JL_TST_585213",
              "lineItems": [
                {
                  "partNumber": "4234",
                  "manufacturerName": "Peloton",
                  "modelNumber": "PL-CL-B-022",
                  "description": "Touchscreen",
                  "classification": "Major",
                  "reason": "UPDATE"
                },
                {
                  "partNumber": "45323",
                  "manufacturerName": "Peloton",
                  "modelNumber": "PL-02",
                  "description": "Peloton Bike",
                  "classification": "Major",
                  "reason": "CANCEL"
                }
              ]
            }
          ]
        }
      ]
    }
  ]
}
{
  "title": "Bulk Update Order Request",
  "properties": {
    "commands": {
      "title": "Commands",
      "type": "array",
      "items": {
        "title": "Update Order Requests",
        "properties": {
          "commandType": {
            "title": "Command Type",
            "type": "string",
            "description": "Update action type to perform."
          },
          "orders": {
            "title": "Orders",
            "type": "array",
            "items": {
              "title": "Update Order Request",
              "properties": {
                "orderId": {
                  "title": "Order ID",
                  "type": "string",
                  "description": "Unique number for identifying a specific order."
                },
                "orderType": {
                  "title": "Order Type",
                  "type": "string",
                  "description": "The type of order to be created. See the `orderType` attribute in `/supported-values` for a list of valid choices."
                },
                "orderSubtype": {
                  "title": "Order Subtype",
                  "type": "string",
                  "description": "The subtype of order to be created."
                },
                "account": {
                  "title": "Account",
                  "type": "object",
                  "properties": {
                    "id": {
                      "title": "ID",
                      "type": "string",
                      "description": "A unique identifier for the account."
                    },
                    "name": {
                      "title": "Name",
                      "type": "string",
                      "description": "A human-readable name for the account."
                    }
                  },
                  "description": "The account under which to book this order. This must be provided by an account representative."
                },
                "referenceNumbers": {
                  "title": "Reference Numbers",
                  "type": "array",
                  "items": {
                    "allOf": [
                      {
                        "title": "Order Update Reference Number",
                        "allOf": [
                          {
                            "title": "Reference Number",
                            "required": [
                              "referenceType",
                              "referenceNumberValue"
                            ],
                            "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."
                          },
                          {
                            "type": "object"
                          }
                        ],
                        "properties": {
                          "lineItems": {
                            "title": "Line Items",
                            "type": "array",
                            "items": {
                              "allOf": [
                                {
                                  "title": "Update Line Item",
                                  "allOf": [
                                    {
                                      "title": "Item",
                                      "type": "object",
                                      "properties": {
                                        "quantity": {
                                          "title": "Quantity",
                                          "allOf": [
                                            {
                                              "title": "Unit",
                                              "type": "object",
                                              "properties": {
                                                "value": {
                                                  "title": "Value",
                                                  "type": "number",
                                                  "description": "The value indicated.",
                                                  "format": "double"
                                                },
                                                "unitOfMeasure": {
                                                  "title": "Unit of Measure",
                                                  "type": "string",
                                                  "description": "The unit of measure used to describe the measurement field. Examples include 'Inches', 'Centimeters', 'Pounds', 'Kilograms', etc."
                                                }
                                              },
                                              "description": "A numerical value with an associated unit."
                                            }
                                          ],
                                          "description": "The quantity of the item."
                                        },
                                        "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"
                                        },
                                        "weight": {
                                          "title": "Weight",
                                          "allOf": [
                                            {
                                              "title": "Unit",
                                              "type": "object",
                                              "properties": {
                                                "value": {
                                                  "title": "Value",
                                                  "type": "number",
                                                  "description": "The value indicated.",
                                                  "format": "double"
                                                },
                                                "unitOfMeasure": {
                                                  "title": "Unit of Measure",
                                                  "type": "string",
                                                  "description": "The unit of measure used to describe the measurement field. Examples include 'Inches', 'Centimeters', 'Pounds', 'Kilograms', etc."
                                                }
                                              },
                                              "description": "A numerical value with an associated unit."
                                            }
                                          ],
                                          "description": "The weight of the item."
                                        },
                                        "height": {
                                          "title": "Height",
                                          "allOf": [
                                            {
                                              "title": "Unit",
                                              "type": "object",
                                              "properties": {
                                                "value": {
                                                  "title": "Value",
                                                  "type": "number",
                                                  "description": "The value indicated.",
                                                  "format": "double"
                                                },
                                                "unitOfMeasure": {
                                                  "title": "Unit of Measure",
                                                  "type": "string",
                                                  "description": "The unit of measure used to describe the measurement field. Examples include 'Inches', 'Centimeters', 'Pounds', 'Kilograms', etc."
                                                }
                                              },
                                              "description": "A numerical value with an associated unit."
                                            }
                                          ],
                                          "description": "The height of the item."
                                        },
                                        "width": {
                                          "title": "Width",
                                          "allOf": [
                                            {
                                              "title": "Unit",
                                              "type": "object",
                                              "properties": {
                                                "value": {
                                                  "title": "Value",
                                                  "type": "number",
                                                  "description": "The value indicated.",
                                                  "format": "double"
                                                },
                                                "unitOfMeasure": {
                                                  "title": "Unit of Measure",
                                                  "type": "string",
                                                  "description": "The unit of measure used to describe the measurement field. Examples include 'Inches', 'Centimeters', 'Pounds', 'Kilograms', etc."
                                                }
                                              },
                                              "description": "A numerical value with an associated unit."
                                            }
                                          ],
                                          "description": "The width of the item."
                                        },
                                        "length": {
                                          "title": "Length",
                                          "allOf": [
                                            {
                                              "title": "Unit",
                                              "type": "object",
                                              "properties": {
                                                "value": {
                                                  "title": "Value",
                                                  "type": "number",
                                                  "description": "The value indicated.",
                                                  "format": "double"
                                                },
                                                "unitOfMeasure": {
                                                  "title": "Unit of Measure",
                                                  "type": "string",
                                                  "description": "The unit of measure used to describe the measurement field. Examples include 'Inches', 'Centimeters', 'Pounds', 'Kilograms', etc."
                                                }
                                              },
                                              "description": "A numerical value with an associated unit."
                                            }
                                          ],
                                          "description": "The length of the item."
                                        },
                                        "volume": {
                                          "title": "Volume",
                                          "allOf": [
                                            {
                                              "title": "Unit",
                                              "type": "object",
                                              "properties": {
                                                "value": {
                                                  "title": "Value",
                                                  "type": "number",
                                                  "description": "The value indicated.",
                                                  "format": "double"
                                                },
                                                "unitOfMeasure": {
                                                  "title": "Unit of Measure",
                                                  "type": "string",
                                                  "description": "The unit of measure used to describe the measurement field. Examples include 'Inches', 'Centimeters', 'Pounds', 'Kilograms', etc."
                                                }
                                              },
                                              "description": "A numerical value with an associated unit."
                                            }
                                          ],
                                          "description": "The volume of the item."
                                        },
                                        "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."
                                    },
                                    {
                                      "type": "object",
                                      "properties": {
                                        "reason": {
                                          "title": "Reason",
                                          "type": "string",
                                          "description": "Indicates what should be done with this line item, can be UPDATE or CANCEL."
                                        }
                                      }
                                    }
                                  ],
                                  "description": "A line item that has a provided reason field name that can be either UPDATE or CANCEL."
                                }
                              ]
                            },
                            "description": "Order specific components such as part details."
                          }
                        },
                        "description": "Linked order reference numbers that identify an order."
                      },
                      {
                        "type": "object"
                      }
                    ]
                  },
                  "description": "List of connected order reference numbers."
                }
              },
              "description": "An order that contains information that needs to be modified in some way."
            },
            "description": "Orders that we are updating."
          }
        },
        "description": "A list of order that we will be performing updates on."
      },
      "description": "Action to take for the orders in the list."
    }
  },
  "description": "Wrapper class for the list of orders that will be updated."
}

Responses

204 No Content

Line item updates have been performed on the entire batch of orders.

400 Bad Request

Cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). See RFC 7231, Section 6.5.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."
}

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."
}

404 Not Found

Could not find a current representation for the target resource or is not willing to disclose that one exists. See RFC 7231, Section 6.5.5.

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-update-api/orders/batch-update-line-items"
-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-update-api/orders/batch-update-line-items?" + 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-update-api/orders/batch-update-line-items");


            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-update-api/orders/batch-update-line-items?" + $.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-update-api/orders/batch-update-line-items";
    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-update-api/orders/batch-update-line-items');
$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-update-api/orders/batch-update-line-items?%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-update-api/orders/batch-update-line-items?%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-update-api/orders/batch-update-line-items')


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