POS actions
Send action to specific branch
Last updated
Send action to specific branch
Last updated
Send action directly to a branch device and response will send to webhook. Branch device must be turned on.
Response header Response-url contains webhook URL from request body. If you don't sent webhook in request or webhook is null, response body contains response from default webhook URL.
If the default URL is used and the target device doesn't process the request within 21 seconds, a response 404 Not Found is returned.
The number of requests when using the default webhook URL is limited to one request running at same time for the same combination of userId, clientId, cloudId, branchId.
When the limit is exceeded response code 429 - Too Many Requests
is returned.
Note that integers in responses from POS Actions are NOT sent as strings.
Response status code is primary OK 200. For correct status use code
properties in webhook response.
Represent the result of processing. There are NOT the response codes.
All request shares some basic parameters listed below. For better readability are those parameters are not shown in all methods.
action
string
Name of action
webhook
string?
Webhook URL for action response
validity
long?
Validity of request in Unix timestamp. If the time on cash register is greater than this value, the request will not be performed with response code 1007
idempotency-key
string? (Since Dotypos 2.1)
Optional identification of a webhook call. It provides way for you to identify retried (same) webhook calls. When webhook
parameter is filled, Dotypos will call the given URL with the Idempotency-Key
header containing this value. If you do not specify idempotency-key
, it will be automatically generated and sent.
Returns basic POS metadata can be used for POS liveness checks, timezone configuration, or time shift.
customer-id
long?
The value corresponds to _customerId
discount-percent
double? (1.238.12+)
Value of discount in percent value: 20 = 20%
table-id
long?
The value corresponds to _tableId
user-id
long?
The value corresponds to _employeeId
note
string?
Personal note to order
external-id
string?
External id of the order
items
item[]
List of items to be added to new order
lock
boolean? (1.234+)
If set to true the order will be locked for 45 s for external changes
customer-id
long?
The value corresponds to _customerId
discount-percent
double?
Value of discount in percent value: 20 = 20%
note
string?
Personal note to order
order-id
long
Order ID for action. The value corresponds to _orderId
lock
boolean? (1.234+)
If se to true the order will be locked for 45 s for external changes
items
item[]
List of items to be added
order-id
long
Order ID for action. The value corresponds to _orderId
lock
boolean? (1.234+)
If set to true the order will be locked for 45 s for external changes
id
long
Corresponds to _productId
qty
double
Item / product quantity
note
string?
Note for item / product
discount-percent
double?
Value of discount in percent value: 20 = 20%
manual-price
double?
Product price
manual-points
double?
Points
tags
string[]?
Note for item
course-id
long?
Id of a course.
Since Dotypos 1.237
customizations
customization[]?
Add product with customization
Dotypos 1.234+ required
Dotypos 1.234+ required
product-customization-id
long
Corresponds to _productCustomizationId
product-id
long
Corresponds to _productId
manual-price
double?
Customization item price override (default behavior if null or empty)
Since Dotypos 2.9
take-away
boolean?
Whether to sell this item as takeaway.
Since Dotypos 1.237.
order-id
long
Order ID of order to split. The value corresponds to _orderId
customer-id
long?
The value corresponds to _customerId
table-id
long?
The value corresponds to _tableId
note
string?
Personal note to order
split-items
boolean?
List of items to be moved to new order (id
should correspond items[].id
from Response schema.
lock
boolean?
If set to true the newly created order will be locked for 45 s for external changes
Not allowed in following countries: Slovakia.
We allow you to invoke optional notifications displayed for staff on the POS for issued orders via POS Action. If you want to use this feature, contact us. We will enable functionality for your API application.
Since Dotypos 1.241
order-id
long
Order ID for action. The value corresponds to _orderId
print-config
pringConfig[]?
Print configuration for print type
print-email
string?
Email for print type
print-type
string?
Print type (mode)
take-away
boolean?
Whether to issue this order as takeaway.
Since Dotypos 1.237.
Not allowed in following countries: Slovakia.
order-id
long
Order ID for action. The value corresponds to _orderId
payment-method-id
long
Payment method ID
Not allowed in following countries: Slovakia.
We allow you to invoke optional notifications displayed for staff on the POS for issued orders via POS Action. If you want to use this feature, contact us. We will enable functionality for your API application.
Since Dotypos 1.241
customer-id
long?
The value corresponds to _customerId
discount-percent
double? (1.238.12+)
Value of discount in percent value: 20 = 20%
table-id
long?
The value corresponds to _tableId
user-id
long?
The value corresponds to _employeeId
note
string?
Personal note to order
external-id
string?
External id of the order
items
item[]
List of items to be added to new order
payment-method-id
long
Payment method ID
take-away
boolean?
Whether to issue this order as takeaway.
Since Dotypos 1.237.
We allow you to invoke optional notifications displayed for staff on the POS for issued orders via POS Action. If you want to use this feature, contact us. We will enable functionality for your API application.
Since Dotypos 1.241
customer-id
long?
The value corresponds to _customerId
discount-percent
double? (1.238.12+)
Value of discount in percent value: 20 = 20%
table-id
long?
The value corresponds to _tableId
user-id
long?
The value corresponds to _employeeId
note
string?
Personal note to order
external-id
string?
External id of the order
items
item[]
List of items to be added to new order
payment-method-id
long
Payment method ID
print-append
string?
Text to be appended to printout
print-config
pringConfig[]?
Print configuration for print type
print-email
string?
Email for print type
print-type
string?
Print type (mode)
take-away
boolean?
Whether to issue this order as takeaway.
Since Dotypos 1.237.
Not allowed in following countries: Slovakia.
We allow you to invoke optional notifications displayed for staff on the POS for issued orders via POS Action. If you want to use this feature, contact us. We will enable functionality for your API application.
Since Dotypos 1.241
order-id
long
Order ID of order to split. The value corresponds to _orderId
customer-id
long?
The value corresponds to _customerId
table-id
long?
The value corresponds to _tableId
note
string?
Personal note to order
split-items
boolean?
List of items to be moved to new order (id
should correspond items[].id
from Response schema.
print-config
pringConfig[]?
Print configuration for print type
print-email
string?
Email for print type
print-type
string?
Print type (mode)
lock
boolean?
If set to true the original order will be locked for 45 s for external changes
take-away
boolean?
Whether to issue this order as takeaway.
Since Dotypos 1.237.
We allow you to invoke optional notifications displayed for staff on the POS for issued orders via POS Action. If you want to use this feature, contact us. We will enable functionality for your API application.
Since Dotypos 1.241
order-id
long
Order ID of order to split. The value corresponds to _orderId
customer-id
long?
The value corresponds to _customerId
table-id
long?
The value corresponds to _tableId
note
string?
Personal note to order
split-items
boolean?
List of items to be moved to new order (id
should correspond items[].id
from Response schema.
print-config
pringConfig[]?
Print configuration for print type
print-email
string?
Email for print type
print-type
string?
Print type (mode)
payment-method-id
long
Payment method ID
lock
boolean?
If set to true the original order will be locked for 45 s for external changes
take-away
boolean?
Whether to issue this order as takeaway.
Since Dotypos 1.237.
We allow you to invoke optional notifications displayed for staff on the POS for issued orders via POS Action. If you want to use this feature, contact us. We will enable functionality for your API application.
Since Dotypos 1.241
order-id
long
Order ID for action. The value corresponds to _orderId
payment-method-id
long
Payment method ID
print-append
string?
Text to be appended to printout
print-config
pringConfig[]?
Print configuration for print type
print-email
string?
Email for print type
print-type
string?
Print type (mode)
take-away
boolean?
Whether to issue this order as takeaway.
Since Dotypos 1.237.
order-id
long
Order ID for action. The value corresponds to _orderId. Order must be empty - it can't have any items.
This endpoint is in active development phase. List of available transitions and their limitations could be changed in any further release of Dotypos App.
order-id
long
Order ID for action. The value corresponds to _orderId
status-transition
string
Transition to be performed. Check Order Status page for list of supported transitions.
Returns list of data in Multiple orders response format
table-id
long?
Table ID, list all orders if not presented, null
for orders outside table
If there are multiple course changes for the same item, only the last is applied.
order-id
long
ID of the order.
course-changes
CourseChange[]
List of course changes for items in the given order.
order-item-id
long
ID of an order item.
new-course-id
long?
ID of a new course for the given item within an order.
Response field next-course-id
describes the next available response for this order.
order-id
long
ID of an order.
Usable only in case of failed fiscal print - in case BLOCKED_BY_FAILED
print error on order issue or in case of pass-through error 100,007
If there are multiple takeaway changes for the same order item, only the last one will be applied.
order-id
long
ID of an order.
take-away-changes
TakeawayChange[]
List of takeaway changes.
order-item-id
long
ID of and order item.
take-away
boolean
Whether this item should be set as takeaway.
characters
integer?
Width of print in characters
codepage
byte?
print-mini
boolean?
Print in mini mode or standart
print-logo
boolean?
1.243+
Print logo on receipt (if the logo is configured for any receipt print task in the register)
cut
boolean?
Is cut supported
append-lines
integer?
Number of lines appended to print
font
integer(0,1)?
Font type
An error that occured during Order processing but didn't cause the processing to fail. Might be interpreted as a warning to the user.
code
integer
Error code.
description
string
General description of a pass-through error in English.
localized-description
string
Localized description of a pass-through error in language specified in the request. If no language is specified in the request, defaults to POS' language.
print
[string]
Contains the base64 representation of receipt.
1.243+ If the register has configured multiple receipt print tasks, there will be added print content for each of them. All configured filters and print configurations for the task will be applied. Fiscalized receipt content is added only if it is available, otherwise print won't be added and pass-through-errors
will contain error 100006
.
print-png
string?
1.242+, SK
Contains the base64 representation of a receipt returned by the fiscal module when print-type
: "remote"
or when print-type
: "email"
and email sending fails.
pass-through-errors
[PassThroughError]
1.242+
List of pass-through errors encountered.
POST
https://api.dotykacka.cz/v2/clouds/:cloudId/branches/:branchId/pos-actions
ResultCode | Name | Description |
---|---|---|
code | description |
---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|