---
title: "Raporti i faturave shoqeruese"
operation_id: "api.v1.reports.wtn"
method: GET
path: "/api/v1/reports/wtn"
group: "Raportet"
api_version: "v1"
authenticated: true
canonical: "https://fature.al/api-reference/endpoints/api-v1-reports-wtn.html"
---

# Raporti i faturave shoqeruese

Part of the [fature.al API](/api-reference/index.html) documentation.

## GET /api/v1/reports/wtn

Fletet shoqeruese te periudhes, te grupuara sipas gjendjes fiskale, bashke me destinacionet e
perdorura dhe vleren e mallit qe ka levizur.

Nje flete e pafiskalizuar ketu eshte gje qe kerkon vemendje: malli ka levizur pa dokumentin qe
ligji kerkon.     *
`from` dhe `to` jane te detyrueshme, ne formatin `YYYY-MM-DD`, dhe periudha kthehet e
konfirmuar ne `period` te pergjigjes.

Full URL: `https://fature.al/api/v1/reports/wtn`

API version: `v1`.

Authentication: required (bearer token).

### Query parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | string<date> | yes | Data e fillimit, e perfshire. |
| `to` | string<date> | yes | Data e perfundimit, e perfshire. |

### Example request

```bash
curl -X GET 'https://fature.al/api/v1/reports/wtn?from=2026-01-01&to=2026-01-31' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'X-Client-Id: YOUR_CLIENT_ID' \
  -H 'X-Client-Secret: YOUR_CLIENT_SECRET' \
  -H 'Accept: application/json'
```

### Responses

**200** — OK

| Field | Type | Description |
| --- | --- | --- |
| `status` | boolean |  |
| `data` | object |  |
| `data.period` | object |  |
| `data.period.from` | string | Start date (YYYY-MM-DD), inclusive |
| `data.period.to` | string | End date (YYYY-MM-DD), inclusive |
| `data.totals` | object |  |
| `data.totals.count` | integer |  |
| `data.totals.value_of_goods` | number |  |
| `data.by_status` | array |  |
| `data.by_status[].status` | string, nullable |  |
| `data.by_status[].count` | integer |  |
| `data.by_status[].value_of_goods` | number |  |
| `data.unique_destinations` | integer |  |
| `data.destinations` | array |  |

```json
{
    "status": true,
    "data": {
        "period": {
            "from": "from",
            "to": "to"
        },
        "totals": {
            "count": 3,
            "value_of_goods": 19.99
        },
        "by_status": [
            {
                "status": "status",
                "count": 3,
                "value_of_goods": 19.99
            }
        ],
        "unique_destinations": 1,
        "destinations": [
            "destinations"
        ]
    }
}
```

**422** — Datat mungojne ose nuk jane ne formatin YYYY-MM-DD.

| Field | Type | Description |
| --- | --- | --- |
| `success` | boolean | Always false |
| `message` | string | A single summary line, the same for every validation failure |
| `errors` | object | The failing fields, each with the messages for it. Dotted keys point into nested objects and array items, e.g. `lines.0.quantity` |

```json
{
    "success": true,
    "message": "Hello there",
    "errors": []
}
```

**429** — Kufiri i kerkesave u arrit: 30 raporte ne minute.

| Field | Type | Description |
| --- | --- | --- |
| `status` | boolean | Always false. A successful response carries `status: true` and a `data` object instead |
| `message` | string | The exception message. Empty when the failure carries no exception of its own |
| `errors` | array | Messages to show the operator or to log. Absent when the failure has nothing to add beyond `message` |

```json
{
    "status": true,
    "message": "Hello there",
    "errors": [
        "errors"
    ]
}
```
