Dock scheduler description

Descrip­tion of dock sched­uler time win­dows, ware­hous­es and announce­ments.

Available methods

What is the scope of dock scheduler:

  • cre­ate time win­dow
  • delete time win­dow
  • get list of time win­dows
  • get list of ware­hous­es
  • get details of sin­gle time win­dow by id
  • get announce­ments list

Creating new time window

In order to cre­ate time win­dow you have to add a ware­house and dock first — both can be added using Plat­form.

JsonIs requiredExam­pleTypeDescrip­tion
valid_fromYes2021-06-04Time­stampTime slot begin date
valid_toYes2021-06-04Time­stampTime slot end date
start_timeNo09:00:00Time­stampTime slot begin hour
end_timeNo18:00:00Time­stampTime slot end hour
operation_timeNoPT90MStringSlot time to be used to per­form the oper­a­tion. Must be a mul­ti­ple of the default slot time set for the ware­house. syn­tax: “PT” then, H — hours, M — min­utes, S — sec­onds (exam­ple: PT1H20M1S which means that the slot takes: one hour, twen­ty min­utes and one sec­ond)
remarksNoExam­ple remarkStringTime slot remarks
range_typeYesCycleStringIt can be set either to cycle or inter­val
external_numberNo123xyzStringTime win­dow exter­nal num­ber
car­ri­erYesObjectCar­ri­er infor­ma­tion
carrier.idYes1111111IntIden­ti­fi­ca­tion num­ber of car­ri­er com­pa­ny
ramp_idsNo14532,14533ArrayAllows you to select one or more dock
routeYesObjectRoute infor­ma­tion
route.spotsYesArray of objectsSpot must con­tain either ware­house id or address
route.spots.orderYes1IntInfor­ma­tion about the order of spot places — first spot always has spot_order set to 1
route.spots.warehouse_idYes/No29IntIf belongs_to_time_window = true, then warehouse_id is required
route.spots.operationsYesArrayOper­a­tions to be com­plet­ed in giv­en spot (in each spot first oper­a­tion always has operation_order set to 1)
route.spots.operations.operation_typeYesLoad­ingStringThe first oper­a­tion has to be of type load­ing and the last oper­a­tion of type unload­ing
route.spots.operations.orderYes1IntOper­a­tion order at a giv­en spot
route.spots.operations.belongs_to_time_windowYesTrueBooleanDefines if oper­a­tion belongs to time slot
route.spots.orderYes2IntInfor­ma­tion about the order of spot places
route.spots.addressYesObjectIf belongs_to_time_window = false, then only address is required
route.spots.address.nameYesSpot 2StringAddress name
route.spots.address.localityNoWrocławStringTown
route.spots.address.postal_codeNo50–002StringPostal code
route.spots.address.countryNoPLStringCoun­try ISO val­ue
route.spots.address.streetNoRacław­ic­kaStringStreet
route.spots.address.numberNo2IntNum­ber
route.spots.operationsYesArrayOper­a­tions to be com­plet­ed in giv­en spot (in each spot first oper­a­tion always has operation_order set to 1)
route.spots.operations.operation_typeYesUnload­ingStringThe first oper­a­tion has to be of type load­ing and the last oper­a­tion of type unload­ing
route.spots.operations.orderYes1IntOper­a­tion order at a giv­en spot
route.spots.operations.belongs_to_time_windowYesFalseBooleanDefines if oper­a­tion belongs to time slot

Request example

{
  "valid_from": "2021-06-04",
  "valid_to": "2021-06-04",
  "start_time": "09:00:00",
  "end_time": "18:00:00",
  "remarks": "Example remark",
  "range_type": "CYCLE",
  "external_number": "123xyz",
  "carrier": {
    "id": 1013865
  },
  "ramp_ids": [14532,14533],
  "route": {
    "spots": [
      {
        "order": 1,
        "warehouse_id": 29,
        "operations": [
          {
            "operation_type": "LOADING",
            "order": 1,
            "belongs_to_time_window": true
          }
        ]
      },
      {
        "order": 2,
        "address": {
          "name": "Spot 2",
          "locality": "Wrocław",
          "postal_code": "50-002",
          "country": "pl",
          "street": "Raclawicka",
          "number": "2"
        },
        "operations": [
          {
            "operation_type": "UNLOADING",
            "order": 1,
            "belongs_to_time_window": false
          }
        ]
      }
    ]
  }
}

Get list of time windows

JsonExam­pleTypeDescrip­tion
con­tentArray of objectsList of time win­dows
content.carrierObjectCar­ri­er infor­ma­tion
content.carrier.id1111111IntIden­ti­fi­ca­tion num­ber of car­ri­er com­pa­ny
content.carrier.legal_nameTest com­pa­nyStringCom­pa­ny legal name
content.created_at2020–09-29T08:54:24Time­stampTime win­dow cre­ation date
content.end_time18:00:00Time­stampTime slot end hour
content.external_number123xyzStringTime win­dow exter­nal num­ber
content.freight_orderObjectData from freight and order based on which a time slot has been cre­at­ed auto­mat­i­cal­ly. Will be null if time slot was added man­u­al­ly.
content.freight_order.driverObjectDri­ver data
content.freight_order.driver.document_typePass­portStringID card, pass­port, dri­ving licence, etc
content.freight_order.driver.full_nameAdam Kowal­s­kiStringDri­ver first and last name
content.freight_order.driver.id_number11111abcStringDoc­u­ment num­ber
content.freight_order.driver.phone_number11111111IntDri­ver phone num­ber
content.freight_order.freight_id766315IntFreight id
content.freight_order.freight_reference_numberFR/2021/06/15/C9YSStringFreight num­ber
content.freight_order.order_id349c6245-e004-4ab4-ac1d-c4e32f8cb­de9StringTrans­port order id
content.freight_order.order_reference_number2021/06/15/5StringTrans­port order num­ber
content.freight_order.vehicleObjectVehi­cle data
content.freight_order.vehicle.trailer_plate_numberDW11111IntTrail­er plate num­ber
content.freight_order.vehicle.truck_plate_numberDW11112IntTruck plate num­ber
content.id5996IntTime win­dow ID
content.operation_typeLoad­ingStringOper­a­tion type can be one from the fol­low­ing: LOADING, UNLOADING, ANY
content.range_typeCycleStringIt can be set either to cycle or inter­val
content.reference_numberDS/13752DFStringRef­er­ence num­ber assigned auto­mat­i­cal­ly dur­ing cre­ation of a new time win­dow
content.routeObjectRoute infor­ma­tion
content.route.loading_placeObjectLoad­ing place address
content.route.loading_place.coordinatesObjectLoad­ing place coor­di­nates
content.route.loading_place.coordinates.latitude50.95FloatLoad­ing place lat­i­tude
content.route.loading_place.coordinates.longitude17.29FloatLoad­ing place lon­gi­tude
content.route.loading_place.countryPLStringLoad­ing place coun­try ISO val­ue
content.route.loading_place.localityWrocławStringLoad­ing place town
content.route.loading_place.nameMag­a­zineStringLoad­ing place name
content.route.loading_place.number26StringLoad­ing place num­ber
content.route.loading_place.postal.code55–200StringLoad­ing place postal code
content.route.loading_place.streetStreetStringLoad­ing place street
content.route.unloading_placeObjectUnload­ing place address
content.route.unloading_place.coordinatesObjectUnload­ing place coor­di­nates
content.route.unloading_place.coordinates.latitude33FloatUnload­ing place lat­i­tude
content.route.unloading_place.coordinates.longitude66FloatUnload­ing place lon­gi­tude
content.route.unloading_place.countryAFStringUnload­ing place coun­try ISO val­ue
content.route.unloading_place.localityKab­ulStringUnload­ing place town
content.route.unloading_place.nameNullStringUnload­ing place name
content.route.unloading_place.number12StringUnload­ing place num­ber
content.route.unloading_place.postal_code50–002StringUnload­ing place postal code
content.route.unloading_place.streetStreetStringUnload­ing place street
content.start_time12:30:00Time­stampTime slot begin hour
content.statusOCCUPIEDStringTime slot sta­tus. Can be one from the fol­low­ing: OCCUPIED, DELETED, AVAILABLE, USED
content.valid_from2021-06-16Time­stampTime slot begin date
content.valid_to2021-06-16Time­stampTime slot end date
content.warehouseObjectWare­house infor­ma­tion
content.warehouse.id2391IntWare­house id num­ber
content.warehouse.nameMag­a­zineStringWare­house name
content.warehouse.time_zoneObjectTime zone infor­ma­tion
content.warehouse.id.time_zone.idEurope/WarsawStringTime zone name
content.warehouse.id.time_zone.offset+02:00StringUTC off­set

Get time window by id

JsonExam­pleTypeDescrip­tion
car­ri­erObjectCar­ri­er infor­ma­tion
carrier.id1111111IntIden­ti­fi­ca­tion num­ber of car­ri­er com­pa­ny
carrier.legal_nameTest com­pa­nyStringCom­pa­ny legal name
created_at2020–09-29T08:54:24Time­stampTime win­dow cre­ation date
end_time18:00:00Time­stampTime slot end hour
external_number123xyzStringTime win­dow exter­nal num­ber
freight_orderObjectData from freight and order based on which a time slot has been cre­at­ed auto­mat­i­cal­ly. Will be null if time slot was added man­u­al­ly.
freight_order.driverObjectDri­ver data
freight_order.driver.document_typePass­portStringDri­ver ID card, pass­port, dri­ving licence, etc
freight_order.driver.full_nameAdam Kowal­s­kiStringDri­ver first and last name
freight_order.driver.id_number11111111StringDri­ver doc­u­ment num­ber
freight_order.driver.phone_number11111111IntDri­ver phone num­ber
freight_order.freight_id766315IntFreight id
freight_order.freight_reference_numberFR/2021/06/15/C9YSStringFreight num­ber
freight_order.order_id349c6245-e004-4ab4-ac1d-c4e32f8cb­de9StringTrans­port order id
freight_order.order_reference_number2021/06/15/5StringTrans­port order num­ber
freight_order.vehicleObjectVehi­cle data
freight_order.vehicle.trailer_plate_numberDW11111IntTrail­er plate num­ber
freight_order.vehicle.truck_plate_numberDW11112IntTruck plate num­ber
id5996IntTime win­dow ID
operation_typeLoad­ingStringThe first oper­a­tion has to be of type load­ing and the last oper­a­tion of type unload­ing
rampsObjectInfor­ma­tion about ramps
ramps.id3223IntDock id
ramps.namenullStringRamp name
ramps.operation_typeAnyStringIt can be load­ing, unload­ing or any
ramps.ramp_number3IntRamp num­ber
ramps.ramp_typeRampStringIt can be ramp, silo, gate or crane
range_typeStringIt can be set either to cycle or inter­val
reference_numberDS/13752DFStringRef­er­ence num­ber assigned auto­mat­i­cal­ly dur­ing cre­ation of a new time win­dow
routeObjectRoute infor­ma­tion
route.spotsObjectSpots infor­ma­tion
route.spots.addressObjectAddress
route.spots.address.coordinatesObjectCoor­di­nates
route.spots.address.coordinates.latitude50.95FloatLat­i­tude
route.spots.addresscoordinates.longitude17.29FloatLon­gi­tude
route.spots.address.countryPLStringCoun­try ISO val­ue
route.spots.address.localityWrocławStringTown
route.spots.address.nameMag­a­zineStringName
route.spots.address.number26StringNum­ber
route.spots.address.postal.code55–200StringPostal code
route.spots.address.streetStreetStringStreet
route.spots.operationsArrayOper­a­tions in giv­en spot
route.spots.operations.operation_typeLOADINGStringOper­a­tion type can be one from the fol­low­ing: LOADING, UNLOADING, ANY
route.spots.operations.order1IntOper­a­tion order at a giv­en spot
route.spots.operations.time_window_id8582IntTime win­dow id — it can be null if spot does­n’t belong to time win­dow
route.spots.order1IntInfor­ma­tion about the order of spot places — first spot always has spot_order set to 1
route.addressObjectAddress
route.address.coordinatesObjectCoor­di­nates
route.address.coordinates.latitude33FloatLat­i­tude
route.address.coordinates.longitude66FloatLon­gi­tude
route.address.countryAFStringCoun­try ISO val­ue
route.address.localityKab­ulStringTown
route.address.nameNullStringName
route.address.number12StringNum­ber
route.address.postal_code50–002StringPostal code
route.address.streetStreetStringStreet
route.spots.operationsArrayOper­a­tions in giv­en spot
route.spots.operations.operation_typeUNLOADINGStringEither load­ing or unload­ing
route.spots.operations.order1IntOper­a­tion order at a giv­en spot
route.spots.operations.time_window_idNullIntTime win­dow id — it can be null if spot does­n’t belong to time win­dow
route.spots.order2IntInfor­ma­tion about the order of spot places — first spot always has spot_order set to 1
start_time12:30:00Time­stampTime slot begin hour
sta­tusOCCUPIEDStringTime slot sta­tus. Can be one from the fol­low­ing: OCCUPIED, DELETED, AVAILABLE, USED
valid_from2021-06-16Time­stampTime slot begin date
valid_to2021-06-16Time­stampTime slot end date
ware­houseObjectWare­house infor­ma­tion
warehouse.id2391IntWare­house id num­ber
warehouse.nameMag­a­zineStringWare­house name
warehouse.time_zoneObjectTime zone infor­ma­tion
warehouse.id.time_zone.idEurope/WarsawStringTime zone name
warehouse.id.time_zone.offset+02:00StringUTC off­set

Get  warehouses list

JsonExam­pleTypeDescrip­tion
addressObjectAddress
address.coordinatesObjectCoor­di­nates
address.coordinates.latitude37.73952FloatLat­i­tude of the point
address.coordinates.longitude25.66874FloatLon­gi­tude of the point
address.countryPLStringCoun­try ISO val­ue
address.localityWrocławStringTown
address.nameLoca­tion 1StringLoca­tion name
address.number1StringNum­ber
address.postal_code50–430StringPostal code
address.remarksAddress remarksStringAddress addi­tion­al infor­ma­tion
address.streetBrzes­kaStringStreet
id2381IntWare­house Id
is_activeTrueBooleanIs ware­house active
is_lockedFalseBooleanIs ware­house locked
nameMag­a­zine 1StringWare­house name
operation_time60IntSin­gle oper­a­tion time
time_zoneObjectTime zone infor­ma­tion
time_zone.idEurope/WarsawStringTime zone name
time_zone.offset+02:00StringUTC off­set

Get announcements list

JsonExam­pleTypeDescrip­tion
con­tentArray of objectsList of announce­ments
content.arrival_delaynullIntDelay in min­utes between sched­uled arrival time and present time
content.carrierObjectInfor­ma­tion about car­ri­er
content.carrier.id11111IntIden­ti­fi­ca­tion num­ber of com­pa­ny assigned to announce­ment
content.carrier.legal_nameKon­to testowe car­ri­erStringAssigned com­pa­ny name
content.date_from2021-12-10 13:00:00Time­stampAnnounce­ment date from
content.date_to2021-12-10 13:30:00Time­stampAnnounce­ment date to
content.driverObjectInfor­ma­tion about dri­ver
content.driver.documentObjectInfor­ma­tion about dri­ver’s doc­u­ment
content.driver.document.issuing_authorityBur­mistrzStringDri­ver’s doc­u­ment issu­ing author­i­ty
content.driver.document.number31123StringDri­ver’s doc­u­ment num­ber
content.driver.document.typeIDENTITY CARDStringDri­ver’s doc­u­ment type can be one from the fol­low­ing: IDENTITY_CARD, PASSPORT, DRIVING_LICENSE, RESIDENCE_CARD, OTHER
content.driver.full_nameJan Kowal­s­kiStringDri­ver’s full name
content.driver.phone_numbernullStringDri­ver’s phone num­ber
content.id24612IntAnnounce­ment id
content.notesnullStringNotes
content.operation_typeLOADINGStringOper­a­tion type. Can be either load­ing, unload­ing or unde­clared
content.order_reference_number2022/01/25/9StringRef­er­ence num­ber of order based on which an announce­ment was cre­at­ed
content.rampObjectRamp infor­ma­tion
content.ramp.id834IntRamp id
content.ramp.is_activeTrueBooleanIs ramp active
content.ramp.is_lockedFalseBooleanIs ramp blocked
content.ramp.nameRam­paStringRamp name
content.ramp.warehouseObjectWare­house infor­ma­tion
content.ramp.warehouse.addressObjectWare­house address
content.ramp.warehouse.address.id259IntWare­house id
content.ramp.warehouse.address.localityWarsza­waStringWare­house local­i­ty
content.ramp.warehouse.address.nameMag­a­zyn testowyStringWare­house name
content.ramp.warehouse.id259IntWare­house id
content.ramp.warehouse.is_activeTrueBooleanIs ware­house active
content.ramp.warehouse.is_lockedFalseBooleanIs ware­house blocked
content.ramp.warehouse.nameMag­a­zyn testowyStringWare­house name
content.ramp.warehouse.time_zoneObjectWare­house time­zone
content.ramp.warehouse.time_zone.idEurope/WarsawStringTime­zone id
content.ramp.warehouse.time_zone.offset“+01:00”StringTime­zone off­set
content.ramp.warehouse.time_zone.offset_minutes60IntTime­zone off­set in min­utes
content.reference_numberDS/CD251D9/1StringAnnounce­ment ref­er­ence num­ber
content.remarksnullStringRemarks
content.routeObjectRoute infor­ma­tiom
content.route.loading_placeObjectLoad­ing place infor­ma­tion
content.route.loading_place.countryPLStringLoad­ing place coun­try using ISO val­ues
content.route.loading_place.localityWarsza­waStringLoad­ing place local­i­ty
content.route.loading_place.nameMag­a­zyn testowyStringLoad­ing place name
content.route.loading_place.number19aStringLoad­ing place num­ber
content.route.loading_place.postal_code02–517StringLoad­ing place postal code
content.route.loading_place.streetRakowiec­kaStringLoad­ing place street
content.route.unloading_placeObjectUnload­ing place infor­ma­tion
content.route.unloading_place.countryPLStringUnload­ing place coun­try using ISO val­ues
content.route.unloading_place.localityWrocławStringUnload­ing place local­i­ty
content.route.unloading_place.nameRozładunekStringUnload­ing place name
content.route.unloading_place.numbernullStringUnload­ing place num­ber
content.route.unloading_place.postal_code50–001StringUnload­ing place postal code
content.route.unloading_place.streetnullStringUnload­ing place street
content.shipperObjectShip­per infor­ma­tion
content.shipper.id2222222IntShip­per iden­ti­fi­ca­tion num­ber
content.shipper.legal_nameKon­to testowe ship­perStringShip­per com­pa­ny name
content.stagenullStringAnnounce­ment stage. Can be one from the fol­low­ing: INITIAL, CONFIRMED, VEHICLE_ARRIVED, LOADING_STARTED, UNLOADING_STARTED, LOADING_FINISHED, UNLOADING_FINISHED, VEHICLE_LEFT, NOT_LOADED, NOT_UNLOADED, LOADING_REFUSED, UNLOADING_REFUSED, NO_VEHICLE
content.statusCONFIRMEDStringAnnounce­ment sta­tus. Can be one from the fol­low­ing: INITIAL, CONFIRMED, IN_PROGRESS, FINISHED, DELETED
content.templateObjectInfor­ma­tion about announce­ment tem­plate
content.template.id1IntTem­plate id
content.template.nameBASICStringTem­plate name
content.time_windowObjectTime win­dow infor­ma­tion
content.time_window.external_number123xyzStringTime win­dow exter­nal num­ber
content.time_window.id16611IntTime win­dow id
content.time_window.reference_numberDS/CD251D9StringTime win­dow ref­er­ence num­ber
content.vehicleObjectVehi­cle infor­ma­tion
content.vehicle.trailer_plate_number1234xyzStringTrail­er plate num­ber
content.vehicle.truck_plate_number123xyzStringTruck plate num­ber
content.templatesArray of objectsInfor­ma­tion about avail­able tem­plates
content.templates.id19IntTem­plate id
content.templates.parametersArray of objectsTem­plate para­me­ters
content.templates.parameters.default_valuenullStringCan be null or one of the fol­low­ing for doc­u­ments: IDENTITY_CARD, PASSPORT, DRIVING_LICENSE, RESIDENCE_CARD, OTHER
content.templates.parameters.groupDRIVERStringCan be one from the fol­low­ing: DRIVER, VEHICLE, OTHER
content.templates.parameters.is_mandatoryTrueBooleanIs para­me­ter manda­to­ry
content.templates.parameters.nameDRIVER_NAMEStringPara­me­ter name.
For dri­ver group:
DRIVER_NAME,
DRIVER_PHONE_NUMBER,
DRIVER_COUNTRY,
DRIVER_LANGUAGE,
DRIVER_DOCUMENT_TYPE_AND_NUMBER,
DRIVER_DOCUMENT_ISSUING_AUTHORITY,
DRIVER_OTHER_DOCUMENT_TYPE_AND_NUMBER,
DRIVER_OTHER_DOCUMENT_ISSUING_AUTHORITY
For vehi­cle group:
TRUCK_PLATE_NUMBER,
TRAILER_PLATE_NUMBER,
VEHICLE_MANUFACTURER,
COMBUSTION_NORM
For oth­er group:
REMARKS