Ky dokument ofron udhëzime të plota për integrimin me sistemin easyInvoice. Suportohen dy metoda kryesore:
easyInvoice është një sistem faturash elektronike i projektuar për transaksionet B2B dhe përputhshmërinë fiskale në Shqipëri. Ky udhëzues demonstron si të integroheni me easyInvoice duke përdorur integrimin me skedarë ose thirrjet RESTful API.
http://[server-ip]:port/v1/...Content-Type: application/json
Authorization: [your-authorization-string]| Method | Endpoint | Përshkrimi |
|---|---|---|
GET | /v1 | Testo lidhjen |
POST | /v1/invoices/new | Krijo faturë(a) |
GET | /v1/invoices | Merr të gjitha faturat |
GET | /v1/invoices/:id | Merr një faturë |
GET | /v1/operators | Merr operatorët |
GET | /v1/entities | Merr entitetet |
Dokumentacioni Postman:https://documenter.getpostman.com/view/21155107/2sB3WwpxEr
{
"status": 0,
"response": {
"nslf": "9F01C3580F765D733529ED8C2822CA81",
"nivf": "9775c78c-1363-4469-9b26-e9a19204a0a4",
"eic": "aae0770c-0e44-4a0a-b8d1-004c2a6eacf4",
"link": "https://efiskalizimi-app.tatime.gov.al/invoice-check/...",
"text": "Sukses"
},
"docId": "0384a667-ea97-4e53-9e8e-5a234162ca42"
}status: 0 = Success, 1 = Errornslf: IIC (Internal Invoice Counter) nivf: FIC (Fiscal Invoice Counter) eic: EIC (Electronic Invoice Counter) link: Invoice verification URLVendosni skedarët JSON në dosjen e monitoruar. easyInvoice do t'i përpunojë automatikisht.
{
"operatorCode": "gh537ez280",
"buyer": {
"buyerIDType": "NUIS",
"buyerIDNum": "K00000000A",
"buyerName": "GENERAL DIRECTORATE OF TAXES",
"buyerAddress": "Rruga Gjin Bue Shpata",
"buyerTown": "Tirana",
"buyerCountry": "ALB"
},
"articles": [
{
"articleId": "1412134",
"vatCode": "B",
"name": "Water",
"soldIn": "cope",
"price": 150,
"units": 195
}
],
"bankDetails": {
"country": "Albania",
"countryCode": "AL",
"currency": "ALL",
"idNumber": "AL70202310040000000011237412"
}
}operatorCode - Required for all invoices buyer - Required with valid NUIS bankDetails - Required for ACCOUNT payment docId - Recommended (UUIDv4){
"app": "your-app-name",
"operatorCode": "gh537ez280",
"buyer": {
"buyerIDType": "NUIS",
"buyerIDNum": "K00000000A",
"buyerName": "GENERAL DIRECTORATE OF TAXES",
"buyerAddress": "Rruga Gjin Bue Shpata",
"buyerTown": "Tirana",
"buyerCountry": "ALB"
},
"articles": [
{
"articleId": "1412134",
"vatCode": "B",
"name": "Water",
"soldIn": "cope",
"price": 150,
"units": 195
},
{
"articleId": "2412412",
"vatCode": "B",
"name": "Cola",
"soldIn": "cope",
"price": 200,
"units": 120
}
],
"bankDetails": {
"country": "Albania",
"countryCode": "AL",
"currency": "ALL",
"idNumber": "AL70202310040000000011237412"
},
"paymentDeadline": "2025-01-28",
"supplyPeriod": {
"start": "2025-01-01",
"end": "2025-01-28"
},
"invoiceNotes": "Test note"
}"payment": [
{
"type": "FACTORING",
"amount": 23500
},
{
"type": "ACCOUNT",
"bankDetails": [{
"country": "Albania",
"countryCode": "AL",
"currency": "ALL",
"idNumber": "AL70202310040000000011237412"
}],
"amount": 35600
}
]{
"invoices": [{
"docId": "ab4f61ac-d812-4939-80f3-e964fd1a041a",
"operatorCode": "gh537ez280",
"invoiceType": "CANCEL",
"iicRef": "3A0029767862ACE2DDCB70C2E4363C09"
}]
}| Fusha | Lloji | Përshkrimi |
|---|---|---|
| bankDetails | objekt | Detajet bankare të shitësit |
| paymentDeadline | string | Afati i pagesës (YYYY-MM-DD) |
| supplyPeriod | objekt | Periudha e furnizimit (start, end) |
| invoiceNotes | string | Shënime të faturës |
| Lloji | Kategoria | Përshkrimi |
|---|---|---|
ACCOUNT | NONCASH | Transfertë bankare |
FACTORING | NONCASH | Faktoring |
COMPENSATION | NONCASH | Kompensim |
KIND | NONCASH | Pagesë në natyrë (klering) |
OTHER | NONCASH | Të tjera, pa para në dorë |
{
"app": "your-app-name",
"invoiceType": "WTN",
"articles": [
{
"articleId": "12344412",
"name": "Water",
"soldIn": "cope",
"cost": 50.4121,
"units": 10.192
},
{
"articleId": "2341234",
"name": "Bread",
"soldIn": "cope",
"cost": 150.245,
"units": 3.142
}
],
"wtnOptions": {
"transaction": "TRANSFER",
"vehicleOwnership": "OWNER",
"vehiclePlate": "AA293BB",
"startPoint": "STORE",
"startAddress": "Lunder",
"startCity": "Tirana",
"startDate": "2025-01-12",
"startTime": "22:55",
"destinationPoint": "STORE",
"destinationCity": "Durres",
"destinationAddress": "Test Street",
"destinationDate": "2025-01-14",
"destinationTime": "21:32",
"areGoodsFlammable": true,
"isEscortRequired": false,
"packagingType": "Box",
"packagesNumber": "24",
"itemsNumber": "12"
}
}| Fusha | Vlerat e mundshme | Përshkrimi |
|---|---|---|
| transaction | TRANSFER, SALE, EXAMINATION, DISPOSAL, RETURN | Lloji i transaksionit |
| vehicleOwnership | OWNER, THIRD_PARTY | Pronësia e automjetit |
| startPoint | STORE, WAREHOUSE, OTHER | Pika e nisjes |
| destinationPoint | STORE, WAREHOUSE, OTHER | Pika e mbërritjes |
| Fusha | Përshkrimi | Shembull |
|---|---|---|
| country | Emri i vendit | Albania |
| countryCode | Kodi ISO 2-shkronjësh | AL |
| currency | Kodi i monedhës | ALL, EUR |
| idNumber | IBAN | AL70202310040000000011237412 |
"supplyPeriod": {
"start": "2025-01-01",
"end": "2025-01-28"
}| Kodi | Lloji | Mesazhi |
|---|---|---|
| E1000 | NOT_FOUND_ERROR | Resursi nuk u gjet |
| E1001 | ALREADY_EXISTS_ERROR | Resursi ekziston |
| E1002 | FIELDS_VALIDATION_ERROR | Problem në validimin e fushave |
| E1300 | INVOICE_ERROR | Nuk u krijua fatura |
| E9800 | CIS_ERROR | Gabim nga CIS |
Për të testuar integrimin, kërkoni një llogari demo nga stafi i mbështetjes.
© ESDP - easyInvoice Udhëzues integrimi v2.3.0