Save custom code
PUT/company/delivery/customcode/:id
Update the custom reference code of a shipment.
Objective
Allow companies to assign their own reference codes to shipments for integration with internal systems and improved traceability.
Use Cases
- Assign an internal order code to the shipment
- Link the shipment with an external ERP/WMS system
- Add an easily recognizable reference for the team
- Synchronize codes with business management systems
Notes
- The {id} parameter must be the MongoDB _id (not service_code)
- custom_code is optional, accepts empty string
- Maximum length: 50 characters
- Can be updated multiple times without status restrictions
Request
Responses
- 200
- 404
Custom code saved successfully
Shipment not found. The provided ID does not exist or does not belong to the authenticated user's company.