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
Name | Type | Description |
---|---|---|
Order Date | string | The date the order was placed (format: YYYY-MM-DD). |
Max Estimated Delivery Days | number | The maximum number of estimated delivery days from the order date. |
Count Business Days? | boolean | If true, only business days (Mon–Fri) are counted when calculating delivery date. |
Timezone (optional) | string | The timezone to use for date calculations. Defaults to UTC. |
Holidays (optional) | array of strings | An array of custom holiday dates (format: ['YYYY-MM-DD']). These dates will be excluded from business day calculations |
Outputs
Name | Type | Description |
---|---|---|
Maximum Estimated Delivery Date | string | The calculated maximum estimated delivery date based on the order date and the maximum delivery days. |
Delivery SLA Status | string | The status of the delivery based on the calculated maximum estimated delivery date. Can be On Track or Delayed. |
Updated 6 days ago