Fulfill Shipment

Warning

This documentation is for translated APIs and intended only for some implementations who have upgraded from a previous version of Order Management. Verify whether your implementation uses translated APIs before making this call, as you will experience errors if your tenant is not configured to use these. If your implementation is not configured to do so, then refer to the standard API documentation instead.

The Fulfill Shipment action ID will set the initial tracking information when all items in the shipment have been shipped. This will also put the shipment in the final completePackage state.

Note that the request body and parameter schemas outlined in this guide are the exact same as in the previous version of OMS, as the Unified Commerce platform supports backwards compatibility for this API. The only change to this request is the format of the base endpoint, as shown in the below table. Remember to provide the x-vol-tenant key for authentication in the headers.

Production URLhttps://{tenantId}-translation.mozu.com/api/v2/shipment/action/fulfill
Sandbox URLhttps://{tenantId}-translation.sandbox.mozu.com/api/v2/shipment/action/fulfill
Supported FormatsJSON
HTTP MethodPOST

Example

The example case will fulfill a shipment with the following properties:

  • Shipment ID – 090909
  • Carrier Information – UPS, 1-2 days
  • Tracking Information – Tracking Number 0123456789

Required Parameters

Fulfilling a shipment requires:

ParametersTypeDescriptions
shipmentIDintegerA unique identifier for the shipment. The minimum value is “1”.
shipmentDatestringThe date the shipment was shipped. Supports date-time format.
trackingInformationarrayThe tracking information for this shipment.
sendEmailsbooleanShould emails be sent? The default is “true”.

Optional Parameters

There is only one optional property:

ParametersTypeDescriptions
externalShipmentIDstringAn externally defined shipment reference identifier. The minimum length is 1 and the maximum length is 10.

Tracking Information

The tracking information (/trackingInformation/[object]) for a shipment includes the following parameters, but only requires trackingNumber.

ParametersTypeDescriptions
trackingNumberstringThe shipment’s tracking number. The maximum length is 50.
deliveryTypestringThe shipment’s shipping method. This parameter is read-only. Do not attempt to set this value.
carrierTypeenumThe carrier (USPS, FedEx, etc.) delivering the shipment. See the schema for a full list of possible values.
carrierTypeOtherstringThe carrier’s name if it is not one of Kibo’s listed carriers. The maximum length is 20.
transitTimestringThe time the shipment is expected to be in transit. The maximum length is 50.
returnTrackingNumberstringThe shipment’s return tracking number.
trackingURLstringThe URL to track the shipment. The maximum length is 400.

Supported Carriers and Tracking Numbers

The full list of carrier options that OMS supports are:

USPSDPD (UK)Interlink Express (UK)
UPSGSOYodel UK
FedExCanada Post (CA)La Poste (FR)
FedEx FreightCanPar (CA)Deutsche Post (DE)
FedEx UK (UK)DICOM Express (CA)Swiss Post (CH)
FedEx SmartPostPurolator (CA)Bartolini (IT)
DHLRoyal Mail (UK)GLS
DHL (CA)Parcel Force (UK)Italian Post (IT)
DHL (DE)PostNL (NL)OnTrac
DHL (UK)Swedish Post (SE)APC Overnight (UK)
DHL NextDayTNT (UK)UK Mail
DPDTNT (IT)Seur
DPD (DE)City Link (UK)Other

The tracking number formats that OMS supports are based on each carrier’s unique rules. If OMS cannot validate a tracking number based on its known rules, it will attempt to validate the number on the carrier’s system. The chart below describes how to format tracking numbers for some of the most common carriers, but be aware that there may be some variations.

CarrierLengthFormat ExamplesDescription
UPS11, 12, or 181Z9999999999999999, 999999999999, T9999999999.When a length of 18, the first values are 1Z followed by a 6-character shipper number, a 2-digit service level indicator, and an 8-digit package number.
USPS13 or 20EE999999999EE, 99999999999999999999.When a length of 13, it is alphanumeric with the first value being E,C, or V and the second value being E, C, D, P, S, V, or W. E is for Express. When a length of 20, all values are numeric.
FedEx12 or 7-22999999999999Express shipments have a length of 12. All tracking numbers are numeric.
DHL2-119999999999May not be all 0s. The most common length is 10.
Royal Mail14EEE999999999GBAlphanumeric, ends with “GB.”
Deutsche Post11999999999EEAlphanumeric.
La Poste13EE999999999EEAlphanumeric.
Canada Post11, 13, or 1699999999999, EEE999999999E, 9999999999999999All numeric except for when a length of 13. In that case, it may be alphanumeric.
DPD (UK)10+99999999999999Usually numeric.
DPD (DE)14EEEE99999999994 alphanumeric, followed by 10 numerals.
UK Mail9-1499999999999999Usually numeric.

The Full Request

This is the entire request that will fulfill a shipment.

{
    "shipmentID": 090909, 
    "sendEmails":true, 
    "trackingInformation": [ 
     { 
        "trackingNumber": 0123456789, 
        "carrierType": "UPS", 
        "transitTime": "1-2 Days"
     } 
    ], 
    "shipmentDate": "2017-09-08T17:09:03+00:00"
}

The returned response follows the same structure as the Get Shipment API, providing information about the shipment that was fulfilled.