Promeni temu
Referenca
Sve rute Konty API-ja, generisane iz ugovora openapi.json (OpenAPI 3.1) — isti fajl možete preuzeti i uvesti u Postman ili generator klijenta. Opisi polja su na engleskom, kao u ugovoru.
- GET
/status— Key, account, cash register and certificate state - GET
/products— Sellable products - GET
/tax-rates— Tax rates - GET
/clients— Clients - GET
/orders— Every document of the venue in a period (for analysis tools) - POST
/orders— Issue a fiscal receipt or an e-invoice - GET
/orders/{reference}— Read a document by your reference - POST
/orders/{reference}/void— Void a document issued by mistake - POST
/tickets— Send a room-service porudžbina - GET
/tickets/{reference}— Read a porudžbina by your reference
GET/status
Key, account, cash register and certificate state
Needs no scope and never refuses an inactive register or user: it reports them.
Dozvola: nije potrebna
Odgovori
200— The key's binding and readiness.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/status' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'Primeri
200 — RS account on staging: receipts signed by the development ESDC
{
"data": {
"key": {
"name": "Webshop",
"prefix": "aria_test_4ZDsLG",
"source": "woocommerce",
"scopes": [
"orders:create",
"orders:read",
"orders:void",
"catalog:read",
"clients:read"
],
"expires_at": null
},
"account": {
"name": "Aria Test doo",
"country": "RS"
},
"cash_register": {
"id": 12,
"name": "Webshop",
"shared": true,
"active": true,
"shift_open": true
},
"user": {
"id": 34,
"name": "API – Webshop",
"active": true
},
"vsdc_certificate": {
"present": false,
"expires_at": null,
"signer": "development_esdc"
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90010"
}GET/products
Sellable products
Prices are informational: an order is issued at the prices you send.
Dozvola: catalog:read
Parametri
| Polje | Tip | Opis |
|---|---|---|
page (query) | integer | |
per_page (query) | integer | Out-of-range values are clamped to 1..100, not refused. |
search (query) | string | Name contains, or an exact code / barcode / GTIN (products) or id / tax / registration number (clients). |
Odgovori
200— A page of products.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.409— The key's register or user is unavailable. Codes: REGISTER_UNAVAILABLE, USER_UNAVAILABLE.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/products' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'GET/tax-rates
Tax rates
Dozvola: catalog:read
Odgovori
200— Every tax rate.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.409— The key's register or user is unavailable. Codes: REGISTER_UNAVAILABLE, USER_UNAVAILABLE.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/tax-rates' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'GET/clients
Clients
Dozvola: clients:read
Parametri
| Polje | Tip | Opis |
|---|---|---|
page (query) | integer | |
per_page (query) | integer | Out-of-range values are clamped to 1..100, not refused. |
search (query) | string | Name contains, or an exact code / barcode / GTIN (products) or id / tax / registration number (clients). |
Odgovori
200— A page of clients.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.409— The key's register or user is unavailable. Codes: REGISTER_UNAVAILABLE, USER_UNAVAILABLE.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/clients' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'GET/orders
Every document of the venue in a period (for analysis tools)
All documents the venue issued — POS, delivery, QR and API alike — that reached Konty in the given local days (created_at), at most one month, oldest id first. Page with `after` = meta.next_cursor until it is null. A document issued offline belongs to the period it reached Konty in, so pulling every period once gets every document once; pull a period a few minutes after it ends. Proformas, training documents (POS training mode too), copies and incoming documents are not listed. A table's rounds are listed only where each is a fiscal document (Montenegro: an unpaid invoice, settled later by a summary); in Serbia they are not documents, and the table's receipt carries their items. A refund or storno is a new document in the period it arrives; the original's canceled_at and updated_at change, so re-pull a period to see them.
Dozvola: orders:export
Parametri
| Polje | Tip | Opis |
|---|---|---|
from (query, obavezno) | string | First local day (Y-m-d). |
to (query, obavezno) | string | Last local day (Y-m-d), at most one month after `from`. |
limit (query) | integer | |
after (query) | integer | meta.next_cursor of the previous page of the same period. |
Odgovori
200— A page of documents.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.422— Invalid period. Codes: VALIDATION_ERROR, PERIOD_TOO_LONG (details.max_to).429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/orders' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'Primeri
200 — One document, more to follow
{
"data": [
{
"id": 48211,
"hash": "q7k2m9x0a1b2c",
"number": 123,
"full_number": "ab123cd456/123/2026/tcr123",
"status": "paid",
"einvoice": false,
"source": "pos",
"external_reference": null,
"issuing_date": "2026-10-14T17:22:05+00:00",
"created_at": "2026-10-14T17:22:06+00:00",
"updated_at": "2026-10-14T17:22:06+00:00",
"registered_at": "2026-10-14T17:22:06+00:00",
"canceled_at": null,
"cash_register": {
"id": 1,
"name": "Kasa 1"
},
"cashier": {
"id": 4,
"name": "Vesna Ilić"
},
"shift": {
"id": 311,
"name": "Jutarnja",
"started_at": "2026-10-14T06:01:12+00:00",
"closed_at": "2026-10-14T22:14:40+00:00"
},
"table": {
"id": 12,
"name": "B4",
"sector": {
"id": 2,
"name": "Bašta"
}
},
"total": "1050.00",
"tax_total": "135.71",
"tip": "0.00",
"payments": [
{
"method": "card",
"amount": "1050.00"
}
],
"change": "0.00",
"fiscal": {
"fiscalized": true,
"register_type": "fiscal",
"register_status": "success",
"invoice_number": "9WM3LAJT-9WM3LAJT-5882"
},
"settled_by": null,
"refers_to": [],
"referred_by": [],
"client": {
"id": 42,
"name": "Kupac doo",
"id_type": "tax_id_number",
"id_number": "101010101",
"tax_id_number": "101010101"
},
"items": [
{
"product_id": 16,
"code": "SKU-4471",
"name": "Club sendvič",
"quantity": "1.000",
"unit": "pcs",
"unit_price": "850.00",
"discount_percent": "0.00",
"tax_label": "Ђ",
"tax_rate": "20.00",
"exempt_from_tax": null,
"tax": "141.67",
"total": "850.00"
},
{
"product_id": 17,
"code": "SKU-0001",
"name": "Dostava",
"quantity": "1.000",
"unit": "pcs",
"unit_price": "200.00",
"discount_percent": "0.00",
"tax_label": "Г",
"tax_rate": "0.00",
"exempt_from_tax": null,
"tax": "0.00",
"total": "200.00"
}
]
}
],
"meta": {
"from": "2026-10-01",
"to": "2026-10-31",
"limit": 1000,
"count": 1,
"next_cursor": 48211
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90007"
}422 — More than one month
{
"error": {
"code": "PERIOD_TOO_LONG",
"message": "A period is at most one month.",
"details": {
"max_to": "2026-11-15"
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90008"
}POST/orders
Issue a fiscal receipt or an e-invoice
One document per (your integration, external_reference): a reference already used — whatever the body — is refused with 409 DUPLICATE_REFERENCE, and error.details.order is the document it names (the same payload GET /orders/{reference} answers). After a lost response, resend or GET the same reference; never retry under a new reference.
Dozvola: orders:create
Telo zahteva
| Polje | Tip | Opis |
|---|---|---|
external_reference (obavezno) | string | Your own id of the order; letter case is ignored (ABC and abc are one reference); '/' between segments only, no '.' or '..' segment. |
type (obavezno) | string (receipt | einvoice) | einvoice: RS only. |
expect_country | Country | |
client | ClientInput | By id, or by identity: the most recent client with the same id_type + id_number (else the same tax ID, in tax_id_number or as the id_number of a tax-ID id_type) is used and never updated; otherwise a new client is created from these fields. |
client.id | integer | |
client.id_type | string | Required together with id_number. On a receipt, Montenegro takes tax_id_number, personal_id_number, passport_number, vat_number, tax_number and social_security_number; Serbia takes tax_id_number (a domestic buyer's PIB, with country SRB) and the types from tax_id_number_local on. Another type is refused with 422 VALIDATION_ERROR (client.id_type). RS PIB: tax_id_number_local; RS public sector: tax_id_number_local_jbkjs. [tax_id_number, personal_id_number, passport_number, vat_number, tax_number, social_security_number, tax_id_number_local, personal_id_number_local, tax_id_number_local_jbkjs, retiree_card_number, agricultural_holding_tax_id_number, agricultural_holding_personal_id_number, agricultural_holding_id_number, personal_id_card_number, personal_id_card_number_mkd, personal_id_card_number_mne, personal_id_card_number_alb, personal_id_card_number_bih, personal_id_card_number_eur, resident_number_refugee, resident_number_foreign, resident_number_diplomat, passport_number_local, passport_number_foreign, tax_id_number_foreign] |
client.id_number | string | Required together with id_type. |
client.tax_id_number | string | The buyer's tax ID. Sent without id_type, it names the buyer on fiscal documents: Serbia a PIB (tax_id_number_local), or a foreign tax ID (tax_id_number_foreign) when country is not SRB; Montenegro a TIN (tax_id_number), or a TAX number (tax_number) when country is not MNE. A new client is saved with that id_type. |
client.registration_number | string | |
client.vat_number | string | |
client.name | string | Required when Konty does not know the client yet (a new client is created). Names are unique among a venue's clients: when another client already has this name, it is used if it has the same tax ID or id number (tax_id_number or id_number); otherwise the request is refused with 422 VALIDATION_ERROR (client.name). |
client.address | string | |
client.city | string | |
client.postal_number | string | |
client.country | string | ISO 3166-1 alpha-3 (MNE, SRB, DEU, …), stored upper case. RS, ME, BA, MK and AL are also read as their alpha-3 code; any other value that is not three letters is refused with 422 VALIDATION_ERROR (client.country). |
client.email | string | |
items (obavezno) | OrderItem[] | |
items[].product_id | integer | |
items[].code | string | |
items[].barcode | string | |
items[].gtin | string | A lookup key, or on a described item the new product's GTIN: 8 to 14 characters. |
items[].name | string | With code and tax_rate (and no product_id), makes this a described item: the product's name when it is created. |
items[].tax_rate | number | Described item: the tax rate in percent, e.g. 20. Must match exactly one of the venue's rates (GET /tax-rates), or send tax_rate_label too (TAX_RATE_AMBIGUOUS lists the labels). |
items[].tax_rate_label | string | Described item, optional: the rate's label as GET /tax-rates returns it (e.g. Ђ). With it, both value and label must match. |
items[].unit | string | Described item: the unit of a created product. [pcs, t, kg, g, l, m, m2, m3, h, day] |
items[].quantity (obavezno) | number | |
items[].unit_price (obavezno) | number | Tax-inclusive price per unit, issued exactly as sent (ME: greater than 0) — except for a diplomat client, who pays it without the product's VAT (the API strips it, as the POS does). The tax rate always comes from the product (a described item's tax_rate only finds or creates it). |
items[].discount_percent | number | |
items[].note | string | |
payments (obavezno) | Payment[] | Must add up to the order total (2 decimals). |
payments[].method (obavezno) | string | Receipts accept per market — ME: cash, card, card_business, invoice, other; RS: cash, card, invoice, check, voucher, mobile_money, other. Any other method on a receipt is 422 VALIDATION_ERROR (payments.N.method: payment_method_not_supported; card_business on an RS receipt names itself). RS: a card payment on a register whose settings take no cards is 422 (payments.N.method: register_takes_no_cards). [cash, card, card_business, invoice, check, voucher, mobile_money, other] |
payments[].amount (obavezno) | number | |
note | string | |
einvoice | object | RS e-invoice options. |
einvoice.due_date | string | Required when vat_obligation is by_due_date. |
einvoice.vat_obligation | string (by_issue_date | by_delivery_date | by_due_date | no_obligation) | |
einvoice.delivery_date | string |
Odgovori
201— Issued and fiscalized.202— Stored but not fiscalized: the tax authority failed (data.fiscal_error says how). The document is kept, register_status `failed`; Konty support follows it up. Do not resend a modified order under this reference.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.409— Conflict. Codes: DUPLICATE_REFERENCE (error.details.external_reference, error.details.order: the document already issued under it), FISCAL_SETUP_INCOMPLETE, SHIFT_CLOSED, VSDC_CERTIFICATE_MISSING, REGISTER_UNAVAILABLE, USER_UNAVAILABLE.422— Invalid order. Codes: VALIDATION_ERROR, PRODUCT_NOT_FOUND, PRODUCT_TAX_MISMATCH, PRODUCT_IDENTIFIER_TAKEN, TAX_RATE_NOT_FOUND, TAX_RATE_AMBIGUOUS, CLIENT_NOT_FOUND, COUNTRY_MISMATCH, PAYMENT_TOTAL_MISMATCH, ORDER_REJECTED.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.502— Nothing was stored: the day's opening cash deposit (ME shared register) could not be registered. Code: FISCAL_SERVICE_UNAVAILABLE; resending is safe.503— The cash register is issuing other documents. No document was stored: send the same request again after Retry-After. Codes: REGISTER_BUSY.
Primer koda
curl
curl -X POST 'https://staging.api.ariapos.rs/api/v1/external/orders' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"external_reference": "WC-10045",
"type": "receipt",
"items": [
{
"code": "SKU-1",
"quantity": 2,
"unit_price": 12.5
}
],
"payments": [
{
"method": "card",
"amount": 25
}
]
}'Primeri
zahtev — Receipt, one item, card (ME or RS)
{
"external_reference": "WC-10045",
"type": "receipt",
"items": [
{
"code": "SKU-1",
"quantity": 2,
"unit_price": 12.5
}
],
"payments": [
{
"method": "card",
"amount": 25
}
]
}zahtev — E-invoice (RS)
{
"external_reference": "ERP-2026/77",
"type": "einvoice",
"client": {
"id_type": "tax_id_number_local",
"id_number": "101010101",
"registration_number": "20202020",
"name": "Kupac doo"
},
"items": [
{
"product_id": 15,
"quantity": 10,
"unit_price": 120,
"discount_percent": 5
}
],
"payments": [
{
"method": "invoice",
"amount": 1140
}
],
"einvoice": {
"due_date": "2026-11-15"
}
}zahtev — ME receipt with a domestic buyer, card + cash
{
"external_reference": "WC-10045",
"type": "receipt",
"client": {
"id_type": "tax_id_number",
"id_number": "02000001",
"name": "Kupac d.o.o.",
"address": "Bulevar 1",
"city": "Podgorica"
},
"items": [
{
"product_id": 15,
"quantity": 2,
"unit_price": 121
}
],
"payments": [
{
"method": "card",
"amount": 200
},
{
"method": "cash",
"amount": 42
}
]
}zahtev — Receipt with a foreign buyer (needs address, city, country, id_type)
{
"external_reference": "WC-10046",
"type": "receipt",
"client": {
"id_type": "passport_number",
"id_number": "P1234567",
"name": "John Smith",
"address": "Hauptstr. 1",
"city": "Berlin",
"country": "DEU"
},
"items": [
{
"code": "SKU-1",
"quantity": 1,
"unit_price": 121
}
],
"payments": [
{
"method": "card",
"amount": 121
}
]
}zahtev — RS receipt by barcode, with a discount and a note
{
"external_reference": "SHOP-881",
"type": "receipt",
"expect_country": "RS",
"items": [
{
"barcode": "8600000000017",
"quantity": 2,
"unit_price": 125,
"discount_percent": 4,
"note": "gift wrap"
}
],
"payments": [
{
"method": "cash",
"amount": 240
}
]
}zahtev — Receipt paid on account (non-cash invoice; ME needs no day deposit)
{
"external_reference": "B2B-501",
"type": "receipt",
"client": {
"id": 42
},
"items": [
{
"gtin": "08600000000017",
"quantity": 10,
"unit_price": 12.1
}
],
"payments": [
{
"method": "invoice",
"amount": 121
}
]
}zahtev — RS e-invoice with VAT obligation by delivery date
{
"external_reference": "ERP-2026/78",
"type": "einvoice",
"client": {
"id_type": "tax_id_number",
"id_number": "101010101",
"registration_number": "20202020",
"name": "Kupac doo",
"address": "Bulevar 5",
"city": "Beograd",
"postal_number": "11000"
},
"items": [
{
"product_id": 15,
"quantity": 3,
"unit_price": 120
}
],
"payments": [
{
"method": "invoice",
"amount": 360
}
],
"einvoice": {
"due_date": "2026-11-30",
"vat_obligation": "by_delivery_date",
"delivery_date": "2026-10-24"
}
}zahtev — Items described by the integrator's own code (created with catalog:write when unknown)
{
"external_reference": "WC-10050",
"type": "receipt",
"items": [
{
"code": "SKU-4471",
"name": "Club sendvič",
"tax_rate": 20,
"quantity": 1,
"unit_price": 850
},
{
"code": "SKU-0001",
"name": "Dostava",
"tax_rate": 0,
"tax_rate_label": "Г",
"quantity": 1,
"unit_price": 200
}
],
"payments": [
{
"method": "card",
"amount": 1050
}
]
}201 — ME receipt, fiscalized
{
"data": {
"external_reference": "WC-10045",
"country": "ME",
"type": "receipt",
"register_status": "success",
"number": 1,
"total": "242.00",
"tax_total": "42.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"iic": "970E13F90E07ACDAC7CA61700BF01B83",
"fiscal_code": "0f3b2a8e-6c1d-4f6a-9b7e-2d5c8a1e4f90",
"verification_url": "https://efitest.tax.gov.me/ic/#/verify?iic=970E13F90E07ACDAC7CA61700BF01B83&tin=02356666&crtd=2026-10-25T10:41:12+01:00&ord=1&bu=ab123cd456&cr=xy987zz321&sw=cx878wj457&prc=242.00",
"voided": false,
"corrected": false
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90001"
}201 — RS receipt, fiscalized (journal: the receipt text for the buyer)
{
"data": {
"external_reference": "SHOP-881",
"country": "RS",
"type": "receipt",
"register_status": "success",
"number": 1,
"total": "240.00",
"tax_total": "40.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"invoice_number": "9WM3LAJT-9WM3LAJT-5700",
"invoice_counter": "4508/5700ПП",
"verification_url": "https://suf.purs.gov.rs/v/?vl=A1JXTTNMQUpUOVdNM0xBSlQ...",
"sdc_date_time": "2026-10-25T11:41:12.511+02:00",
"journal": "============ ФИСКАЛНИ РАЧУН ============\n 100000001\n Aria Test doo\n Knez Mihailova 1\n Beograd\nКасир: API – Webshop\nЕСИР број: 1442/8\n-------------ПРОМЕТ ПРОДАЈА-------------\nАртикли\n========================================\nНазив Цена Кол. Укупно\nKafa (Ђ)\n 120,00 2 240,00\n----------------------------------------\nУкупан износ: 240,00\nГотовина: 240,00\n========================================\nОзнака Име Стопа Порез\nЂ ПДВ 20,00% 40,00\n----------------------------------------\nУкупан износ пореза: 40,00\n========================================\nПФР време: 25.10.2026. 11:41:12\nПФР број рачуна: 9WM3LAJT-9WM3LAJT-5700\nБројач рачуна: 4508/5700ПП\n========================================\n======== КРАЈ ФИСКАЛНОГ РАЧУНА =========",
"voided": false,
"corrected": false
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90006"
}201 — RS e-invoice, sent to SEF
{
"data": {
"external_reference": "ERP-2026/77",
"country": "RS",
"type": "einvoice",
"register_status": "einvoice-sending",
"number": 1,
"total": "1140.00",
"tax_total": "190.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"sales_invoice_id": 4242,
"einvoice_status": "einvoice-sending",
"voided": false,
"corrected": false
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90008"
}202 — Kept, not fiscalized (EFI did not answer); Konty support follows it up
{
"data": {
"external_reference": "WC-10046",
"country": "ME",
"type": "receipt",
"register_status": "failed",
"number": 2,
"total": "242.00",
"tax_total": "42.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": false,
"fiscal_error": {
"code": "FISCAL_STATUS_UNKNOWN",
"message": "The tax authority's answer was lost. The document is kept as not fiscalized; Konty support follows it up.",
"details": {
"efi_request_uuid": "bd2ab1cf-6b2b-4f61-a6dd-54f10d25c84e"
}
},
"iic": null,
"fiscal_code": null,
"verification_url": null,
"voided": false,
"corrected": false
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90003"
}409 — A used external_reference, with the document it names
{
"error": {
"code": "DUPLICATE_REFERENCE",
"message": "This external_reference was already used. The document it names is in details.order; never resend it under a new reference.",
"details": {
"external_reference": "WC-10045",
"order": {
"external_reference": "WC-10045",
"country": "ME",
"type": "receipt",
"register_status": "success",
"number": 1,
"total": "242.00",
"tax_total": "42.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"iic": "970E13F90E07ACDAC7CA61700BF01B83",
"fiscal_code": "0f3b2a8e-6c1d-4f6a-9b7e-2d5c8a1e4f90",
"verification_url": "https://efitest.tax.gov.me/ic/#/verify?iic=970E13F90E07ACDAC7CA61700BF01B83&tin=02356666&crtd=2026-10-25T10:41:12+01:00&ord=1&bu=ab123cd456&cr=xy987zz321&sw=cx878wj457&prc=242.00",
"voided": false,
"corrected": false
}
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90004"
}422 — Payments do not add up to the total
{
"error": {
"code": "PAYMENT_TOTAL_MISMATCH",
"message": "The payments do not add up to the order total.",
"details": {
"order_total": "242.00",
"payments_total": "1.00"
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90005"
}422 — A described item's tax rate matches several labels
{
"error": {
"code": "TAX_RATE_AMBIGUOUS",
"message": "Several tax rates have this value; send tax_rate_label.",
"details": {
"item_index": 0,
"tax_rate": 0,
"labels": [
"Г",
"А"
]
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90006"
}GET/orders/{reference}
Read a document by your reference
Dozvola: orders:read
Parametri
| Polje | Tip | Opis |
|---|---|---|
reference (path, obavezno) | string | Your external_reference. May contain '/' (e.g. 2026/ERP-7) — send it unencoded. |
Odgovori
200— The same payload as the create response.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.404— Not issued. Codes: NOT_FOUND.409— The key's register or user is unavailable. Codes: REGISTER_UNAVAILABLE, USER_UNAVAILABLE.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/orders/WC-10045' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'Primeri
200 — The document, as issued
{
"data": {
"external_reference": "WC-10045",
"country": "ME",
"type": "receipt",
"register_status": "success",
"number": 1,
"total": "242.00",
"tax_total": "42.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"iic": "970E13F90E07ACDAC7CA61700BF01B83",
"fiscal_code": "0f3b2a8e-6c1d-4f6a-9b7e-2d5c8a1e4f90",
"verification_url": "https://efitest.tax.gov.me/ic/#/verify?iic=970E13F90E07ACDAC7CA61700BF01B83&tin=02356666&crtd=2026-10-25T10:41:12+01:00&ord=1&bu=ab123cd456&cr=xy987zz321&sw=cx878wj457&prc=242.00",
"voided": false,
"corrected": false
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90001"
}POST/orders/{reference}/void
Void a document issued by mistake
ME receipt: a full-cancel corrective receipt. RS receipt: a refund receipt (reason: error). RS e-invoice: storno in SEF. A repeated void is refused: 409 VOID_NOT_ALLOWED with details.reason already_voided and details.order (the document with its void).
Dozvola: orders:void
Parametri
| Polje | Tip | Opis |
|---|---|---|
reference (path, obavezno) | string | Your external_reference. May contain '/' (e.g. 2026/ERP-7) — send it unencoded. |
Telo zahteva
| Polje | Tip | Opis |
|---|---|---|
reason (obavezno) | string |
Odgovori
201— Voided.202— The corrective / refund was stored but not fiscalized (data.fiscal_error); Konty support follows it up.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.404— Not issued. Codes: NOT_FOUND.409— Cannot be voided now. Codes: VOID_NOT_ALLOWED (details.reason already_voided carries details.order), FISCAL_SETUP_INCOMPLETE, SHIFT_CLOSED, VSDC_CERTIFICATE_MISSING, REGISTER_UNAVAILABLE, USER_UNAVAILABLE.422— Invalid request. Codes: VALIDATION_ERROR.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.502— Nothing was stored here. The day's opening cash deposit (ME shared register) could not be registered (FISCAL_SERVICE_UNAVAILABLE; resending is safe), or an e-invoice storno failed in SEF: FISCAL_REJECTED / FISCAL_SERVICE_UNAVAILABLE leave the e-invoice unchanged; after FISCAL_STATUS_UNKNOWN SEF may have taken the storno — check einvoice_status with GET before resending.503— The cash register is issuing other documents. No document was stored: send the same request again after Retry-After. Codes: REGISTER_BUSY.
Primer koda
curl
curl -X POST 'https://staging.api.ariapos.rs/api/v1/external/orders/WC-10045/void' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"reason": "Customer cancelled"
}'Primeri
zahtev — Void in full
{
"reason": "Customer cancelled"
}201 — ME receipt voided by a full-cancel corrective
{
"data": {
"external_reference": "WC-10045",
"country": "ME",
"type": "receipt",
"register_status": "success",
"number": 1,
"total": "242.00",
"tax_total": "42.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"iic": "970E13F90E07ACDAC7CA61700BF01B83",
"fiscal_code": "0f3b2a8e-6c1d-4f6a-9b7e-2d5c8a1e4f90",
"verification_url": "https://efitest.tax.gov.me/ic/#/verify?iic=970E13F90E07ACDAC7CA61700BF01B83&tin=02356666&crtd=2026-10-25T10:41:12+01:00&ord=1&bu=ab123cd456&cr=xy987zz321&sw=cx878wj457&prc=242.00",
"voided": true,
"corrected": true,
"void": {
"fiscalized": true,
"number": 2,
"total": "-242.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"register_status": "success",
"iic": "CEE88C4CA31100B4ACD2E35F4AAD9F2E",
"fiscal_code": "c7d1e9a2-3b4f-4e8a-a6d5-1f2e3c4b5a60"
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90002"
}201 — RS receipt voided by a refund
{
"data": {
"external_reference": "SHOP-881",
"country": "RS",
"type": "receipt",
"register_status": "success",
"number": 1,
"total": "240.00",
"tax_total": "40.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"invoice_number": "9WM3LAJT-9WM3LAJT-5700",
"invoice_counter": "4508/5700ПП",
"verification_url": "https://suf.purs.gov.rs/v/?vl=A1JXTTNMQUpUOVdNM0xBSlQ...",
"sdc_date_time": "2026-10-25T11:41:12.511+02:00",
"journal": "============ ФИСКАЛНИ РАЧУН ============\n 100000001\n Aria Test doo\n Knez Mihailova 1\n Beograd\nКасир: API – Webshop\nЕСИР број: 1442/8\n-------------ПРОМЕТ ПРОДАЈА-------------\nАртикли\n========================================\nНазив Цена Кол. Укупно\nKafa (Ђ)\n 120,00 2 240,00\n----------------------------------------\nУкупан износ: 240,00\nГотовина: 240,00\n========================================\nОзнака Име Стопа Порез\nЂ ПДВ 20,00% 40,00\n----------------------------------------\nУкупан износ пореза: 40,00\n========================================\nПФР време: 25.10.2026. 11:41:12\nПФР број рачуна: 9WM3LAJT-9WM3LAJT-5700\nБројач рачуна: 4508/5700ПП\n========================================\n======== КРАЈ ФИСКАЛНОГ РАЧУНА =========",
"voided": true,
"corrected": true,
"void": {
"fiscalized": true,
"number": 2,
"total": "-240.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"register_status": "success",
"invoice_number": "9WM3LAJT-9WM3LAJT-5701",
"verification_url": "https://suf.purs.gov.rs/v/?vl=A1JXTTNMQUpUOVdNM0xBSlR...",
"journal": "============ ФИСКАЛНИ РАЧУН ============\n 100000001\n Aria Test doo\n Knez Mihailova 1\n Beograd\nКасир: API – Webshop\nЕСИР број: 1442/8\n-------------ПРОМЕТ РЕФУНДАЦИЈА-------------\nАртикли\n========================================\nНазив Цена Кол. Укупно\nKafa (Ђ)\n 120,00 2 240,00\n----------------------------------------\nУкупан износ: 240,00\nГотовина: 240,00\n========================================\nОзнака Име Стопа Порез\nЂ ПДВ 20,00% 40,00\n----------------------------------------\nУкупан износ пореза: 40,00\n========================================\nПФР време: 25.10.2026. 11:41:12\nПФР број рачуна: 9WM3LAJT-9WM3LAJT-5701\nБројач рачуна: 4508/5701ПР\n========================================\n======== КРАЈ ФИСКАЛНОГ РАЧУНА ========="
}
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90007"
}201 — RS e-invoice storno in SEF
{
"data": {
"external_reference": "ERP-2026/77",
"country": "RS",
"type": "einvoice",
"register_status": "einvoice-storno",
"number": 1,
"total": "1140.00",
"tax_total": "190.00",
"issued_at": "2026-10-25T09:41:12+00:00",
"fiscalized": true,
"sales_invoice_id": 4242,
"einvoice_status": "einvoice-storno",
"voided": true,
"corrected": false
},
"request_id": "7c9e6679-7425-40de-944b-e07fc1f90009"
}POST/tickets
Send a room-service porudžbina
Creates a porudžbina the venue sees in Nalozi. Nothing is issued: the venue accepts or refuses it, prepares it, and closes it as Pošalji na sobu (charged to the room through the hotel system) or Naplati (a receipt, cash or card). Prices are the venue's catalogue prices. One porudžbina per (your integration, external_reference): a used reference is refused with 409 DUPLICATE_REFERENCE and error.details.ticket. Follow it with GET /tickets/{reference}.
Dozvola: tickets:create
Telo zahteva
| Polje | Tip | Opis |
|---|---|---|
external_reference (obavezno) | string | Your own id of the porudžbina; letter case is ignored (ABC and abc are one reference); '/' between segments only, no '.' or '..' segment. |
room (obavezno) | string | The guest's room number; no '·' or '—'. |
guest | string | null | |
note | string | null | The guest's note for the whole porudžbina. |
items (obavezno) | TicketItemInput[] | |
items[].product_id | integer | |
items[].code | string | |
items[].barcode | string | |
items[].gtin | string | |
items[].quantity (obavezno) | number | |
items[].note | string | null | For the kitchen, e.g. 'dobro pečeno'. |
Odgovori
201— The porudžbina, waiting for the venue.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.409— Conflict. DUPLICATE_REFERENCE (error.details.external_reference, error.details.ticket: the porudžbina already sent under it).422— Refused, nothing stored. Codes: VALIDATION_ERROR (error.details.errors), PRODUCT_NOT_FOUND (error.details.item_index).429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X POST 'https://staging.api.ariapos.rs/api/v1/external/tickets' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
--data '{
"external_reference": "RS-2026-0042",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"quantity": 2,
"note": "dobro pečeno"
},
{
"code": "102",
"quantity": 1
}
]
}'Primeri
zahtev — Two items for room 214
{
"external_reference": "RS-2026-0042",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"quantity": 2,
"note": "dobro pečeno"
},
{
"code": "102",
"quantity": 1
}
]
}201 — Received
{
"data": {
"external_reference": "RS-2026-0042",
"status": "received",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"name": "Pljeskavica",
"quantity": 2,
"unit_price": "650.00",
"total": "1300.00",
"note": "dobro pečeno"
},
{
"product_id": 31,
"name": "Mineralna voda",
"quantity": 1,
"unit_price": "200.00",
"total": "200.00",
"note": null
}
],
"total": "1500.00",
"reject_reason": null,
"document": null,
"created_at": "2026-10-27T19:02:11+00:00",
"updated_at": "2026-10-27T19:02:11+00:00"
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}409 — A used external_reference, with the porudžbina it names
{
"error": {
"code": "DUPLICATE_REFERENCE",
"message": "This external_reference was already used. The porudžbina it names is in details.ticket; never resend it under a new reference.",
"details": {
"external_reference": "RS-2026-0042",
"ticket": {
"external_reference": "RS-2026-0042",
"status": "received",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"name": "Pljeskavica",
"quantity": 2,
"unit_price": "650.00",
"total": "1300.00",
"note": "dobro pečeno"
},
{
"product_id": 31,
"name": "Mineralna voda",
"quantity": 1,
"unit_price": "200.00",
"total": "200.00",
"note": null
}
],
"total": "1500.00",
"reject_reason": null,
"document": null,
"created_at": "2026-10-27T19:02:11+00:00",
"updated_at": "2026-10-27T19:02:11+00:00"
}
}
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}422 — An item matches no sellable product
{
"error": {
"code": "PRODUCT_NOT_FOUND",
"message": "No sellable product with this code.",
"details": {
"item_index": 1,
"code": "102"
}
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}GET/tickets/{reference}
Read a porudžbina by your reference
Dozvola: tickets:read
Parametri
| Polje | Tip | Opis |
|---|---|---|
reference (path, obavezno) | string | Your external_reference. May contain '/' (e.g. 2026/ERP-7) — send it unencoded. |
Odgovori
200— The porudžbina and where it stands.401— Authentication failed. Codes: API_KEY_MISSING, API_KEY_INVALID, API_KEY_DISABLED, API_KEY_EXPIRED.402— Account inactive. Codes: SUBSCRIPTION_INACTIVE.403— Access refused. Codes: IP_NOT_ALLOWED, MODULE_NOT_ACTIVE, MARKET_NOT_SUPPORTED, INSUFFICIENT_SCOPE.404— TICKET_NOT_FOUND — no porudžbina of your integration with this reference.429— Rate limited. Codes: RATE_LIMITED.500— Unexpected failure. Codes: INTERNAL_ERROR.
Primer koda
curl
curl -X GET 'https://staging.api.ariapos.rs/api/v1/external/tickets/WC-10045' \
-H "Authorization: Bearer $KONTY_API_KEY" \
-H 'Accept: application/json'Primeri
200 — Closed, charged to the room
{
"data": {
"external_reference": "RS-2026-0042",
"status": "sent_to_room",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"name": "Pljeskavica",
"quantity": 2,
"unit_price": "650.00",
"total": "1300.00",
"note": "dobro pečeno"
},
{
"product_id": 31,
"name": "Mineralna voda",
"quantity": 1,
"unit_price": "200.00",
"total": "200.00",
"note": null
}
],
"total": "1500.00",
"reject_reason": null,
"document": {
"type": "room_charge",
"room": "214",
"number": null,
"fiscal_number": null,
"issued_at": "2026-10-27T19:40:03+00:00"
},
"created_at": "2026-10-27T19:02:11+00:00",
"updated_at": "2026-10-27T19:40:03+00:00"
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}200 — Closed with a receipt
{
"data": {
"external_reference": "RS-2026-0042",
"status": "paid",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"name": "Pljeskavica",
"quantity": 2,
"unit_price": "650.00",
"total": "1300.00",
"note": "dobro pečeno"
},
{
"product_id": 31,
"name": "Mineralna voda",
"quantity": 1,
"unit_price": "200.00",
"total": "200.00",
"note": null
}
],
"total": "1500.00",
"reject_reason": null,
"document": {
"type": "receipt",
"room": null,
"number": 118,
"fiscal_number": "9WM3LAJT-9WM3LAJT-5710",
"issued_at": "2026-10-27T19:38:44+00:00"
},
"created_at": "2026-10-27T19:02:11+00:00",
"updated_at": "2026-10-27T19:38:44+00:00"
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}200 — Refused by the venue
{
"data": {
"external_reference": "RS-2026-0042",
"status": "rejected",
"room": "214",
"guest": "Marko Petrović",
"note": "bez luka",
"items": [
{
"product_id": 12,
"name": "Pljeskavica",
"quantity": 2,
"unit_price": "650.00",
"total": "1300.00",
"note": "dobro pečeno"
},
{
"product_id": 31,
"name": "Mineralna voda",
"quantity": 1,
"unit_price": "200.00",
"total": "200.00",
"note": null
}
],
"total": "1500.00",
"reject_reason": "Kuhinja je zatvorena.",
"document": null,
"created_at": "2026-10-27T19:02:11+00:00",
"updated_at": "2026-10-27T19:05:30+00:00"
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}404 — Unknown reference
{
"error": {
"code": "TICKET_NOT_FOUND",
"message": "No porudžbina with this external_reference."
},
"request_id": "5b2f1c7e-8d3a-4f1b-9c2e-7a6d5e4f3b21"
}Odgovor: dokument
| Polje | Tip | Opis |
|---|---|---|
external_reference | string | |
country | Country | |
type | string (receipt | einvoice) | |
register_status | string | null | |
number | integer | null | |
total | string | |
tax_total | string | |
issued_at | string | null | |
fiscalized | boolean | Registered with the tax authority. false: kept as not fiscalized (register_status `failed`); Konty support follows it up. |
fiscal_error | FiscalError | Why a kept document is not fiscalized (202 only; GET does not repeat it). Konty support follows it up; the document's register_status stays `failed` until then. |
fiscal_error.code | string (FISCAL_REJECTED | FISCAL_SERVICE_UNAVAILABLE | FISCAL_STATUS_UNKNOWN) | |
fiscal_error.message | string | |
fiscal_error.details | object | |
voided | boolean | Cancelled in full (the API's void, a full cancel on the POS, or an e-invoice storno). |
corrected | boolean | Some correction exists (a partial one on the POS included). |
void | Void | Receipts: the corrective / refund that cancelled the document in full. Absent for an e-invoice (its storno is einvoice_status). |
void.fiscalized | boolean | Registered with the tax authority (false: kept, followed up by support). |
void.number | integer | null | |
void.total | string | |
void.issued_at | string | null | |
void.register_status | string | null | |
void.iic | string | null | ME |
void.fiscal_code | string | null | ME |
void.invoice_number | string | null | RS |
void.verification_url | string | null | RS |
void.journal | string | null | RS receipt: the legal receipt text VSDC signed, to hand to the buyer. |
iic | string | null | ME receipt |
fiscal_code | string | null | ME receipt |
verification_url | string | null | ME / RS receipt |
invoice_number | string | null | RS receipt |
invoice_counter | string | null | RS receipt |
sdc_date_time | string | null | RS receipt |
journal | string | null | RS receipt: the legal receipt text VSDC signed, to hand to the buyer. |
sales_invoice_id | integer | string | null | RS e-invoice |
einvoice_status | string | null | RS e-invoice |
Kodovi grešaka
| Kod | Opis |
|---|---|
API_KEY_MISSING | 401 — no Authorization: Bearer header. |
API_KEY_INVALID | 401 — unknown key, or a key of the other environment (aria_live_ vs aria_test_). |
API_KEY_DISABLED | 401 — the key was disabled in Konty Admin. |
API_KEY_EXPIRED | 401 — the key is past its expiry date. |
SUBSCRIPTION_INACTIVE | 402 — the Konty account is not active. |
IP_NOT_ALLOWED | 403 — the caller's IP is not on the key's whitelist. |
MODULE_NOT_ACTIVE | 403 — the account has no active External API module. |
MARKET_NOT_SUPPORTED | 403 — the account's market is not served (BA). |
INSUFFICIENT_SCOPE | 403 — the key lacks the route's scope (details.required_scope). |
NOT_FOUND | 404 — no document with this external_reference, or no such endpoint (a request without a key is answered API_KEY_MISSING first). |
TICKET_NOT_FOUND | 404 — no porudžbina of your integration with this external_reference. |
METHOD_NOT_ALLOWED | 405 — reserved. |
REGISTER_UNAVAILABLE | 409 — the key's cash register is inactive; bind another in Konty Admin. |
USER_UNAVAILABLE | 409 — the key's user is inactive; bind another in Konty Admin. |
SHIFT_CLOSED | 409 — the key's regular cash register has no open shift. |
VSDC_CERTIFICATE_MISSING | 409 — RS: no valid VSDC certificate stored (details.certificate: missing | expired). |
FISCAL_SETUP_INCOMPLETE | 409 — the account's fiscal setup would make the tax authority refuse the document; nothing was stored. details.reason: fiscalization_disabled | certificate_missing | certificate_expired | venue_identity_missing | tcr_missing | operator_code_missing | operator_code_refused (ME: the tax authority refused the operator code of the key's user) | day_deposit_missing (ME, cash or card payment on a regular register) | einvoice_api_key_missing (RS e-invoice). Fixed in Konty Admin, then resend. |
DUPLICATE_REFERENCE | 409 — this external_reference was already used (details.order: the document it names; never resend under a new reference). |
VOID_NOT_ALLOWED | 409 — the document cannot be voided (details.register_status; details.reason: already_voided (details.order: the document with its void) | already_corrected | not_registered | is_a_correction | einvoice_status | already_storno, or the business rule that refused the corrective). |
VALIDATION_ERROR | 422 — the request is not valid (details.errors: field → messages). |
PRODUCT_NOT_FOUND | 422 — no sellable product for an item (details.item_index). |
PRODUCT_TAX_MISMATCH | 422 — a described item's code belongs to a product with another tax rate (details.product_tax_rate, details.product_tax_rate_label). |
PRODUCT_IDENTIFIER_TAKEN | 422 — a described item's gtin or barcode belongs to another product, or its code is held by a product deleted before codes were freed or (with scales) differs from another product's only by leading zeros (details.field, details.product_id). |
TAX_RATE_NOT_FOUND | 422 — no tax rate of the venue has a described item's tax_rate (and tax_rate_label). |
TAX_RATE_AMBIGUOUS | 422 — several of the venue's tax rates have a described item's tax_rate; send tax_rate_label (details.labels). |
CLIENT_NOT_FOUND | 422 — client.id does not exist. |
COUNTRY_MISMATCH | 422 — expect_country differs from the account's country (details.country). |
PAYMENT_TOTAL_MISMATCH | 422 — payments do not add up to the order total (details.order_total, details.payments_total). |
PERIOD_TOO_LONG | 422 — GET /orders: `to` is more than one month after `from` (details.max_to). |
ORDER_REJECTED | 422 — the order was refused by a business rule (details.reason). |
RATE_LIMITED | 429 — too many requests for the key (its rate limit) or from one IP (3000 a minute across the API); see the Retry-After header. |
HTTP_ERROR | 4xx/5xx — another HTTP-level refusal. A 503 is maintenance: the service is temporarily unavailable and nothing was stored; send the same request again later (after the Retry-After header, when present). |
INTERNAL_ERROR | 500 — unexpected failure; quote the request_id to support. |
FISCAL_REJECTED | the tax authority rejected the document. As fiscal_error of a 202 (the document is kept as not fiscalized; Konty support follows it up), or a 502 for an e-invoice storno. |
FISCAL_SERVICE_UNAVAILABLE | the tax authority could not be reached. As fiscal_error of a 202 (kept, followed up by support), or a 502 when nothing was stored (the day's opening deposit, an e-invoice storno); resending is safe then. |
FISCAL_STATUS_UNKNOWN | the tax authority's answer was lost. As fiscal_error of a 202 (kept, followed up by support), or a 502 for an e-invoice storno. |
REGISTER_BUSY | 503 — POST /orders and POST /orders/{reference}/void: the key's cash register is issuing other documents and this request got no turn within 10 seconds. No document was stored; send the same request, with the same external_reference, after the Retry-After header. |