Schedule API
Create a Voyage with a Loading and Discharging PortCall with one Cargo with a Loading and Discharging CargoPort.
The created voyage will get the status Estimated (code EST).
Creating a new Cargo with a Loading and Discharging CargoPort and PortCall. The PortCall objects have EventLogDates that specify Arrival, Berthing, Un-berthing, and Departure dates.
POST /Cargo
{
"cargoMeasurement": "MT",
"cargoPorts": [
{
"cargoPortSequence": 1,
"cargoQuantity": 1234,
"laytimeTermsMeasurement": "H",
"port": {
"key": 102381
},
"portCall": {
"portCallSequence": 3,
"reasonForCall": "L",
"port": 102381,
"voyage": 6136896
},
"reasonForCall": "L"
},
{
"cargoPortSequence": 1,
"cargoQuantity": 1234,
"freightRate": 1210,
"laytimeTermsMeasurement": "H",
"port": {
"key": 101486
},
"portCall": {
"portCallSequence": 4,
"reasonForCall": "D",
"port": 101486,
"voyage": 6136896
},
"reasonForCall": "D"
}
],
"charterer": {
"key": 1004307
},
"commodity": {
"key": 1675975
},
"freightCurrency": "USD",
"voyage": {
"key": 6136896
}
}Adding to a Cargo a new Loading or Discharging CargoPort and PortCall
Fixing the date on an EventLog object. Note, only EventLogs with EventLog.EventLogDate from the past can be fixed, otherwise, the returned value of isDateFixed will be false.
Nominate an estimate voyage
To nominate a voyage of a given vessel first you need to get the last sequence for the vessel in the fleet plan:
sending the HTTP Header property fileds withi this value:
{"fleetPlanVoyages":{"sequence":"*"}}
Then you can nominate the voyage making a PUT sending this payload:
incrementing the sequence by 1.
Was this helpful?