« All modules

Fiscal Receipts

Bonuri fiscale (cash register receipts).

Filters on list endpoints are URL path segments, not query strings — see Conventions. The Swagger tester works best for JSON body endpoints.
GET /fiscalreceipts/list/ List fiscal receipts (bonuri fiscale)

Returns a paginated list of fiscal receipts issued from the ECR (electronic cash register).

Standard filters: year, yearmonth, yearmonthday, date, modifiedafter, modifiedthrough, id, minid, page.

Custom filters:
- bv_id — receipts attached to one sale
- raport_z_nr — receipts in one Z report
- pl_id — receipts issued at one workpoint
- statie_id — receipts from one cash register station
- status_id0=cancelled, 1=not printed, 2=in process, 3=printed

Include: items, printer_responses.

Responses

StatusDescription
200 OK — response uses the shared envelope.
400 Request is malformed or a required field is missing / invalid.
401 Missing or invalid Basic Auth credentials.
GET /payments/fiscalreceipt/ Schema for POSTing fiscal receipts

Returns a plain-text schema showing the expected shape of the POST payload for attaching one or more fiscal receipts to sales.

Responses

StatusDescription
200 Schema description (text/html).
POST /payments/fiscalreceipt/ Attach fiscal receipts to sales (batch)

Registers one or more fiscal receipts and their payments against existing sales.

Effect on the sale:
- Deletes all existing payments (incasari) on the sale.
- Creates new payments based on the fiscal receipt totals (cash, card, voucher, food stamps, modern, other).
- If an invoice exists on the sale, it must have the same date as the fiscal receipt.

Request body (JSON)

{
    "receipts": [
        {
            "pos_receipt_id": 1,
            "bv_id": 198,
            "status_id": 3,
            "bf_date": "2025-05-05",
            "bon_nr": 145,
            "z_nr": 2,
            "paid_cash": 10,
            "paid_card": 5,
            "paid_foodstamp": 14,
            "paid_voucher": 44,
            "paid_modern_payment": 30,
            "paid_other_payment": 0,
            "print_confirmed_ts": "2025-05-05 12:00:00",
            "reimport_existing_bf": 0
        }
    ]
}

Responses

StatusDescription
200 OK — response uses the shared envelope.
400 Request is malformed or a required field is missing / invalid.
401 Missing or invalid Basic Auth credentials.

This page is generated from openapi.json.