GET
/api/v1/invoice/wtn
Requires authentication
Rate limited by the `api-global` limiter
v1
Send a bearer token in the Authorization header.
Merr listen e faturave shoqeruese me faqosje dhe filtrim sipas datave.
Faqezohet me limit dhe offset. pagination kthen vetem numeruesit e faqes, pa nje total,
prandaj ndaloni kur nje faqe vjen me e shkurter se limit.
Full URL: https://fature.al/api/v1/invoice/wtn
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| limit | integer | no | Numri i faturave per faqe. Defaults to `20`. |
| offset | integer | no | Nga cila fature te fillohet. Defaults to `0`. |
| fromDate | string | no | Data e fillimit (YYYY-MM-DD). |
| toDate | string | no | Data e perfundimit (YYYY-MM-DD). |
Responses
200 OK
| Field | Type | Description |
|---|---|---|
| status | boolean | |
| message | any |
Example request
curl -X GET 'https://fature.al/api/v1/invoice/wtn' \
-H 'Authorization: Bearer YOUR_TOKEN' \
-H 'X-Client-Id: YOUR_CLIENT_ID' \
-H 'X-Client-Secret: YOUR_CLIENT_SECRET' \
-H 'Accept: application/json'
use Illuminate\Support\Facades\Http;
$response = Http::withHeaders([
'Authorization' => 'Bearer YOUR_TOKEN',
'X-Client-Id' => 'YOUR_CLIENT_ID',
'X-Client-Secret' => 'YOUR_CLIENT_SECRET',
'Accept' => 'application/json',
])->get('https://fature.al/api/v1/invoice/wtn');
$data = $response->json();
use GuzzleHttp\Client;
$client = new Client();
$response = $client->request('GET', 'https://fature.al/api/v1/invoice/wtn', [
'headers' => [
'Authorization' => 'Bearer YOUR_TOKEN',
'X-Client-Id' => 'YOUR_CLIENT_ID',
'X-Client-Secret' => 'YOUR_CLIENT_SECRET',
'Accept' => 'application/json',
],
]);
$data = json_decode((string) $response->getBody(), true);
const response = await fetch('https://fature.al/api/v1/invoice/wtn', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_TOKEN',
'X-Client-Id': 'YOUR_CLIENT_ID',
'X-Client-Secret': 'YOUR_CLIENT_SECRET',
'Accept': 'application/json'
}
});
const data = await response.json();
Example response
{
"status": false,
"message": "Hello there"
}