Introduction
Some GoGreen and Food Purchase interfaces support advanced Data offset validation logic for Hourly and Daily imports.
Unlike standard Data offset validation, where PMI checks for data on a single expected day, these interfaces validate data across a configured date range. PMI only requires data to exist for at least one day within the configured range for the interface to be considered successfully updated.
This logic helps support integrations where data may not be received every day, while still ensuring PMI can identify interfaces with missing or outdated operational data.
Availability
This validation logic only applies to:
-
- Hourly interfaces
-
- Daily interfaces
It does not apply to Monthly interfaces.
Supported interface types
30-day range validation
The following interface types use a 30-day validation range:
-
- GoGreen_GreenSleep
-
- GuestFeedbackScore
-
- GuestFeedbackCount
-
- GoGreen_Waste
-
- GoGreen_Chemical
If PMI finds data for at least one day within the configured 30-day range, the interface status is displayed as Updated in PMI.
If no data is found within the range, the interface status is displayed as Not updated in PMI due to missing data.
7-day range validation
The following interface types use a 7-day validation range:
-
- FoodPurchase
-
- GoGreen_Linen
If PMI finds data for at least one day within the configured 7-day range, the interface status is displayed as Updated in PMI.
If no data is found within the range, the interface status is displayed as Not updated in PMI due to missing data.
How the range is calculated
The Data offset defines the last date in the validation range.
PMI then calculates the configured range backwards from that date.
Example: GoGreen_Linen interface
Configuration:
-
- Interface type: GoGreen_Linen
-
- Validation range: 7 days
-
- Data offset: -30
Scenario:
-
- Today is 9 June
-
- Data offset -30 means PMI expects the last day of the range to be 10 May
Because GoGreen_Linen uses a 7-day range, PMI checks for data between:
-
- 4 May
-
- 10 May
If PMI finds data for at least one day within this period, the interface status is displayed as Updated in PMI.
If no data exists within this range, the interface status is displayed as Not updated in PMI.
Operational impact
This validation logic helps reduce false warnings for interfaces where data may:
-
- arrive irregularly
-
- only be updated periodically
-
- not contain data for every calendar day
Instead of validating a single expected day, PMI validates whether sufficient operational data exists within the configured historical range.
Related articles
-
- Understanding Import status settings
-
- Import status overview
-
- How to read the Import status home page
List of interfaces with relevant Interface types:
Key tags
-
- Import status
-
- Data offset
-
- GoGreen interfaces
-
- Food Purchase
-
- Interface validation
-
- Advanced validation
-
- Data imports
-
- Explainer article