๐Ÿ‘จโ€๐ŸณOrder endpoints

This page provides a description of the available API routes for managing order endpoint devices.

Once the product (PLU) is added to the Ticket, an Order is created. Based on product settings, order is sent to one or multiple order endpoints for processing. The order endpoint serves as a device that handles incoming orders. This endpoint can take the form of either a printer, such as a kitchen printer, which generates printed instructions for the food preparation team, or a tablet that enables personnel to provide feedback to cashiers once the food is being prepared or is ready for pickup.

Order endpoint device is represented by OrderEndpoint class.

API methods

Get order endpoints

GET http://{server-address}/orderendpoints

Returns all order endpoints that matches query parameters. Result is of type QueryResult<OrderEndpoint>.

Query Parameters

NameTypeDescription

name

string

Supports NData syntax.

$skip

int

Pagination property. Describing number of records to skip from beginning of result collection.

$take

int

Pagination property. Maximum count of items to be returned.

$sort

string[]

Comma separated list of property names. Please see NData syntax.

$count

bool

If set to true, response will not contain items collection. Use to get resource count, not the resources themselves.

isActive

bool

Supports NData syntax.

type

string

Supports NData syntax.

address

string

Supports NData syntax.

Headers

NameTypeDescription

Authorization*

string

Authorization header with authorization token.

{
    "items":
    [
        {
            "name": "Kitchen",
            "isActive": false,
            "address": "\\\\computer_name\\Kitchen",
            "type": "SRP350",
            "settings":
            {
                "IsBeepEnabled": "true",
                "HighlightOrderNumber": "true",
                "DoubleHeightFont": "true",
                "DoubleWidthFont": "true"
            },
            "_v": 1
        },
        {
            "name": "Pizza",
            "isActive": false,
            "address": "\\\\computer_name\\Pizza",
            "type": "TM88",
            "settings":
            {},
            "_v": 1
        }
    ],
    "count": 2,
    "totalCount": 2
}

Get order endpoint by name

GET http://{server-address}/orderendpoints/{name}

Result is of type OrderEndpoint.

Path Parameters

NameTypeDescription

name*

string

Unique order endpoint name.

Headers

NameTypeDescription

Authorization*

string

Authorization header with authorization token.

{
    "name": "Kitchen",
    "isActive": false,
    "address": "\\\\computer_name\\Kitchen",
    "type": "SRP350",
    "settings":
    {
        "IsBeepEnabled": "true",
        "HighlightOrderNumber": "true",
        "DoubleHeightFont": "true",
        "DoubleWidthFont": "true"
    },
    "_v": 1
}

Create order endpoint

POST http://{server-address}/orderendpoints

Creates new order endpoint. Result is of type OrderEndpoint.

Required rights

Authorized user must have OrderEndpointCreate right assigned.

Headers

NameTypeDescription

Authorization*

string

Authorization header with authorization token.

Request Body

NameTypeDescription

(body)*

OrderEndpoint

Model to create.

{
    "name": "Kitchen",
    "isActive": false,
    "address": "\\\\computer_name\\Kitchen",
    "type": "SRP350",
    "settings":
    {
        "IsBeepEnabled": "true",
        "HighlightOrderNumber": "true",
        "DoubleHeightFont": "true",
        "DoubleWidthFont": "true"
    },
    "_v": 1
}

Create or update order endpoint

PUT http://{server-address}/orderendpoints/{name}

Creates new or updates existing order endpoint. Result is of type OrderEndpoint.

Required rights

Authorized user must have assigned OrderEndpointCreate or OrderEndpointUpdate right.

Path Parameters

NameTypeDescription

name*

string

Unique order endpoint name.

Headers

NameTypeDescription

Authorization*

string

Authorization header with authorization token.

Request Body

NameTypeDescription

(body)*

OrderEndpoint

Model to create or update.

{
    "name": "Kitchen",
    "isActive": false,
    "address": "\\\\computer_name\\Kitchen",
    "type": "SRP350",
    "settings":
    {
        "IsBeepEnabled": "true",
        "HighlightOrderNumber": "true",
        "DoubleHeightFont": "true",
        "DoubleWidthFont": "true"
    },
    "_v": 2
}

Delete order endpoint by name

DELETE http://{server-address}/orderendpoints/{name}

Required rights

Authorized user must have OrderEndpointDelete right assigned.

Path Parameters

NameTypeDescription

name*

string

Unique order endpoint name.

Headers

NameTypeDescription

Authorization*

string

Authorization header with authorization token.

{
    "name": "Kitchen",
    "isActive": false,
    "address": "\\\\computer_name\\Kitchen",
    "type": "SRP350",
    "settings":
    {
        "IsBeepEnabled": "true",
        "HighlightOrderNumber": "true",
        "DoubleHeightFont": "true",
        "DoubleWidthFont": "true"
    },
    "_v": 1
}

Last updated