Selling online · 6 min
API quickstart: your first fiscal receipt
A web shop or an app fiscalises a sale with one HTTPS call. The answer comes at once with the receipt and its QR code, and ATK's confirmation follows within moments.
Get a test key
- Sign in to your sandbox account and open Integrations.
- Add an integration for your shop and issue a test key. It starts with
fx_test_and is shown once, so store it safely. - Send it with every call:
Authorization: Bearer fx_test_…
Note. Keys are stored only as hashes. If you lose one, revoke it and issue a new one.
Send a sale
POST https://sandbox.fiskalix.com/api/v1/receipts with a JSON body. Amounts are decimal text and the payments must add up to the total.
reference: your own order number. Sending the same reference again returns the same receipt, so a retry can never double-fiscalise.items:name,unit_price,quantity,vat(A, C, D or E), and optionallyunit,categoryanddiscount.payments: typecash,card,voucher,cheque,cryptoorother, with the amount.operator: who made the sale.
Note. Example body: {"reference":"ORDER-1001","operator":"webshop","items":[{"name":"Cotton shirt","unit_price":"19.95","quantity":"1","vat":"E"}],"payments":[{"type":"card","amount":"19.95"}]}
Read the receipt
The answer contains the receipt with its QR and a status. It starts as queued and turns to accepted within a moment, when ATK confirms and returns its transaction number. GET /api/v1/receipts/{id} reads it again at any time. A rejected receipt keeps its status and is never edited or deleted.
Instead of polling: webhooks
Register an endpoint with POST /api/v1/webhooks and choose events such as receipt.accepted, receipt.rejected, delivery.sent and delivery.failed. The secret is shown once. Each call carries a signature header, X-Fiskalix-Signature: compute HMAC-SHA256 of the timestamp, a dot and the body with your secret, compare, and reject timestamps older than five minutes. Answer with a 2xx status within ten seconds, or FISKALIX retries after 1, 5 and 30 minutes and then 2, 6 and 24 hours.
Platforms and live
A platform that acts for several merchants adds "merchant": "<NUI>" to every call. For live, use app.fiskalix.com and a fx_live_ key after verification.
Written for the FISKALIX panel as of November 2026. Screens and button names may change; tell us if a step no longer matches.
Try it on a test account
Open a test account, issue a few test receipts and follow the guide with real numbers.