fature.al eshte platforma e faturimit dhe fiskalizimit per bizneset ne Shqiperi. Hap nje llogari
Skip to content
fature.al API Menu

Mbyll balancen e arkes

POST /api/v1/cash-register/close-balance Requires authentication Rate limited by the `api-global` limiter v1

Send a bearer token in the Authorization header.

Mbyll diten ne arken fiskale dhe regjistron veprimin CLOSE_DAY.

Nese arka nuk eshte e hapur, hapet vete me balance 0 dhe mbyllet menjehere. Kjo do te thote se thirrja nuk deshton kurre sepse dita nuk u hap, prandaj mund ta thirrni ne fund te turnit pa kontrolluar me pare gjendjen.

Per shifrat e turnit qe sapo u mbyll perdorni raportin e mbylljes se arkes.

Full URL: https://fature.al/api/v1/cash-register/close-balance

Responses

200 Kur perdoruesi nuk ka pajisje fiskale ose mbyllja deshton, pergjigja kthehet me HTTP 200 dhe `status: false`.

201 Created

Field Type Description
status boolean
data object
data.balance number

Example request

cURL
curl -X POST 'https://fature.al/api/v1/cash-register/close-balance' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'X-Client-Id: YOUR_CLIENT_ID' \
  -H 'X-Client-Secret: YOUR_CLIENT_SECRET' \
  -H 'Accept: application/json'
PHP (Laravel)
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',
])->post('https://fature.al/api/v1/cash-register/close-balance');

$data = $response->json();
PHP (Guzzle)
use GuzzleHttp\Client;

$client = new Client();

$response = $client->request('POST', 'https://fature.al/api/v1/cash-register/close-balance', [
    '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);
JavaScript
const response = await fetch('https://fature.al/api/v1/cash-register/close-balance', {
  method: 'POST',
  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

201
{
    "status": true,
    "data": {
        "balance": 19.99
    }
}

Regjistrimi eshte falas.

Regjistrohu ne fature.al

This page as Markdown, or the whole API as OpenAPI.