POS API
For access, paging, filters and getting only changes, see API basics.
Consumer (Table) Search Endpoint
Endpoint URL
https://{domain}.smarton.app/api/order_consumer/search
Method
GET
Description
This endpoint retrieves a list of consumer orders, providing details about each order such as status, position, and metadata related to the area and size of the order entity.
Request Parameters
No URL parameters are required for this endpoint. The request should be authorized with appropriate headers as needed.
Response
The response is a JSON array where each object represents an consumers with various properties and metadata.
Response Structure
Each item in the response array contains the following fields:
- visible (
boolean): Indicates if the consumer is visible. - id (
integer): A unique identifier for the consumer. - name (
string): The name of the consumer. - alias (
stringornull): An optional alias for the consumer. - numberOfPlaces (
integerornull): The number of places associated with the consumer, if applicable. - guestNumberEnter (
boolean): Specifies whether the number of guests can be entered for the consumer. - status (
string): The current status of the order, e.g., 'occupied', 'open'. - color (
stringornull): The color associated with the consumer, if any. - position (
integer): The position or index of the consumer. - namespace (
string): A namespace identifier to categorize the domains. - metadata (
object): Contains additional data about the consumer:- area (
string): The area of the consumer. - size (
string): Size description of the consumer. - type (
string): Type of the order entity, e.g., 'round', 'rect'. - position (
arrayofstrings): Coordinates representing the position of the consumer entity.
- area (
Example Response
json
[
{
"visible": true,
"id": 1288,
"name": "1",
"alias": null,
"numberOfPlaces": null,
"guestNumberEnter": true,
"status": "occupied",
"color": null,
"position": 1,
"namespace": "kasa",
"metadata": {
"area": "5",
"size": "50",
"type": "round",
"position": [
"71.66666666666666",
"281.6666666666667"
]
}
},
...
]
Status Codes
- 200 OK: The request was successful and the response body contains the list of orders.
- 401 Unauthorized: Authentication credentials were missing or incorrect.
- 404 Not Found: The specified endpoint was not found.
- 500 Internal Server Error: An unexpected error occurred on the server.
Order Search Endpoint
Endpoint URL
https://{domain}.smarton.app/api/order/search
Method
GET
Description
This endpoint retrieves a list of orders based on specified filters such as order creation time, consumer details, and associated products. It allows for extensive joining and partial selection of related data to cater to detailed and specific queries.
Request Parameters
- sort[createdAt]: Order of items based on their creation timestamp (e.g.,
ascfor ascending). - consumer.id: Filter orders by the specific consumer's ID.
- join[]: Specify related entities to include fully in the response (e.g.,
consumer,products). - partialJoin[customer][]: Specify specific fields of the
customerentity to include (e.g.,name,creditAmount). - partialJoin[products.product][]: Specify fields of the
products.productentity to include (e.g.,name,vat.name). - partialJoin[products.product.article.vat][]: More granular filters and joins, detailing down to specific attributes of nested objects.
- translate: Specify if translations should be applied to the response data.
- status: Filter orders by their status (e.g.,
confirmed_by_customer).
Example Curl Request
curl --location 'https://{domain}.smarton.app/api/order/search?sort%5BcreatedAt%5D=asc&consumer.id=1294&join%5B%5D=consumer&join%5B%5D=products&partialJoin%5Bcustomer%5D%5B%5D=name&partialJoin%5Bcustomer%5D%5B%5D=creditAmount&partialJoin%5Bcustomer%5D%5B%5D=remnantCredit&partialJoin%5Bmanager%5D%5B%5D=name&partialJoin%5Bproducts.product%5D%5B%5D=name&partialJoin%5Bproducts.product.parentProduct%5D%5B%5D=name&partialJoin%5Bproducts.product.article%5D%5B%5D=name&partialJoin%5Bproducts.product.vat%5D%5B%5D=name&partialJoin%5Bproducts.product.vat%5D%5B%5D=percentage&partialJoin%5Bproducts.product.vat%5D%5B%5D=discountApplies&partialJoin%5Bproducts.product.article.vat%5D%5B%5D=name&partialJoin%5Bproducts.product.article.vat%5D%5B%5D=percentage&partialJoin%5Bproducts.product.article.vat%5D%5B%5D=discountApplies&partialJoin%5Bproducts.product.article.categories%5D%5B%5D=id&partialJoin%5Bproducts.product.article.categories%5D%5B%5D=name&partialJoin%5Bproducts.product.parameters%5D%5B%5D=value&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=name&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=type&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=required&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=value&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=deleted&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=filter&partialJoin%5Bproducts.product.parameters.parameter%5D%5B%5D=position&partialJoin%5Bproducts.product.parameters.parameter.dropDownOptions%5D%5B%5D=name&products.product.parameters.deleted=false&translate=true&status=confirmed_by_customer%7Cconfirmed_by_manager%7Cconfirmed_by_technologist%7Ccreated%7Cstarted%7Creserved%7Cprepared' \
--header 'accept: application/json, text/plain, */*' \
--header 'authorization: <Your Authorization Token>' \
--header 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
--header 'cookie: session=<Your Session ID>; authorization=<Your Authorization Token>' \
--header 'referer: https://kasa.smarton.app/pos/tables/1294'
Response
The response is a JSON array of objects, each representing an order with detailed attributes about the consumer, products involved, and associated metadata.
Response Structure
Each item in the response array will typically include the following fields:
- id: Unique identifier for the order.
- number: Order number.
- uuid: Universal unique identifier for the order.
- createdAt, updatedAt: Timestamps for the creation and last update of the order.
- consumer: Details about the consumer including visible status, ID, and metadata.
- products: Array of products involved in the order, with detailed attributes like quantity, status, product details (including VAT info, category, parameters).
- customer: Details about the customer, including name and credit information.
- manager: Details about the manager handling the order.
- status: Current status of the order.
Status Codes
- 200 OK: Successfully retrieved the list of orders.
- 400 Bad Request: Invalid request format or parameters.
- 401 Unauthorized: Authentication failed.
- 404 Not Found: The specified resource was not found.
- 500 Internal Server Error: An error occurred on the server.
POS Create Order API
Creates a new order in the POS system for a selected consumer/table.
Endpoint
POST /api/order/pos_createExample host:
https://{domain}.smarton.app/api/order/pos_createRequest
Content-Type
application/x-www-form-urlencoded; charset=UTF-8Headers
Authorization: 4/6/your_token_here
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequestBody Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| integer | Yes | Customer ID used for the order. Usually default customer ID, for example |
| integer | Yes | Consumer/table ID where the order is created. |
| integer | No | Number of visitors/guests. If |
| string | No | Display/order label from the POS UI, for example encoded |
Example Request
curl 'https://kasa.smarton.app/api/order/pos_create' \
-H 'Authorization: 4/6/your_token_here' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-raw 'customer=1&consumer=267&numberOfVisitors=0&number=%231%20-%20%20-%204'Decoded body:
customer=1
consumer=267
numberOfVisitors=0
number=#1 - - 4Response
Returns an array of created/open POS orders.
Example Response
[
{
"id": 1424,
"name": "4",
"number": "1424",
"status": "created",
"numberOfVisitors": 1,
"products": [],
"consumer": {
"id": 267,
"name": "4",
"device": null
},
"customer": {
"id": 1,
"name": "Customer",
"creditAmount": 0,
"remnantCredit": 0
},
"manager": {
"id": 4,
"name": "Proman Administrator"
},
"customerDiscountPercent": 0,
"customerPrice": {
"amount": 0,
"currency": "EUR"
},
"customerPriceWithVat": {
"amount": 0,
"currency": "EUR"
},
"discountSum": {
"amount": 0,
"currency": "EUR"
}
}
]Response Fields
Field | Type | Description |
|---|---|---|
| integer | Created order ID. |
| string | Order/table display name. |
| string | Generated order number. |
| string | Order status. Initial value is usually |
| integer | Number of visitors assigned to the order. |
| array | Products currently added to the order. Empty when order is newly created. |
| object | Table/consumer information. |
| object | Customer assigned to the order. |
| object | POS user/manager who created the order. |
| number | Customer discount percentage. |
| money object | Order total without VAT/customer calculated price. |
| money object | Order total with VAT. |
| money object | Total discount amount. |
Notes
When numberOfVisitors=0 is sent, the created order may still return numberOfVisitors: 1, meaning the backend applies a default minimum visitor count.
The newly created order has no products:
"products": []Add Product to POS Order API
Adds an article/product to an existing POS order.
Endpoint
POST /api/product/pos_create_Example:
https://{domain}.smarton.app/api/product/pos_create_Request
Content-Type
application/x-www-form-urlencoded; charset=UTF-8Required Headers
Authorization: 4/6/your_token_here
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequestBody Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| integer | Yes | Article/product ID to add to the order. |
| number | Yes | Quantity to add. |
| integer | Yes | Existing POS order ID. |
| string | Yes | Product name displayed in the order. |
| integer | No | Item number/index from POS UI. Usually |
| integer | No | Product position. Sending |
| integer/null | No | Parent product ID, used for modifiers or child products. Empty for normal products. |
| number/null | No | Custom product price. Empty means backend uses article/default price. |
Example Request
curl 'https://kasa.smarton.app/api/product/pos_create_' \
-H 'Authorization: 4/6/your_token_here' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-raw 'article=77&quantity=1&order=1424&name=testHatori&itemNumber=0&position=-1&parentProduct=&price='Decoded body:
article=77
quantity=1
order=1424
name=testHatori
itemNumber=0
position=-1
parentProduct=
price=Response
Returns an array of POS orders. The updated order includes the added product inside the products array.
Example Response
[
{
"id": 1424,
"name": "4",
"number": "1424",
"status": "created",
"numberOfVisitors": 1,
"consumer": {
"id": 267,
"name": "4",
"device": null
},
"customer": {
"id": 1,
"name": "Customer",
"creditAmount": 0,
"remnantCredit": 0
},
"manager": {
"id": 4,
"name": "Proman Administrator"
},
"customerDiscountPercent": 0,
"customerPrice": {
"amount": 52.809917,
"currency": "EUR"
},
"customerPriceWithVat": {
"amount": 52.81,
"currency": "EUR"
},
"discountSum": {
"amount": 0,
"currency": "EUR"
},
"products": [
{
"id": 3973,
"name": "testHatori",
"status": "created",
"quantity": 1,
"itemNumber": 0,
"position": 1,
"hideInInvoice": false,
"fixedPrice": false,
"discount": 0,
"customerPrice": {
"amount": 52.809917,
"currency": "EUR"
},
"customerPriceWithVat": {
"amount": 52.809917,
"currency": "EUR"
},
"discountSum": {
"amount": 0,
"currency": "EUR"
},
"product": {
"id": 3937,
"name": "testHatori",
"discount": 0,
"discountAvailable": true,
"article": {
"id": 77,
"name": "testHatori",
"discountApplies": true
},
"vat": {
"name": "",
"percentage": "",
"discountApplies": true
},
"parentProduct": {
"id": null,
"name": null
}
}
}
]
}
]Important Response Fields
Order Fields
Field | Description |
|---|---|
| POS order ID. |
| Current order status. Usually |
| Order total without rounded VAT display. |
| Order total with VAT. |
| List of products currently added to the order. |
Product Fields
Field | Description |
|---|---|
| Order product line ID. Use this ID for editing/removing this product line. |
| Product name shown in the order. |
| Product quantity. |
| Product line status. Usually |
| Position assigned by backend. |
| Original article ID. |
| Product price. |
| Product price with VAT. |
| Applied discount percent or value, depending on backend logic. |
| Product discount amount. |
Notes
When position=-1 is sent, the backend automatically assigns the product position.
When price is empty, the backend uses the product/article price from the POS system.
For normal products, send:
parentProduct=For modifiers or child products, parentProduct should contain the parent order product ID.
Confirm POS Order (Table Products) API
Confirms all products in an order for a specific table/consumer.
This action typically finalizes the added items and marks them as confirmed, making them ready for further processing (e.g., kitchen, billing, printing).
Endpoint
POST /api/order/pos_confirm_table_productsExample:
https://kasa.smarton.app/api/order/pos_confirm_table_productsRequest
Content-Type
application/x-www-form-urlencoded; charset=UTF-8Required Headers
Authorization: 4/6/your_token_here
Accept: application/json, text/plain, */*
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequestBody Parameters
Parameter | Type | Required | Description |
|---|---|---|---|
| integer | Yes | Consumer/table ID whose active order(s) should be confirmed. |
Example Request
curl 'https://kasa.smarton.app/api/order/pos_confirm_table_products' \
-H 'Authorization: 4/6/your_token_here' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'X-Requested-With: XMLHttpRequest' \
--data-raw 'order_consumer_id=267'Response
Returns an array of orders associated with the given consumer/table.
Each order will reflect updated statuses after confirmation.
Example Response
[
{
"id": 1424,
"name": "4",
"number": "1424",
"status": "confirmed_by_manager",
"numberOfVisitors": 1,
"consumer": {
"id": 267,
"name": "4",
"device": null
},
"customer": {
"id": 1,
"name": "Customer",
"creditAmount": 0,
"remnantCredit": 0
},
"manager": {
"id": 4,
"name": "Proman Administrator"
},
"customerDiscountPercent": 0,
"customerPrice": {
"amount": 52.809917,
"currency": "EUR"
},
"customerPriceWithVat": {
"amount": 52.81,
"currency": "EUR"
},
"discountSum": {
"amount": 0,
"currency": "EUR"
},
"products": [
{
"id": 3973,
"name": "testHatori",
"status": "confirmed",
"quantity": 1,
"itemNumber": 0,
"position": 1,
"hideInInvoice": false,
"fixedPrice": false,
"discount": 0,
"customerPrice": {
"amount": 52.809917,
"currency": "EUR"
},
"customerPriceWithVat": {
"amount": 52.809917,
"currency": "EUR"
},
"discountSum": {
"amount": 0,
"currency": "EUR"
}
}
]
}
]Status Changes
Order Status
Before | After |
|---|---|
|
|
Product Status
Before | After |
|---|---|
|
|
Important Fields
Order Level
Field | Description |
|---|---|
| Updated to |
| Total order amount (without rounding). |
| Final order amount including VAT. |
Product Level
Field | Description |
|---|---|
| Changes to |
| Confirmed quantity. |
| Price per product line. |
Notes
- This endpoint confirms all products for the given table (
consumer), not a single order line. - If multiple active orders exist for the same table, all relevant orders may be returned.
- After confirmation:
- Products are typically locked for editing (depending on system rules).
- They may be sent to kitchen printers or downstream systems.
- Calling this endpoint multiple times should not duplicate confirmations; it will simply return the current confirmed state.
Payment Submission Endpoint
Endpoint URL
https://{domain}.smarton.app/api/pos_account/payment
Method
POST
Description
This endpoint processes payments for specific orders, capturing transaction details including payment amounts, associated order, and customer details. It also supports financial transactions tracking including fiscal and non-fiscal numbers, with integration for VMI (State Tax Inspectorate under the Ministry of Finance of Lithuania) reporting requirements.
Request Headers
- accept: Expected response format (e.g.,
application/json). - authorization: Authentication token for validating access.
- content-type: Specifies the content type of the payload (
application/x-www-form-urlencoded). - referer: Referring page that initiated the request.
Request Body Parameters
- customer: ID of the customer making the payment.
- order: ID of the order being paid.
- payments[1]: Amount being paid, indexed by payment method ID.
- device: ID of the device through which the payment is processed.
Example Curl Request
curl --location 'https://{domain}.smarton.app/api/pos_account/payment' \
--header 'accept: application/json' \
--header 'authorization: <Your Authorization Token>' \
--header 'content-type: application/x-www-form-urlencoded; charset=UTF-8' \
--header 'referer: https://{domain}.smarton.app/pos/tables/1294' \
--data 'customer=2&order=26176&payments%5B1%5D=3.00&device=1'
Response
The server responds with a JSON object containing details of the payment process, including unique identifiers, fiscal documentation numbers, and transaction status.
Response Structure
- id: (optional) Unique identifier for the payment record.
- time: Timestamp of the payment transaction.
- order: Order ID associated with the payment.
- unique_id: A unique transaction identifier.
- status: Transaction status (e.g.,
SUCCESS). - fiscal_no: Fiscal number assigned to the transaction.
- message: Human-readable message or status update.
- errors: Any errors encountered during the transaction processing.
- data: Detailed JSON-formatted string containing comprehensive transaction details including fiscal info, receipt details, and tax calculations.
Status Codes
- 200 OK: Payment was successfully processed.
- 400 Bad Request: Input or request format issues.
- 401 Unauthorized: Authentication or authorization failure.
- 500 Internal Server Error: Server-side error occurred.
POS data for reporting
The sections below describe the POS lists that reporting integrations need. For sales, payments and refunds, see Orders API. For access, paging and filters, see API basics.
POS devices
GET /api/device/search?select[]=id&select[]=type&select[]=enabled&select[]=namespace&paginate=true&limit=200
Devices are fiscal printers, receipt printers, card terminals and other POS hardware. type tells which (for example FiscalPrinter, PosPrinter, CardTerminal). The payment record of a sale (account_registry.device) points to the device used. The device name is in configuration.name; configuration also holds the device's settings, so ask only for the fields you need.
Tables and zones
GET /api/order_consumer/search?partialJoin[area][]=name&paginate=true&limit=200 GET /api/area/search
A table (order_consumer) has id, name, numberOfPlaces (seats) and area (zone). Orders point to their table with consumer.
Cash operations and X and Z reports
GET /api/fiscal_report_log/search
Example request
curl -g -G 'https://{company}.smarton.app/api/fiscal_report_log/search' \
-H 'Authorization: <token>' \
--data-urlencode 'paginate=true' \
--data-urlencode 'limit=500' \
--data-urlencode 'createdAt=>=2026-10-01T00:00:00Z&<2026-11-01T00:00:00Z' \
--data-urlencode 'sort[createdAt]=asc'
A log of cash register events. Every row has type, device (device ID), person and personName (the cashier), createdAt and metadata.
| type | Meaning |
|---|---|
z, x | Z report (end of day) and X report printed. metadata.text holds the printed text. |
cash_in, cash_out | Cash put into or taken out of the drawer. metadata.cash is the amount. |
cash_return, card_return | Refund in cash or to a card. metadata.cash is the amount. |
cash_advance, card_advance | Advance payment in cash or by card. |
open_drawer | Cash drawer opened without a sale. |
- This list does not support
join[];deviceandpersonare IDs. createdAtcomes as2026-10-07 07:35:40(UTC), without theTandZ.
Smarton has no separate shift record with opening and closing totals: the shift is opened and closed on the fiscal device. To reconcile a shift, take the Z reports from this log as boundaries and add up the payment records (account_registry) and cash operations between them, per device and payment method.
English