Create a Voyage with a Loading and Discharging PortCall with one Cargo with a Loading and Discharging CargoPort.
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.
Copy 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
}
}
Copy PUT /Cargo/{KEY}
{
"cargoPorts": [
{
"key": 18739785
},
{
"key": 18739786
},
{
"port": 103991,
"reasonForCall": "D",
"cargoPortSequence": 2,
"portCall": {
"portCallSequence": 6,
"reasonForCall": "D",
"port": 103991,
"voyage": 18739534,
"ownedByVoyage": 18739534
}
}
]
}
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 .
Copy PUT /EventLog/{KEY}
{
"isDateFixed":true
}