Accounting & ledger

PGC accounts, journal entries and AEAT 303.

MethodPathWhat forParameters
GET/accounting/export/a3Export A3 Endpointfrom_date*, to_date*, company_code
GET/accounting/financial-statementsFinancial Statements Endpointfrom_date*, to_date*, compare
GET/accounting/opening/itemsList outstanding items at openingcontact_id, kind, pending_only
POST/accounting/opening/itemsCreate outstanding item at openingNone
GET/accounting/opening/items/checkCheck against the opening balancesNone
POST/accounting/opening/items/importImport outstanding items (CSV/XLSX)file*, kind
POST/accounting/opening/items/import/previewPreview outstanding items importfile*, kind
DELETE/accounting/opening/items/{item_id}Delete outstanding itemitem_id*
PATCH/accounting/opening/items/{item_id}Update outstanding itemitem_id*
POST/accounting/opening/items/{item_id}/reconcileCollect / pay with a bank movementitem_id*
DELETE/accounting/provision-corporate-taxDelete Corporate Tax Provision Endpointyear*
GET/accounting/provision-corporate-taxGet Corporate Tax Provision Endpointyear*
POST/accounting/provision-corporate-taxProvision Corporate Tax Endpointyear*, force, cuota_override, corporate_tax_rate
GET/accountsList Accounts Endpointsearch, group, limit, offset
POST/accountsCreate Account EndpointNone
DELETE/accounts/{account_id}Delete Account Endpointaccount_id*
GET/accounts/{account_id}Get Account Endpointaccount_id*
PATCH/accounts/{account_id}Update Account Endpointaccount_id*
GET/aeat/303Aeat 303 Endpointyear*, quarter*
GET/aeat/303/{year}/{quarter}/exportAeat 303 Exportyear*, quarter*
GET/aeat/303/summaryAeat 303 SummaryNone
GET/aeat/349Aeat 349 Endpointyear*, quarter*
GET/aeat/349/summaryAeat 349 Summaryyear*, quarter*
GET/aeat/369Aeat 369 Endpointyear*, quarter*
GET/aeat/369/{year}/{quarter}/exportAeat 369 Exportyear*, quarter*
GET/aeat/369/historyAeat 369 HistoryNone
GET/aeat/369/summaryAeat 369 Summaryyear*, quarter*
GET/aeat/igicAeat Igic Csvyear*, quarter*
GET/aeat/igic/{year}/{quarter}/exportAeat Igic Exportyear*, quarter*
GET/aeat/igic/historyAeat Igic HistoryNone
GET/aeat/igic/summaryAeat Igic Summaryyear*, quarter*
GET/aeat/ipsiAeat Ipsi Csvyear*, quarter*
GET/aeat/ipsi/{year}/{quarter}/exportAeat Ipsi Exportyear*, quarter*
GET/aeat/ipsi/historyAeat Ipsi HistoryNone
GET/aeat/ipsi/summaryAeat Ipsi Summaryyear*, quarter*
GET/journalList Journal Endpointfrom_date, to_date, kind, search, limit, offset
POST/journalCreate Journal EndpointNone
DELETE/journal/{entry_id}Delete Journal Endpointentry_id*
GET/journal/{entry_id}Get Journal Endpointentry_id*
PATCH/journal/{entry_id}Update Journal Endpointentry_id*
POST/journal/{entry_id}/lockLock Journal Endpointentry_id*
GET/journal/imbalancesJournal Imbalances Endpointlimit
GET/ledgerGet Ledger Endpointaccount_id*, from_date, to_date, limit, offset
GET/ledger/trial-balanceTrial Balance Endpointat_date

Modelo 369 (OSS): GET /aeat/369/summary fields

  • rows: the quarter's supplies, one row per (consumption country, rate) with pais, pais_nombre, tipo, base_imponible and iva_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) with pais, pais_nombre, year, quarter, periodo (e.g. 2026-3T), base_imponible (informative) and iva_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_iva and corrections_total_iva: the breakdown.
  • total_base and total_iva: supplies + corrections, the amount payable.
  • n_docs and warnings (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.

Cookies & privacy

We use our own cookieless analytics. With your permission, we measure registrations and payments from Google and ChatGPT ads. Learn more about cookies · Privacy