Software di Fiscalizzazione
Versione 2.3.1 | Aggiornato: 04/2026
Questo documento fornisce una guida completa per l'integrazione con il sistema easyPos. Sono supportati due metodi principali:
easyPos è un software di fiscalizzazione per fatture normali e semplici in Albania. Questa guida dimostra come integrare con easyPos utilizzando l'integrazione basata su file o chiamate RESTful API.
http://[server-ip]:port/v1/...Content-Type: application/json Authorization: [your-authorization-string]| Method | Endpoint | Descrizione |
|---|---|---|
GET | /v1 | Test connessione |
POST | /v1/invoices/new | Crea fattura/e |
GET | /v1/invoices | Ottieni tutte le fatture |
GET | /v1/invoices/:id | Ottieni singola fattura |
GET | /v1/operators | Ottieni operatori |
GET | /v1/entities | Ottieni entità |
GET | /v1/balance | Ottieni saldo cassa |
POST | /v1/balance/initiate | Riporta saldo iniziale |
POST | /v1/balance/deposit | Deposito |
POST | /v1/balance/withdraw | Prelievo |
{
"status": 0,
"response": {
"nslf": "C352A1442630779BD016323CB4765331",
"nivf": "19d7cf18-9f2f-4501-b0d1-48830dfc0750",
"link": "https://efiskalizimi-app.tatime.gov.al/...",
"text": "Sukses"
}
}status: 0 = Successo, 1 = Errore, 2 = In attesanslf: NSLF - Contatore Interno Fattura (IIC)nivf: NIVF - Numero Fiscale Fattura (FIC)link: URL verifica fatturaInserire i file JSON nella directory monitorata. easyPos li elaborerà automaticamente.
Quando si utilizza l'integrazione file JSON, il campo "app" è CONSIGLIATO per identificare l'applicazione/fonte di integrazione.
{
"app": "",
"articles": [
{
"articleId": "ART001",
"vatCode": "B",
"name": "Product",
"soldIn": "cope",
"price": 500,
"units": 2
}
]
}{
"app": "",
"buyer": {
"buyerIDType": "NUIS",
"buyerIDNum": "L12345678A",
"buyerName": "Test Company",
"buyerAddress": "Test Street 123",
"buyerTown": "Tirana",
"buyerCountry": "ALB"
},
"articles": [
{
"articleId": "ART001",
"vatCode": "B",
"name": "Service",
"soldIn": "cope",
"price": 1000,
"units": 1
}
]
}easyPos supporta due formati file TXT per l'integrazione con dispositivi fiscali legacy:
CLEAR
KEY REG
SALE DPT=1,QTY=1,PRICE=500,DES='Product'
SALE DPT=1,QTY=2,PRICE=300,DES='Service'
SUBTOT
CLOSE TENDER=1Il formato IVA utilizza una sintassi strutturata basata su righe con prefissi specifici:
Fattura Base:
H,1,______,_,__;
S,1,______,_,__;"Artikull";500.00;2.00;1;1;1;
T,1,______,_,__;
F,1,______,_,__;Fattura con Acquirente (NUIS):
H,1,______,_,__;
B,1,______,_,__;"NUIS";"L00000000B";"Buyer Name";"Address";"Tirane";"ALB";
S,1,______,_,__;"Artikull";500.00;2.00;1;1;1;
T,1,______,_,__;
F,1,______,_,__;Pagamento Carta:
H,1,______,_,__;
$ISWITHCARD=1
S,1,______,_,__;"Artikull";500.00;2.00;1;1;1;
T,1,______,_,__;
F,1,______,_,__;Con Sconto:
H,1,______,_,__;
S,1,______,_,__;"Product";150.00;2.00;1;1;2;
C,1,______,_,__;2;15.0;
T,1,______,_,__;
F,1,______,_,__;H - Intestazione (inizio fattura)B - Informazioni acquirenteS - Riga vendita (articolo)C - Sconto/ribasso per riga precedenteP - Note fatturaOP - Codice operatoreT - TotaleF - Piè di pagina (fine fattura)| Valore | Categoria | Descrizione |
|---|---|---|
| BANKNOTE | CASH | Contanti |
| CARD | CASH | Carta |
| CHECK | CASH | Assegno |
| SVOUCHER | CASH | Voucher |
| COMPANY | CASH | Azienda |
| ACCOUNT | NONCASH | Bonifico bancario |
| FACTORING | NONCASH | Factoring |
| COMPENSATION | NONCASH | Compensazione |
| KIND | NONCASH | Pagamento in natura (clearing) |
| OTHER | NONCASH | Altro, non contanti |
Per l'integrazione file JSON, utilizzare questi tipi di pagamento semplificati:
CASH - Pagamento contantiCARD - Pagamento cartaACCOUNT - Bonifico bancario (richiede bankDetails)CHECK - Pagamento assegnoOTHER - Altro pagamento non contanti{
"app": "",
"articles": [
{
"articleId": "ART001",
"vatCode": "B",
"name": "Product",
"soldIn": "cope",
"price": 500,
"units": 2
}
],
"payment": {
"type": "OTHER"
}
}| Codice | Aliquota | Descrizione |
|---|---|---|
| A | 0% | Esente (TAX_FREE) |
| B | 20% | Aliquota standard |
| C | 0% | Esenzione Tipo 2 |
| D | 10% | Aliquota ridotta |
| E | 6% | Aliquota ridotta |
| J | 0% | Esportazione merci |
| Valore | Descrizione |
|---|---|
| NUIS | NIPT (Codice Fiscale) |
| ID | Numero carta d'identità |
| PASS | Numero passaporto |
| VAT | Numero IVA |
| TAX | Numero fiscale |
| SOC | Numero previdenza sociale |
| Tipo | Descrizione |
|---|---|
| (default) | Fattura vendita standard |
| ORDER | Ordine |
| CANCEL | Annullamento fattura |
| CORRECTIVE | Fattura correttiva |
| SUMMARY | Fattura riepilogativa |
| EXCHANGE | Cambio valuta |
{
"app": "",
"articles": [
{
"articleId": "ART001",
"vatCode": "B",
"name": "Product",
"soldIn": "cope",
"price": 1000,
"units": 1
}
],
"payment": [
{ "type": "CASH", "amount": 600 },
{ "type": "CARD", "amount": 400 }
]
}{
"app": "",
"currency": {
"code": "EUR",
"exRate": 100.5
},
"articles": [
{
"articleId": "ART001",
"vatCode": "B",
"name": "Product",
"soldIn": "cope",
"price": 50,
"units": 2
}
],
"payment": { "type": "CASH" }
}{
"app": "",
"invoiceType": "CANCEL",
"iicRef": "3CA552F6475201847CF63E3499E74727"
}{
"app": "",
"buyer": {
"buyerIDType": "NUIS",
"buyerIDNum": "L12345678A",
"buyerName": "Company",
"buyerTown": "Tirana",
"buyerCountry": "ALB"
},
"articles": [
{
"articleId": "ART001",
"vatCode": "B",
"name": "Service",
"soldIn": "cope",
"price": 5000,
"units": 1
}
],
"payment": {
"type": "ACCOUNT",
"bankDetails": {
"country": "Albania",
"countryCode": "AL",
"currency": "ALL",
"idNumber": "AL123456789012345678"
}
}
}{
"app": "",
"articles": [
{
"articleId": "PROD001",
"vatCode": "B",
"name": "Product with % Discount",
"soldIn": "cope",
"price": 1000,
"units": 5,
"rebate": {
"inPercentage": 10
}
}
],
"payment": { "type": "CASH" }
}Per testare l'integrazione, richiedere un account demo allo staff di supporto.
© ESDP - easyPos Guida all'Integrazione v2.3.1