UpdateShipmentReference
Upserts a reference value by type. Updates the first matching row if the type exists; inserts a new row if it does not. Use AddShipmentReference if you always want to insert.
All responses are HTTP 200. Check the status field for Success or Error.
Lock rule: This call fails if
ActualPickup is set and on or before today.
Function Overview
- Purpose: Set or update a reference value by type. Safe to call whether or not the type already exists.
- REST Endpoint:
POST /api/public/v1/shipping/UpdateShipmentReference - SOAP Operation:
UpdateShipmentReference(UpdateShipmentReferenceRequest) - Authentication: Required -- Bearer token in HTTP Authorization header
Permitted Reference Types
Only the following reference types are accepted. This list reflects the current system configuration and updates automatically.
| Reference Type | Storage |
|---|---|
| Accounting Code | Shipments_ReferenceData collection |
| Container Number | Shipments_ReferenceData collection |
| Customer Order Number | Shipments_ReferenceData collection |
| Delivery Number | Shipments_ReferenceData collection |
| Department Number | Shipments_ReferenceData collection |
| General Ledger Code | Shipments_ReferenceData collection |
| Inbound/Outbound Party | Shipments_ReferenceData collection |
| Load Number | Shipments_ReferenceData collection |
| Order Number | Shipments_ReferenceData collection |
| Outbound | Shipments_ReferenceData collection |
| Packing List Number | Shipments_ReferenceData collection |
| Pickup Number | Shipments_ReferenceData collection |
| PO Number | Shipments_ReferenceData collection |
| Reference Name | Shipments_ReferenceData collection |
| Reference Number | Shipments_ReferenceData collection |
| Release Number | Shipments_ReferenceData collection |
| Return Authorization Number | Shipments_ReferenceData collection |
| Return Number | Shipments_ReferenceData collection |
| Return Reason | Shipments_ReferenceData collection |
| Sales Number | Shipments_ReferenceData collection |
| Shipper Order Number | Shipments_ReferenceData collection |
| Shipper Reference Number | Shipments_ReferenceData collection |
| Shipper Shipment ID | Shipments_ReferenceData collection |
| Tender Code | Shipments_ReferenceData collection |
| Trailer Number | Shipments_ReferenceData collection |
| Upload ID | Shipments_ReferenceData collection |
| Vendor ID | Root Shipments column |
REST Interface
Headers
Authorization: Bearer <token>
Content-Type: application/json
Request Body
{
"dmLoadNumber": 4363968,
"referenceType": "Sales Order",
"data": "SO-12345"
}
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
| dmLoadNumber | decimal | Yes | DM Load Number of the shipment |
| referenceType | string | Yes | Must match a permitted type. Upserts -- safe to call regardless of whether it exists. |
| data | string | Yes | The reference value to store |
Response -- Success
{
"status": "Success",
"dmLoadNumber": 4363968,
"errors": []
}
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>
<UpdateShipmentReference xmlns="http://dmwebservices.com/shipping/public/v1">
<request>
<DMLoadNumber>4363968</DMLoadNumber>
<ReferenceType>Sales Order</ReferenceType>
<Data>SO-12345</Data>
</request>
</UpdateShipmentReference>
</soapenv:Body>
</soapenv:Envelope>