Calculate Delivery SLA Status

This action calculates the maximum estimated delivery date based on an order date and the number of maximum delivery days. It also returns the delivery SLA status, which indicates whether the order is on track or delayed.

Inputs

NameTypeDescription
Order DatestringThe date the order was placed (format: YYYY-MM-DD).
Max Estimated Delivery DaysnumberThe maximum number of estimated delivery days from the order date.
Count Business Days?booleanIf true, only business days (Mon–Fri) are counted when calculating delivery date.
Timezone (optional)stringThe timezone to use for date calculations. Defaults to UTC.
Holidays (optional)array of stringsAn array of custom holiday dates (format: ['YYYY-MM-DD']). These dates will be excluded from business day calculations

Outputs

NameTypeDescription
Maximum Estimated Delivery DatestringThe calculated maximum estimated delivery date based on the order date and the maximum delivery days.
Delivery SLA StatusstringThe status of the delivery based on the calculated maximum estimated delivery date. Can be On Track or Delayed.