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.

In pins 7 + flow
  • flow
  • Connection postnlconnection required

    The PostNL connection.

  • Receiver Address object required

    The 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 date required

    The preparing date for the shipment (date when preparing the shipment for sending).

  • Preparing Duration (days) number required

    The number of days it takes to send the shipment to PostNL. 1: same day, 2: next day, etc.

  • Default Cuttoff Time value required

    This 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 value

    The ISO2 country code of the sender of this shipment.

    Default NL

  • Cutoff extra options array

    Array 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).

Out pins 4 + flow
  • flow
  • Connection postnlconnection

    The PostNL connection

  • Success condition

    If successful, return true.

  • Calculated delivery date date

    The by PostNL calculated delivery date for this shipment.

  • Error value

    Error 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.

Studio canvas example for the calculate delivery date block: typical wiring for calculate delivery date.

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