When submitting to the Doshii API, the POS needs to provide both their vendor key and a timestamp, so we can verify the request is valid based on if it has been submitted not older than 1 minute ago, and not more than 10 minutes in the future.
(!payload.timestamp ||
payload.timestamp > DATE_10_MINS_AGO_IN_SECS ||
payload.timestamp < DATE_BEFORE_1_MINS_IN_SECS)
The error thrown will be:
Expired token provided in the Authorization request header.
See the Doshii support guide for more information regarding POS Authorisation
To verify the issue, check the log of the POS API, and find the relevant error message.
Compare the payload timestamp, with the DATE_BEFORE_1_MINS_IN_SECS and the DATE_10_MINS_AGO_IN_SECS, as per the logic above. Use https://www.epochconverter.com/ if needed.