CreateMultipleStopShipment
Creates a new shipment that is serviced at more than two points -- a start pickup, one or more intermediate stops, and a final delivery. Available via both REST and SOAP. The request is a CreateShipment request plus one additional array; see Route Model below.
All responses are HTTP 200. Check the status field in the response body for Success or Error. Error details appear in the errors array.
Function Overview
- Purpose: Create a new multiple-stop shipment and return a system load number and GUID.
- REST Endpoint:
POST /api/public/v2/shipping/CreateMultipleStopShipment - SOAP Operation:
CreateMultipleStopShipment(CreateMultipleStopShipmentRequest) - Authentication: Required -- Bearer token in HTTP Authorization header
Route Model
A multiple-stop route is described by three parts of the request. The two endpoints of the route are the same fields used by CreateShipment; only the intermediate stops go in the new array.
| Route position | Request field | Required |
|---|---|---|
| Start pickup (first stop) | shipper | Yes |
| Intermediate stops, in service order | additionalStops[] | Yes for a multiple-stop shipment |
| Final delivery (last stop) | consignee | Yes |
additionalStops. The array holds only the stops between the start pickup and the final delivery. Sending the shipper or consignee again as an additional stop creates a duplicate stop on the route.
The intermediate stops are serviced in the order they are numbered -- see Stop Ordering. Sending an empty additionalStops array (or omitting it) creates an ordinary two-point shipment, exactly as CreateShipment would.
Record Layout
This endpoint defaults recordLayout to 1 (Spot Quote), the layout multiple-stop shipments use. You may send 0 (Contract / Tariff) or 2 (Fee Based) instead.
recordLayout 3 (Final Mile) is rejected. Final Mile registration assigns a carrier terminal as the shipper, which cannot coexist with a caller-defined route. Use CreateShipment for Final Mile shipments.
Stop Ordering
stopID is the position of a stop in the route, starting at 1. You have two options, and they cannot be mixed:
- Omit
stopIDon every stop -- the stops are numbered 1..N in the order they appear in the array. This is the simplest option and is recommended. - Supply
stopIDon every stop -- your values are used as given. Each must be 1 or greater and no two stops may share a value.
stopID and others do not, the request returns status: "Error". Filling in the gaps would mean guessing at positions around your values, which can silently reorder the route -- so the request is refused instead of interpreted.
REST Interface
Headers
Authorization: Bearer <token>
Content-Type: application/json
Minimal Request (one intermediate stop)
Picks up at the shipper, makes one intermediate delivery, and finishes at the consignee. stopID is omitted, so the single stop is numbered 1.
{
"clientReferenceCode": "YOUR-CLIENT-CODE",
"carrierReferenceCode": "CARRIER-CODE",
"serviceLevelCode": "OHN",
"recordLayout": 1,
"shipper": {
"name": "Central Distribution",
"address1": "500 Industrial Parkway",
"city": "Dallas",
"state": "TX",
"zip": "75201",
"phone": "2145550100"
},
"additionalStops": [
{
"stopType": 1,
"address": {
"name": "Northside Retail",
"address1": "88 Commerce Way",
"city": "Waco",
"state": "TX",
"zip": "76701",
"phone": "2545550188"
},
"locationType": "Retail Location"
}
],
"consignee": {
"name": "John Smith",
"address1": "123 Main Street",
"city": "Austin",
"state": "TX",
"zip": "78701",
"phone": "5125551234"
},
"lineItems": [
{
"pieces": 1,
"weight": 65,
"length": 24,
"width": 12,
"height": 10,
"description": "Furniture piece"
}
]
}
Multiple Stops with Explicit Numbering
Two intermediate stops -- an extra pickup, then a delivery -- with stopID supplied on both and an appointment on the second.
{
"additionalStops": [
{
"stopID": 1,
"stopType": 0,
"address": {
"name": "Overflow Warehouse",
"address1": "1200 Depot Road",
"city": "Temple",
"state": "TX",
"zip": "76501",
"phone": "2545550200",
"openTime": "2000-01-01T07:00:00",
"closeTime": "2000-01-01T15:30:00"
},
"locationType": "Warehouse"
},
{
"stopID": 2,
"stopType": 1,
"address": {
"name": "Northside Retail",
"address1": "88 Commerce Way",
"city": "Waco",
"state": "TX",
"zip": "76701",
"phone": "2545550188"
},
"locationType": "Retail Location",
"appointmentRequired": true,
"scheduledAppointment": "2026-08-12T13:00:00"
}
]
}
Request Field Reference
Every field of CreateShipment applies here unchanged -- identity, shipment header, shipper, consignee, line items, load units, references, dates, and accessorials. The table below covers only the added additionalStops array.
| Field | Type | Required | Description |
|---|---|---|---|
| Additional Stops (the intermediate stops only) | |||
| additionalStops | array | No | Intermediate stops in service order. Omit or send empty for a two-point shipment. |
| additionalStops[].stopID | int | No | Route position, 1 or greater. Supply on every stop or on none. See Stop Ordering. |
| additionalStops[].stopType | short | No | 0 = Pickup, 1 = Delivery. Defaults to 0. Any other value is rejected. |
| additionalStops[].locationType | string | No | Facility category, e.g. "Warehouse", "Retail Location" (values provided by DM). Max 30 characters. Defaults to "Retail Location". |
| additionalStops[].appointmentRequired | bool | No | True when the stop requires a scheduled appointment. Default false. |
| additionalStops[].scheduledAppointment | datetime | No | Appointment date and time (ISO 8601). Stored only when appointmentRequired is true; otherwise discarded. |
| Additional Stop Address (same structure as shipper / consignee) | |||
| additionalStops[].address.name | string | Yes | Company or individual name |
| additionalStops[].address.address1 | string | Yes | Street address |
| additionalStops[].address.city | string | Yes | City |
| additionalStops[].address.state | string | Yes | Two-letter state/province code |
| additionalStops[].address.zip | string | Yes | Postal/ZIP code |
| additionalStops[].address.phone | string | Yes | Primary phone number |
| additionalStops[].address.address2 / locationName / firstName / lastName / email / country | string | No | Additional address and contact detail. country defaults to "US". |
| additionalStops[].address.openTime / closeTime | datetime | No | Dock hours for the stop. Only the time-of-day portion is used; the date part is ignored. Default 08:00 / 17:00. |
| Stop-Level Freight Assignment | |||
| additionalStops[].lineNumbers | int array | No | Line numbers of the items dropping at, or collected from, this stop. Omit to leave the stop unitemised. See Stop-Level Freight Assignment below for the rules. |
| additionalStops[].loadUnitIndexes | int array | Reserved | Not implemented and not currently planned. Populating it is rejected -- see below. |
Field Length Limits
Address values longer than the limits below are rejected with a clear message in errors rather than failing at the database. The same limits apply to shipper, consignee, and every additional stop address.
| Field | Max length |
|---|---|
| name, locationName, firstName, lastName, address1, address2, city, country | 50 |
| state | 2 |
| zip | 12 |
| phone | 30 |
| 100 | |
| locationType | 30 |
Stop-Level Freight Assignment
lineNumbers assigns individual line items to an individual stop. It holds the line numbers of the items that drop at, or are collected from, that stop. Omit it and the stop carries no itemisation, which is how every caller behaved before this was implemented.
Assignment works by omission. The shipment's own shipper and consignee are not additional stops and get no assignment of their own -- they take whatever line items are not assigned to a stop. At least one line item must therefore remain unassigned on each side you itemise, or the request is rejected.
Line numbers are the values written to the shipment's line items: lineItems[].lineNumber where you supply it, otherwise the item's consecutive 1-based position in the lineItems array. Supply lineNumber on every line item or on none. A partial set can resolve two items to the same number, which is ambiguous, and an ambiguous request is rejected rather than guessed at.
All-or-none across stops. Either every additional stop supplies lineNumbers or none does. A partial set is ambiguous in a different way: a stop with no assignment could mean "not itemised" or "nothing drops here".
One stop per line item, per stop type. The same line item may legitimately appear on one pickup stop and one delivery stop. The same line item on two pickup stops, or on two delivery stops, is a contradiction and is rejected.
loadUnitIndexes (reserved)
loadUnitIndexes is present in the contract so that stop-level load unit assignment could be added later without a wire change. It is not implemented and not currently planned. Leave it empty or null; if it is populated the request is rejected with status: "Error". It is refused rather than ignored on purpose: a caller who sends an assignment and receives a shipment without one would have no way to tell.
Response
Identical in shape to the CreateShipment response. Stop identifiers are not returned; retrieve the saved route from the shipment record if you need it.
{
"status": "Success",
"dmLoadNumber": 4363968,
"shipmentGUID": "ae7e3813-198b-4c62-a203-5e7206dfca01",
"carrierProNumber": null,
"errors": []
}
Response Fields
| Field | Description |
|---|---|
| status | "Success" or "Error" |
| dmLoadNumber | System-assigned DM Load Number. Present on success. |
| shipmentGUID | Unique GUID for the shipment record. |
| carrierProNumber | Carrier-assigned tracking number, when applicable. Normally null for this endpoint. |
| errors | Array of error messages when status is "Error". |
Stop Validation Errors
Stop errors are collected with header errors and returned together in one response, so a request with several problems reports all of them in a single call. Each message identifies the stop by its position in the array ("Additional stop 1", "Additional stop 2", and so on).
| Condition | Message |
|---|---|
recordLayout is 3 | RecordLayout 3 (Final Mile) is not supported by CreateMultipleStopShipment. Use CreateShipment for Final Mile registration. |
stopType is not 0 or 1 | Additional stop N: StopType must be 0 (Pickup) or 1 (Delivery). |
stopID below 1 | Additional stop N: StopID must be 1 or greater. |
stopID on some stops only | StopID must be supplied on every additional stop or on none. |
Duplicate stopID | StopID N is used by more than one additional stop; values must be unique. |
lineNumbers on some stops only | LineNumbers must be supplied on every additional stop or on none (1 of 2 supplied one). |
lineNumbers sent with no line items | LineNumbers cannot be used without line items. |
| Line items resolve to duplicate line numbers | LineNumbers cannot be used when line items resolve to duplicate line numbers (2). Supply LineItem.LineNumber on every line item or on none. |
lineNumbers value matches no line item | Additional stop N: LineNumbers contains no matching line item (5). Valid line numbers are 1, 2. |
| Same line number listed twice on one stop | Additional stop N: LineNumbers lists the same line number more than once (1). |
| Same line number on two stops of one type | Line number 1 is assigned to more than one delivery stop. A line item can be assigned to at most one stop of each type. |
| Every line item assigned to a stop | At least one line item must remain unassigned on the delivery side. The shipment's own Consignee is not an additional stop and takes the line items that are not assigned to one. |
loadUnitIndexes populated | Additional stop N: LoadUnitIndexes is reserved. Stop-level load unit assignment is not implemented and is not currently planned -- leave it empty. |
| Missing address value | Additional stop N name is required. (Also address, city, state, zip, and phone.) |
Status Codes
- 200 OK -- always returned; check
statusfield for outcome - 401 Unauthorized -- invalid or missing token
SOAP Interface
WSDL
request are in http://dmwebservices.com/shipping/public/v2/operations
while everything inside request is in
http://dmwebservices.com/shipping/public/v2, which is why the samples prefix the
outer two and set a default namespace on request. ELEMENT ORDER MATTERS: the
samples follow the WSDL sequence (RecordLayout before ServiceLevelCode,
Shipper before Consignee, AdditionalStops last); an
out-of-order element is silently ignored. V2's AdditionalStop DOES NOT carry
LoadUnitIndexes, and appointment details move onto the stop's Address.
The V2 WSDL is authoritative.
Live V2 WSDL -- /soap/public/v2/shipping?wsdl
Prefer one self-contained document? Use ?singleWsdl, which inlines every schema rather than referencing them.
Authorization: Bearer <token>
AdditionalStops is declared on the derived request, so it is serialized after every inherited element. Place it last in the <request> block, as shown below.
SOAP Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:op="http://dmwebservices.com/shipping/public/v2/operations">
<soapenv:Header/>
<soapenv:Body>
<op:CreateMultipleStopShipment>
<op:request xmlns="http://dmwebservices.com/shipping/public/v2">
<ClientReferenceCode>YOUR-CLIENT-CODE</ClientReferenceCode>
<CarrierReferenceCode>CARRIER-CODE</CarrierReferenceCode>
<RecordLayout>1</RecordLayout>
<ServiceLevelCode>OHN</ServiceLevelCode>
<Shipper>
<Name>Central Distribution</Name>
<Address1>500 Industrial Parkway</Address1>
<City>Dallas</City>
<State>TX</State>
<Zip>75201</Zip>
<Phone>2145550100</Phone>
</Shipper>
<Consignee>
<Name>John Smith</Name>
<Address1>123 Main Street</Address1>
<City>Austin</City>
<State>TX</State>
<Zip>78701</Zip>
<Phone>5125551234</Phone>
</Consignee>
<LineItems>
<LineItem>
<Pieces>1</Pieces>
<Weight>65</Weight>
<Length>24</Length>
<Width>12</Width>
<Height>10</Height>
<Description>Furniture piece</Description>
</LineItem>
</LineItems>
<AdditionalStops>
<AdditionalStop>
<StopType>1</StopType>
<Address>
<Name>Northside Retail</Name>
<Address1>88 Commerce Way</Address1>
<City>Waco</City>
<State>TX</State>
<Zip>76701</Zip>
<Phone>2545550188</Phone>
</Address>
<LocationType>Retail Location</LocationType>
</AdditionalStop>
</AdditionalStops>
</op:request>
</op:CreateMultipleStopShipment>
</soapenv:Body>
</soapenv:Envelope>
SOAP Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<CreateMultipleStopShipmentResponse xmlns="http://dmwebservices.com/shipping/public/v2/operations">
<result xmlns:a="http://dmwebservices.com/shipping/public/v2">
<a:Status>Success</a:Status>
<a:DMLoadNumber>4363968</a:DMLoadNumber>
<a:ShipmentGUID>ae7e3813-198b-4c62-a203-5e7206dfca01</a:ShipmentGUID>
<a:CarrierProNumber i:nil="true" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"/>
<a:Errors/>
<a:CarrierName>Carrier Name</a:CarrierName>
<a:CarrierReferenceCode>CARRIER-CODE</a:CarrierReferenceCode>
<a:ServiceLevel>OHN</a:ServiceLevel>
</result>
</CreateMultipleStopShipmentResponse>
</s:Body>
</s:Envelope>