Solink tags video to restaurant transactions based on a unique place and time pairing. Time is absolute and must adhere to the convention defined here.
Required Object Fields
Field | Type | Description |
---|---|---|
dataType | String | Must be set to "restaurant" to specify which data type the current event is. |
schemaVersion | String | Must be set to "1" to specify which version of the schema is being used for this event (e.g. "1", "2", etc). |
startTime | Number | String | Start time of the transaction in either Unix time format milliseconds or ISO-8601 compliant format. |
endTime | Number | String | End time of the transaction in either Unix time format milliseconds or ISO-8601 compliant format. |
locationId | String | Unique location identifier within the customer's set of locations. |
dataSourceId | String | A unique identifier representing the source of the transaction data, such as a point-of-sale (POS) register, table-side device, or kiosk within the restaurant. This ID is used to identify the specific device or location where the transaction originated, which is useful for tracking orders and payments throughout the restaurant. |
transactionId | String | Unique id which identifies the transaction in the originating POS software. |
status | String | Describes the type of transaction. For example: "SALE" or "VOID". |
tableNumber | String | Identifies the table at which the order was taken. |
guestCount | Number | States the number of guests served by this transaction. |
items | Array | The list of items, actions or events processed in the transaction. |
Optional Object Fields
Field | Type | Description |
---|---|---|
employeeId | String | Unique employee id to identify the employee processing the transaction. |
employeeName | String | The name of the employee processing the transaction. |
customerId | String | The unique id to identify the customer being served. |
Required Item Object Fields
Field | Type | Description |
---|---|---|
| Number | String | Start time of the transaction in either Unix time format milliseconds or ISO-8601 compliant format. |
| Number | Quantity of the item. |
| String | Description of the item. |
| Number | Per unit price of the item. |
| String | May be one of the following allowed values: |
Optional Item Object Fields
Field | Type | Description |
---|---|---|
cardNumberLast4 | String | For credit/debit/gift card payment/refund/void. Last four digits of the card number. |
sku | String | SKU or other unique item identifier. |
JSON Example
{
"dataType": "restaurant",
"schemaVersion": "1",
"startTime": 1557943653649,
"endTime": 1557943678649,
"locationId": "123",
"dataSourceId": "1",
"transactionId": "93688",
"employeeId": "27",
"employeeName": "MICHELLE",
"status": "SALE",
"customerId": "",
"tableNumber": "12",
"guestCount": 1,
"items": [
{
"type": "sale",
"quantity": 1.0,
"description": "Burger",
"unitPrice": 22.0,
"time": 1555898203000
},
{
"type": "modifier",
"quantity": 1.0,
"description": "No onions",
"unitPrice": 0,
"time": 1555898203000
},
{
"type": "tax",
"quantity": 1.0,
"description": "PST",
"unitPrice": 2.0,
"time": 1557943678649
},
{
"type": "gratuity",
"quantity": 1.0,
"description": "Tip",
"unitPrice": 5.0,
"time": 1557943678649
},
{
"type": "payment",
"quantity": 1.0,
"description": "Credit",
"unitPrice": 20.0,
"cardNumberLast4": "1234",
"time": 1557943678649
},
{
"type": "payment",
"quantity": 1.0,
"description": "Cash",
"unitPrice": 10.0,
"time": 1557943678649
},
{
"type": "change due",
"quantity": 1.0,
"description": "Change",
"unitPrice": 1.0,
"time": 1557943678649
}
]
}