🗓️Active Days (API)
Intro to Active Days
When historical demand data is sent to Paqtana via the API, Paqtana distinguishes between two types of data for a date-item:
If a value is 0 or greater than 0, it is considered a business day for the organization. This is taken into account when calculating averages.
If no value is sent for a date-item, or if the sent value is null, Paqtana assumes that there was no opening on that day, meaning it was not an active day (i.e. business day).
To avoid the need to send data for active days where the demand value is equal to 0, Paqtana allows configuring which days are active days in an organization. This way, if the API doesn't receive data for an active day, it will assume a value of 0, and if it wasn't a active day, it will assume a null in the final calculation.
Setup via API
To configure this option, the API client must send their desired configuration to the endpoint:
The existing configuration can be retrieved with a GET request to the same endpoint. The JSON structure to be sent for the configuration and more details can be found in: Active Days - Rest API.
Additional Notes
If data is sent for a day of the week that was configured as an inactive day, Paqtana will still include this value in its calculations, meaning for that particular date, it will be considered an active day.
Last updated