Accounting & ledger
PGC accounts, journal entries and AEAT 303.
- Base URL:
https://api.aikount.com - Every call requires the header
Authorization: Bearer <token>(Authentication and API keys).
| Method | Path | What for | Parameters |
|---|---|---|---|
GET | /accounting/export/a3 | Export A3 Endpoint | from_date*, to_date*, company_code |
GET | /accounting/financial-statements | Financial Statements Endpoint | from_date*, to_date*, compare |
GET | /accounting/opening/items | List outstanding items at opening | contact_id, kind, pending_only |
POST | /accounting/opening/items | Create outstanding item at opening | None |
GET | /accounting/opening/items/check | Check against the opening balances | None |
POST | /accounting/opening/items/import | Import outstanding items (CSV/XLSX) | file*, kind |
POST | /accounting/opening/items/import/preview | Preview outstanding items import | file*, kind |
DELETE | /accounting/opening/items/{item_id} | Delete outstanding item | item_id* |
PATCH | /accounting/opening/items/{item_id} | Update outstanding item | item_id* |
POST | /accounting/opening/items/{item_id}/reconcile | Collect / pay with a bank movement | item_id* |
DELETE | /accounting/provision-corporate-tax | Delete Corporate Tax Provision Endpoint | year* |
GET | /accounting/provision-corporate-tax | Get Corporate Tax Provision Endpoint | year* |
POST | /accounting/provision-corporate-tax | Provision Corporate Tax Endpoint | year*, force, cuota_override, corporate_tax_rate |
GET | /accounts | List Accounts Endpoint | search, group, limit, offset |
POST | /accounts | Create Account Endpoint | None |
DELETE | /accounts/{account_id} | Delete Account Endpoint | account_id* |
GET | /accounts/{account_id} | Get Account Endpoint | account_id* |
PATCH | /accounts/{account_id} | Update Account Endpoint | account_id* |
GET | /aeat/303 | Aeat 303 Endpoint | year*, quarter* |
GET | /aeat/303/{year}/{quarter}/export | Aeat 303 Export | year*, quarter* |
GET | /aeat/303/summary | Aeat 303 Summary | None |
GET | /aeat/349 | Aeat 349 Endpoint | year*, quarter* |
GET | /aeat/349/summary | Aeat 349 Summary | year*, quarter* |
GET | /aeat/369 | Aeat 369 Endpoint | year*, quarter* |
GET | /aeat/369/{year}/{quarter}/export | Aeat 369 Export | year*, quarter* |
GET | /aeat/369/history | Aeat 369 History | None |
GET | /aeat/369/summary | Aeat 369 Summary | year*, quarter* |
GET | /aeat/igic | Aeat Igic Csv | year*, quarter* |
GET | /aeat/igic/{year}/{quarter}/export | Aeat Igic Export | year*, quarter* |
GET | /aeat/igic/history | Aeat Igic History | None |
GET | /aeat/igic/summary | Aeat Igic Summary | year*, quarter* |
GET | /aeat/ipsi | Aeat Ipsi Csv | year*, quarter* |
GET | /aeat/ipsi/{year}/{quarter}/export | Aeat Ipsi Export | year*, quarter* |
GET | /aeat/ipsi/history | Aeat Ipsi History | None |
GET | /aeat/ipsi/summary | Aeat Ipsi Summary | year*, quarter* |
GET | /journal | List Journal Endpoint | from_date, to_date, kind, search, limit, offset |
POST | /journal | Create Journal Endpoint | None |
DELETE | /journal/{entry_id} | Delete Journal Endpoint | entry_id* |
GET | /journal/{entry_id} | Get Journal Endpoint | entry_id* |
PATCH | /journal/{entry_id} | Update Journal Endpoint | entry_id* |
POST | /journal/{entry_id}/lock | Lock Journal Endpoint | entry_id* |
GET | /journal/imbalances | Journal Imbalances Endpoint | limit |
GET | /ledger | Get Ledger Endpoint | account_id*, from_date, to_date, limit, offset |
GET | /ledger/trial-balance | Trial Balance Endpoint | at_date |
Modelo 369 (OSS): GET /aeat/369/summary fields
rows: the quarter's supplies, one row per (consumption country, rate) withpais,pais_nombre,tipo,base_imponibleandiva_repercutido. Credit notes from the same quarter, or without a rectified invoice, are already netted here.corrections: credit notes for invoices declared in an earlier 369, one row per (country, corrected period) withpais,pais_nombre,year,quarter,periodo(e.g.2026-3T),base_imponible(informative) andiva_correccion(negative for a credit note). They go in the 369 corrections section and are not deducted from the supplies.supplies_total_base,supplies_total_ivaandcorrections_total_iva: the breakdown.total_baseandtotal_iva: supplies + corrections, the amount payable.n_docsandwarnings(oss_rate_not_standard:<country>:<rate>:expected:<official rate>, supplies only).
The CSV (GET /aeat/369) adds a periodo_corregido column (empty for supplies) and one row per correction; the Excel (/aeat/369/{year}/{quarter}/export) adds a "Correcciones" sheet.
Full detail (parameters, bodies and schemas) lives in OpenAPI/Swagger. Parameters marked
*are required.