New Schedule API

Since 6.18.0

 

Create a Voyage with a Loading and Discharging PortCall with one Cargo with a Loading and Discharging CargoPort

 

POST /Voyage   { "ballastBonus": 0, "ballastBonusRevenue": 0, "ballastPort": 104230, "comments": null, "doAtSea": 0, "doInerting": 0, "daysInertingDo": 0, "daysInertingFo": 0, "doInPort": 0, "doInPortWorking": 10, "foBallast": 220, "foCleaning": 0, "foHeating": 0, "foInerting": 0, "foInPort": 3.61, "foInPortWorking": 7, "foLoaded": 220, "percentExtraAtSea": 0, "tcHireCommission": 0, "tcRate": 0, "vessel": 1038779, "variousCost": 0, "portCallsFromVoyage": [ { "eventLogs": [ { "event": "ARR", "eventLogDate": "2022-10-26T10:50:05" }, { "event": "BRT", "eventLogDate": "2022-10-26T10:50:05" }, { "event": "DEP", "eventLogDate": "2022-10-26T10:50:05" } ], "port": 101770, "portCallSequence": 1, "reasonForCall": "L", "portCostCurrency": 0, "daysExtraInPort": 0.75 }, { "eventLogs": [ { "event": "ARR", "eventLogDate": "2022-10-26T10:50:05" }, { "event": "BRT", "eventLogDate": "2022-10-26T10:50:05" }, { "event": "DEP", "eventLogDate": "2022-10-26T10:50:05" } ], "port": 104146, "portCallSequence": 2, "reasonForCall": "D", "portCostCurrency": 0, "daysExtraInPort": 0.75 } ], "cargos": [ { "cargoPorts": [ { "portCall":null, "cargoPortSequence": 1, "port": 101770, "reasonForCall": "L", "cargoQuantity": 100, "laytimeTerms": 6000950, "laytimeTermsMeasurement": 6506188, "laytimeTermsValue": 33 }, { "portCall":null, "cargoPortSequence": 1, "port": 104146, "reasonForCall": "D", "cargoQuantity": 100, "freightRate": 0, "laytimeTerms": 6000950, "laytimeTermsMeasurement": 6506188, "laytimeTermsValue": 55 } ], "cargoMeasurement": "CEU", "weightMeasurement": "MT", "weightUnit": "MT", "stowageUnit": "MT", "cargoMatch": "1", "volumeMeasurement": "CBM", "freightCurrency": "USD", "cargoType": "SPOT", "isTemplate": false, "commissionAddress": 0, "commissionBroker": 0, "charterer": { "key": 3642795 }, "commodity": { "key": 5998229 }, "isWorldscale": false, "isLumpsum": false, "freightRate": null } ] }

 

Creating a new Cargo with a Loading and Discharging CargoPort and PortCall

POST /Cargo   { "cargoMeasurement": "MT", "cargoPorts": [ { "cargoPortSequence": 1, "cargoQuantity": 1234, "laytimeTermsMeasurement": "H", "laytimeTermsValue": 0, "port": { "key": 102381 }, "portCall": { "portCallSequence": 3, "eventLogs": [ { "event": "ARR", "eventLogDate": "2022-11-02T08:06:45" }, { "event": "BRT", "eventLogDate": "2022-11-02T08:06:45" }, { "event": "DEP", "eventLogDate": "2022-11-02T08:06:45" } ], "reasonForCall": "L", "port": 102381, "voyage": 18737959 }, "reasonForCall": "L", "terminal": null }, { "cargoPortSequence": 1, "cargoQuantity": 1234, "freightRate": 1210, "laytimeTermsMeasurement": "H", "laytimeTermsValue": 0, "port": { "key": 101486 }, "portCall": { "portCallSequence": 4, "eventLogs": [ { "event": "ARR", "eventLogDate": "2022-11-02T08:06:48" }, { "event": "BRT", "eventLogDate": "2022-11-02T08:06:48" }, { "event": "DEP", "eventLogDate": "2022-11-02T08:06:48" } ], "reasonForCall": "D", "port": 101486, "voyage": 18737959 }, "reasonForCall": "D", "terminal": null } ], "cargoText": "", "charterer": { "key": 1004307 }, "commodity": { "key": 1675975 }, "freightCurrency": "USD", "leg": null, "scenarios": [], "voyage": { "key": 18737959 } }

 

Adding to a Cargo a new Loading and Discharging CargoPort and PortCall

PUT /Cargo/{KEY}   { "cargoPorts": [ { "key": 18739785 }, { "key": 18739786 }, { "port": 103991, "reasonForCall": "D", "cargoPortSequence": 2, "portCall": { "portCallSequence": 6, "eventLogs": [ { "event": "ARR", "eventLogDate": "2022-11-02T08:06:48" }, { "event": "BRT", "eventLogDate": "2022-11-02T08:06:48" }, { "event": "DEP", "eventLogDate": "2022-11-02T08:06:48" } ], "reasonForCall": "D", "port": 103991, "voyage": 18739534, "ownedByVoyage": 18739534 } } ] }

 

Â