Skip to main content

Update Shipment By Reference

PATCH 

/api/v1/shipments/reference/:shipment_reference

Update a shipment's properties including tracking information, custom fields, tags, and sharing settings.

Errors
CodeTRACKING_NUMBER_REQUIRED
MessageThe tracking_number field cannot be empty.
Suggested FixPlease provide a valid tracking number for this shipment.
Targettracking_number
CodeCARRIER_SCAC_REQUIRED
MessageCarrier SCAC is required for bill_of_lading.
Suggested FixPlease provide a valid carrier SCAC code.
Targetcarrier_scac
CodeTRACKING_TYPE_REQUIRED
MessageTracking type is required for this shipment.
Suggested FixPlease provide a valid tracking type for this shipment.
Targettracking_type
CodeCARRIER_INVALID_FORMAT
MessageThe carrier 'invalid' has an invalid format. Expected a string.
Suggested FixA SCAC must be exactly 4 alphanumeric characters (e.g., 'MSCU'). Use 'AUTO' for automatic carrier detection.
Targetcarrier
CodeCARRIER_NOT_SUPPORTED
MessageThe carrier with SCAC 'INVALID' is not currently supported.
Suggested FixPlease check our list of supported carriers. If you'd like us to support this carrier, please contact our team.
Targetcarrier_scac
CodeTRACKING_NUMBER_INVALID
MessageThe tracking number 'invalid_number' is invalid.
Suggested FixPlease provide a valid tracking number for this shipment.
Targettracking_number
CodeNAME_TOO_LONG
MessageThe name field for this shipment is too long. The maximum allowed length is 255 characters.
Suggested FixPlease shorten the shipment name to 255 characters or fewer.
Targetname
CodeCUSTOM_FIELDS_UNKNOWN
MessageThe following custom fields are not defined in your workspace: 'unknown_field'.
Suggested FixPlease ensure all custom field names match the slugs defined in your workspace settings.
Targetcustom_fields
CodeCUSTOM_FIELD_INVALID_TYPE
MessageThe value for the custom field 'field_slug' has the wrong type. Expected a 'string'
Suggested FixPlease ensure the value matches the data type defined for this custom field (e.g., Number, Date, Text).
Targetcustom_fields
CodeCUSTOM_FIELD_TOO_LONG
MessageThe value for the custom field 'field_slug' is too long.
Suggested FixPlease shorten the value for the custom field '{field_slug}'.
Targetcustom_fields
CodeINVALID_EMAIL
MessageThe email 'invalid@email' is invalid.
Suggested FixPlease provide a valid email address.
Targetassignees
CodeINVALID_EMAIL
MessageThe email '[email protected]' is not a member of the workspace.
Suggested FixPlease provide a valid email address.
Targetassignees
CodeINVALID_EMAIL
MessageThe email '[email protected]' is already a non-viewer member of system.
Suggested FixPlease provide a valid email address.
Targetviewers

Request

Responses

OK