- Help for Partners
- WebSocket - POS partners
-
API concepts
-
Members
-
Model
-
FAQ - Developers
-
Resources
-
Orders
-
Rewards
-
Check-ins
-
Getting started - App partners
-
Employees
-
Getting started - Doshii Dashboard
-
Quick start for developers
-
Onboarding
-
Location
-
All App Partners Event
-
Menus
-
Announcements
-
Loyalty / Checkins
-
WebSocket - App partners
-
All POS vendor events
-
Loyalty / Gift Cards
-
Devices
-
Tables
-
Workflows
-
FAQ - Doshii Dashboard
-
Bookings
-
Transactions
-
Webhooks
-
App Partner Guide
-
Authentication
-
Getting started - POS vendors
-
Ordering
-
Reservations
-
Pilot
-
Bulk data
-
Playbooks
-
Rejection codes
-
Getting started
-
WebSocket - POS partners
-
Events - App partners
-
Service channels
-
Events
-
Concepts
-
Apps
Connection
First up you'll need to establish a connection to the Doshii WebSocket. Please check out this more detailed WebSocket guide
URL wss://socket.<environment>.doshii.co/pos/socket?token=<locationToken>
If you're a Cloud POS Vendor then your connection is slightly different as you no longer need to connect for each location.
URL wss://socket.<environment>.doshii.co/vendor/socket?token=<jwt>&vendor=<apiName>
The JWT token is built using the same technique described in POS Authentication with the only difference being the Vendor API Name is included rather than the location token.
"vendor": The POS Vendor API name
"timestamp": The current timestamp in EPOC-Seconds for validating the request expiry time, default is 10 minutes.
Parameters
Example
Event
{ "type": "message", "data": { "doshii": { "pong": 1539144663417, "version": '3.2.123' } } }