Merchants have the ability to add unique App operating hours that differ from the standard operating hours of a venue. This can be useful if the venue only wishes to use the app on certain days at certain time intervals.
When calling
GET/locations/{hashedLocationId}
where there is a venue with Doshii advanced policies, the advanced hours will be noted with the appId of the respective app.The flag
"standard": false
will signify if these hours differ from the standard operating hours of the venue.NOTES
- There can be multiple advanced policies for an App.
-
- For example if the app would like to operate Monday's 10am-10pm, and Wednesday to Friday 11am-10pm, these would be seperate advanced policies in the response payload. (see example below)
-
- Advanced policies should fit within the timeframe of the venues standard policy.
-
- If a venue's standard policy is 10am-10pm, an app should not have a standard policy that extends beyond this.
-
- The advanced policy is setup in Doshii Dashboard, either at the request of or by the merchant
-
- Please see our article for venues on how this can be set up: How to setup Advanced Policies
-
Example
{
"time": {
"to": "13:30",
"from": "11:00"
},
"appId": 123, <--- ID of your app
"status": "open",
"standard": false,
"daysOfWeek": [
"tue",
"sat",
"sun"
]
}
Entire Response Example
See our Swagger Docs for more information: GET/locations/{hashedLocationId}
{
"id": {hashedLocationId},
"name": "TestCafe",
"vendor": "TestPos",
"addressLine1": null,
"addressLine2": null,
"city": null,
"state": null,
"country": null,
"postalCode": null,
"latitude": "0",
"longitude": "0",
"phoneNumber": null,
"operatingHours": [
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"mon"
]
},
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"tue"
]
},
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"wed"
]
},
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"thu"
]
},
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"fri"
]
},
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"sat"
]
},
{
"time": {
"to": "23:59",
"from": "10:00"
},
"status": "open",
"standard": true,
"daysOfWeek": [
"sun"
]
},
{
"time": {
"to": "23:00",
"from": "11:00"
},
"appId": 123,
"status": "open",
"standard": false,
"daysOfWeek": [
"mon",
"wed",
"thu",
"fri"
]
},
{
"time": {
"to": "13:30",
"from": "11:00"
},
"appId": 123,
"status": "open",
"standard": false,
"daysOfWeek": [
"tue",
"sat",
"sun"
]
}
],
"capability": {
"menuSync": "supported",
"healthCheck": "supported",
"orderPreProcess": "unsupported",
"autoCompleteCheckin": "unsupported"
},
"classification": "Café",
"organisationId": "nA8g6bOR",
"updatedAt": "2023-09-08T00:01:05.945Z",
"createdAt": "2022-10-25T00:24:56.408Z",
"uri": "https://sandbox.doshii.co/partner/v3/locations/4k30zPDg"
}
Testing your advanced policies in Doshii Sandbox
- Navigate to your test venue and click 'Operating Hours'.
2. Click the icon to the right where it says 'Advanced Policies for {yourApp}'.
3. Once you're done, be sure to save your new policy with the button.
4. Finally, click at the bottom of the page to finalise your changes.
Comments
0 comments
Please sign in to leave a comment.