Skip to content

Issue, read and void ​

Products ​

GET /products?search=&page=&per_page= returns sellable products with id, code, barcode, gtin, name, unit, tax_rate, the catalogue price (tax-inclusive, informational) and quantity — the venue's stock of the product, all warehouses together (null for a product made from ingredients). Tax rates come from GET /tax-rates, clients from GET /clients (scope clients:read).

An order item names its product by exactly one of product_id, code, barcode, gtin.

Products from your system ​

If your products live in your own system, describe them in the item: send your product code (code), its name (name) and its tax rate in percent (tax_rate), and no product_id.

json
"items": [
  { "code": "SKU-4471", "name": "Club sandwich", "tax_rate": 20, "quantity": 1, "unit_price": 850 },
  { "code": "SKU-0001", "name": "Delivery", "tax_rate": 0, "tax_rate_label": "Г", "quantity": 1, "unit_price": 200 }
]
  • The product is looked up by its code, even when it is not sold on the POS (letter case and accents are ignored: ABC finds abc). If it does not exist and the key has the catalog:write scope, it is created — with your name, tax rate, unit (unit, default pcs) and, when sent, gtin (8–14 characters) and barcode. A refused document leaves no product behind. Without the scope: 422 PRODUCT_NOT_FOUND.
  • The API never changes an existing product (edits in Konty Admin stay), but its tax rate must be the one you send — otherwise 422 PRODUCT_TAX_MISMATCH, and nothing is issued.
  • tax_rate must match exactly one of the account's rates (GET /tax-rates). Where several rates share a value — typically 0 % — add tax_rate_label: 422 TAX_RATE_AMBIGUOUS lists the labels, and 422 TAX_RATE_NOT_FOUND means no rate fits.
  • A gtin or barcode another product already has: 422 PRODUCT_IDENTIFIER_TAKEN.
  • An item without all of code, name and tax_rate (or with a product_id) is a normal one: name, tax_rate, tax_rate_label and unit are ignored on it.

Issuing ​

http
POST /api/v1/external/orders
Content-Type: application/json

{
  "external_reference": "WC-10045",
  "type": "receipt",
  "items": [{ "code": "SKU-1", "quantity": 2, "unit_price": 12.50 }],
  "payments": [{ "method": "card", "amount": 25.00 }]
}

type is receipt or einvoice (Serbia only). A 201 returns the fiscalized document:

  • Montenegro receipt — iic, fiscal_code and verification_url;
  • Serbia receipt — invoice_number, invoice_counter, verification_url, sdc_date_time and journal (the receipt text to hand to the buyer);
  • Serbia e-invoice — sales_invoice_id and einvoice_status.

Prices ​

  • unit_price is the tax-inclusive price per unit and is issued exactly as sent, with your discount_percent. No price list or client discount is applied.
  • The tax rate always comes from the product in Konty; you cannot send one.
  • In Montenegro a price of 0 is refused (EFI rule).
  • A diplomat client is VAT-exempt: send your normal price — Konty issues it without the product's VAT, as the POS does, and the payments must match that total.
  • With inventory accounting on, a price different from the catalogue or a discount creates a price leveling, as on the POS.

Payments ​

payments must add up to the order total (2 decimals); otherwise the API answers 422 PAYMENT_TOTAL_MISMATCH with the exact total in details.order_total.

MarketReceipt payment methods
Montenegrocash, card, card_business, invoice, other
Serbiacash, card, invoice, check, voucher, mobile_money, other

In Serbia, a card payment on a register whose settings take no cards is refused (payments.N.method: register_takes_no_cards).

Client ​

client is optional for receipts. Send { "id": 42 } or an identity: Konty uses the most recent client with the same id_type and id_number and never updates it; otherwise it creates one. A client Konty does not know yet needs a name (422 VALIDATION_ERROR on client.name without it). A Montenegrin buyer needs a name and an id; a Serbian e-invoice needs a company with PIB and registration number (registration_number). On a receipt, id_type must be one the market's tax authority knows: in Montenegro tax_id_number, personal_id_number, passport_number, vat_number, tax_number or social_security_number; in Serbia tax_id_number_local (PIB), personal_id_number_local and the other Serbian types, or a domestic buyer's tax_id_number. Another type is refused with 422 VALIDATION_ERROR on client.id_type before the document or its client is created. A tax_id_number sent without id_type is the buyer's tax ID: in Serbia a PIB (tax_id_number_local, 10: on the receipt), or a foreign tax ID (tax_id_number_foreign, 40:) when country is another country; in Montenegro a TIN (tax_id_number), or a TAX number (tax_number) when country is not MNE. A client Konty already has with that tax ID is used as it is. Client names are unique: when another client already has the name, it is used if it has the same tax ID or id number (tax_id_number or id_number); otherwise 422 VALIDATION_ERROR on client.name. country is an ISO 3166-1 alpha-3 code (SRB, MNE, DEU); RS, ME, BA, MK and AL are read as alpha-3, and any other value that is not three letters is refused with 422 VALIDATION_ERROR on client.country.

E-invoice (Serbia) ​

With type: einvoice you may send einvoice.due_date, einvoice.vat_obligation and einvoice.delivery_date; with vat_obligation by_due_date, due_date is required. An account that issues e-invoices only refuses fiscal receipts (422).

Retries ​

external_reference (up to 64 characters; letters, digits, ., _, -, and / between segments) identifies the order within your integration:

You sendYou get
a new reference201 — issued (202 — kept, not fiscalized)
a used reference (same body or not)409 DUPLICATE_REFERENCE — nothing is issued; details.order is the existing document
two requests with one reference at onceone document; the other request gets 409 DUPLICATE_REFERENCE with it

One reference is one document. A rotated key keeps the integration name, so the same holds across rotations.

Tip

After a timeout or a lost response, call GET /orders/{reference}: a document means it was issued, 404 means it was not — only then send the request again. 409 DUPLICATE_REFERENCE means the document exists: never send the same sale under a new reference, that would be a second fiscal document.

Reading ​

GET /orders/{reference} returns the same document as issuing, or 404 NOT_FOUND. References with / go unencoded: GET /orders/2026/ERP-7.

Voiding ​

POST /orders/{reference}/void with { "reason": "…" }:

  • Montenegro receipt → a full-cancel corrective receipt;
  • Serbia receipt → a refund receipt (reason "error": the venue is named as buyer);
  • Serbia e-invoice → storno in SEF.

A repeated void answers 409 VOID_NOT_ALLOWED (already_voided) with the document and its void in details.order. A document corrected on the POS, not fiscalized or itself a correction answers 409 VOID_NOT_ALLOWED. Voids are always full; partial returns are not available. In the answer voided marks a full cancel, and void carries the corrective / refund.

Konty POS for hospitality and retail: konty.com