Firma, balík a API kľúč
/meÚdaje firmy, ktorej patrí API kľúč, balík a stav predplatného, funkcie balíka, limity (vystavené doklady tento mesiac, bezplatné e-faktúry cez EasyPoštár, limit požiadaviek) a informácie o použitom kľúči vrátane oprávnení. Funguje s ľubovoľným platným kľúčom bez ohľadu na oprávnenia – ideálne na test spojenia. read_only: true znamená, že predplatné vypršalo a zápis vráti 403 subscription_inactive.
Odpovede
curl "https://easyfaktury.sk/api/v1/me" \
-H "Authorization: Bearer $EASYINVOICE_API_KEY" \
-H "Accept: application/json"Príklad odpovede
{
"data": {
"company": {
"id": 42,
"name": "Tatra Digital s.r.o.",
"ico": "54871236",
"dic": "2121845632",
"ic_dph": "SK2121845632",
"vat_payer": true,
"street": "Mlynské nivy 5",
"city": "Bratislava",
"zip": "821 09",
"country": "SK",
"email": "fakturacia@tatradigital.sk",
"phone": "+421 2 3301 4455",
"iban": "SK3111000000002945123456",
"swift": "TATRSKBX",
"default_currency": "EUR",
"default_vat_rate": 23,
"default_vat_mode": "standard",
"default_vat_exemption": null,
"default_due_days": 14,
"default_unit": "ks"
},
"plan": {
"code": "business",
"name": "Business",
"status": "active",
"subscription_active": true,
"ends_at": "2027-01-31T23:59:59+01:00"
},
"features": [
"invoices",
"proforma_invoices",
"credit_notes",
"quotes",
"orders",
"delivery_notes",
"recurring_invoices",
"reminders",
"warehouse",
"expenses",
"epostak",
"api"
],
"limits": {
"documents_per_month": {
"limit": 500,
"used": 37,
"remaining": 463
},
"users": {
"limit": 5
},
"einvoices_free_per_month": {
"limit": 50,
"remaining": 46
},
"api_requests_per_minute": 120
},
"read_only": false,
"api_key": {
"id": 3,
"name": "E-shop (WooCommerce)",
"prefix": "ei_live_Xk3mP9qR…",
"abilities": [
"documents:read",
"documents:write",
"payments:read",
"payments:write"
],
"expires_at": null
}
}
}