calculate delivery date
This block is part of the shipping group and was last modified in core v13.0.9.
calculate delivery date v13.0.9 This block is used to calculate the delivery date of a shipment.
- flow
flow - Connection required
postnlconnectionThe PostNL connection.
- Receiver Address required
objectThe address of the receiver of this shipment. Object should contain the following fields: city, country_code (ISO2), house_number, street, zip_code, house_number_ext.
- Preparing Date required
dateThe preparing date for the shipment (date when preparing the shipment for sending).
- Preparing Duration (days) required
numberThe number of days it takes to send the shipment to PostNL. 1: same day, 2: next day, etc.
- Default Cuttoff Time required
valueThis is the defaultdeadline for placing an order to ensure that the shipment is processed and handed over to PostNL on the same day. Format: HH:MM. Can be overriden for each day by the Cutoff extra options field.
- Sender Country Code
valueThe ISO2 country code of the sender of this shipment.
- Cutoff extra options
arrayArray containing extra options for cutoff. For each day that has other cutoff settings make a object in the array with the day field (e.g. sunday). The object should also contain the following fields: cutoff_time (value HH:MM) and is_available (condition that indicates if you ship on that date).
- flow
flow - Connection
postnlconnectionThe PostNL connection
- Success
conditionIf successful, return true.
- Calculated delivery date
dateThe by PostNL calculated delivery date for this shipment.
- Error
valueError message if the delivery date could not be calculated.
A typical wiring for calculate delivery date: a function trigger starts the flow; open connection feeds the connection pin; new object feeds the receiver_address pin; date now feeds the preparing_date pin; number feeds the preparing_duration_days pin; value feeds the magazine_cuttoff_time pin; the flow out pin feeds debug.

Version history
Introduced in v13.0.9.
Back to
shipping Return to the main group to view all sub-groups Back to PostNL Return to the group to view all blocks within this group
