DM Web Services Documentation

GetTerminalByZip

Returns the servicing last-mile terminal address for a US zip code.

All responses are HTTP 200. Check the status field for Success or Error.

Read-only lookup: This endpoint does not create or modify any shipment data. No pickup-lock rule applies. Use it to verify terminal coverage or pre-populate shipper address fields before creating a shipment.

Function Overview

  • Purpose: Look up the servicing terminal for a delivery zip code before booking.
  • REST Endpoint: POST /api/public/v1/shipping/GetTerminalByZip
  • SOAP Operation: GetTerminalByZip(TerminalLookupRequest)
  • Authentication: Required -- Bearer token in HTTP Authorization header

REST Interface

Headers

Authorization: Bearer <token>
Content-Type: application/json

Request Body

{
  "zipCode": "32835"
}

Request Fields

FieldTypeRequiredDescription
zipCodestringYesUS zip code to look up the servicing terminal

Response -- Success

{
  "status": "Success",
  "errors": [],
  "deliveryZipCode": "32835",
  "terminalId": "FL042",
  "name": "FL042 I-LOG LLC-MCO",
  "address1": "2619 Consulate Dr",
  "address2": "Suite 100",
  "city": "Orlando",
  "state": "FL",
  "phone": "772-409-4398",
  "email": "FL042@agentgrid.net",
  "terminalZipCode": "32819"
}

Response -- Error

{
  "status": "Error",
  "errors": ["No servicing terminal found for zip code '00000'."],
  "deliveryZipCode": null,
  "terminalId": null,
  "name": null,
  "address1": null,
  "address2": null,
  "city": null,
  "state": null,
  "phone": null,
  "email": null,
  "terminalZipCode": null
}

Response Fields

FieldDescription
status"Success" or "Error"
errorsError messages when status is "Error"
deliveryZipCodeEcho of the requested zip code
terminalIdTerminal facility identifier
nameTerminal display name
address1Terminal street address line 1
address2Suite, unit, etc.
cityTerminal city
stateTwo-letter state code
phoneTerminal phone number
emailTerminal email address
terminalZipCodeThe terminal's own zip code (may differ from the delivery zip)

SOAP Interface

WSDL

/soap/public/v1/shipping?singlewsdl

Authentication note: Pass your Bearer token as an HTTP header, not inside the SOAP envelope.

SOAP Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <GetTerminalByZip xmlns="http://dmwebservices.com/shipping/public/v1">
      <request>
        <ZipCode>32835</ZipCode>
      </request>
    </GetTerminalByZip>
  </soapenv:Body>
</soapenv:Envelope>

Integration Samples


Related Resources