Skip to main content

International Shipping Departure Time Update API

This API allows you to update the departure time for international shipments provided by the Willog platform. You can use this API to change the departure time of an ongoing international shipment.

Request


PATCH ext/v1/ocean/reference-numbers/:referenceNumber/departure-time

Path Variable

NameDescription
referenceNumberReference Number

Request Body

  • departureTime: REQUIRED NUMBER - The new departure time to update (Unix timestamp in ms)

Example Request

PATCH /ext/v1/ocean/reference-numbers/:referenceNumber/departure-time
Authorization: Bearer token
{
"departureTime": 1738665219000
}

Response


Response Body

HTTP/1.1 200 OK

  • success: boolean - Success status
  • message: string - Message or remarks

Example Success Response

- When the departure time is successfully updated

HTTP/1.1 200 OK

{
"success": true,
"message": "Successfully updated departure time to 2025-05-05T05:06:59.000Z for given reference number. Set to departed state",
}

Example Error Response

- When the transport status is not in the 'ready for departure' state

HTTP/1.1 200 OK

{
"success": false,
"message": "Only Fetched transport groups can update departure time",
}