a4sx Reports API
The Reports API from a4sx — 8 operation(s) for reports.
The Reports API from a4sx — 8 operation(s) for reports.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/session-exchange-com:session-exchange-com-reports-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Session Exchange Com Reports API
version: 0.1.0
description: 'Operations tagged Reports across 2 of this provider''s published API definitions: openapi.json, session-exchange-com-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Reports
paths:
/reports/tax-liability:
get:
summary: Tax Liability
description: 'Net VAT owed per (currency, country, rate, quarter), after refunds. EU rows (in_eu_oss=true)
feed the OSS return; non-EU country rows show where a foreign consumption tax may be due.
`jurisdiction_counters` (#1326, report-only): per year, buyer country, US state
(`region`, where known) and currency, the gross amount and the transaction count of paid orders,
refunds apart — what foreign registration thresholds test. For the year of `quarter` when given.
The country is the one the checkout''s billing record holds (`buyer_geo`); `unknown` when neither
it nor the payment event has one.
`eu_b2c_threshold` (#618): the calendar-year net revenue from consumers in EU member states other
than DE, against the EUR 10,000 limit of § 3a (5) UStG, for the current and the previous
Europe/Berlin year (always the years around today, whatever `quarter` says). Recomputed from the
billing events on every read; the rules are in collector/eu_b2c_threshold.py.
`vat_evidence` (#1411 R-3, report-only): for `quarter` (or all), how many booked sales carry ONE
location-evidence item, two or more CONSISTENT ones (one of them third-party), agreeing but only
self-declared ones (`self_declared_only`), or CONFLICTING ones, the sales without a block
(`not_recorded`: before the change or with AGENT_MDX_VAT_LOCATION_EVIDENCE off), those with a
third-party item, those whose re-read disagreed (`with_reread_conflict`) and the count per
payment method type. The billing record''s block wins over the sale event''s copy. Counts only; the per-sale block (country codes, never an IP) is
on each `billing.payment.succeeded` payload, so `GET /reports/gobd-export` carries it per sale.'
operationId: tax_liability_reports_tax_liability_get
parameters:
- name: quarter
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Quarter
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Reports
/reports/dac7:
get:
summary: Dac7
description: 'DAC7/PStTG worksheet: per-seller consideration + count by quarter, joined with the reportable
identity captured at onboarding. Sellers with transactions but no profile are flagged (a data gap
the onboarding gate is meant to prevent). First-party sales (the platform''s own workspace, O-4)
are platform revenue, not a seller''s, and never appear here.'
operationId: dac7_reports_dac7_get
parameters:
- name: year
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Year
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Reports
/reports/ledger:
get:
summary: Ledger
description: 'Revenue totals per currency + the booked invariant Σnet+Σvat==Σgross, plus document counts.
`payouts` splits the net into seller accruals, the commission (`platform_cut`) and first-party
sales (`first_party_net`, O-4); `platform_revenue` = commission + first-party.'
operationId: ledger_reports_ledger_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Reports
/reports/self-billing-vat:
get:
summary: Self Billing Vat Report
description: 'The VAT figures from the Gutschriften (SB-) of a period (`YYYY-MM`, `YYYY-Qn` or `YYYY`, on the
Europe/Berlin calendar) for the VAT pre-return (#906, #922): per seller VAT status — Σ net, Σ input
VAT (19 % on top for DE sellers taxed normally), Σ § 13b (1) and § 13b (2) base and tax,
Σ § 19 amounts — and EUR figures per row and in total (`POST /reports/fx-rates` records the rate
of a non-EUR currency). `format=csv` returns one row per document.'
operationId: self_billing_vat_report_reports_self_billing_vat_get
parameters:
- name: period
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Period
- name: format
in: query
required: false
schema:
type: string
default: json
title: Format
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Reports
/reports/fx-rates:
get:
summary: Fx Rates List
description: The EUR conversion rates the VAT export uses (#922), per currency and month.
operationId: fx_rates_list_reports_fx_rates_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Reports
post:
summary: Fx Rate Record
description: 'Record the EUR rate of a non-EUR currency for one month (#922) as an append-only event. Body:
{currency (ISO 4217, not EUR), month (YYYY-MM), rate (foreign units per 1 EUR, > 0), source
(required — where the rate is from, e.g. the official monthly table)}.
A recorded rate is immutable: a second record for the same month is refused (409 `rate_exists`)
unless it says `supersedes: true` with a `reason` — then it is recorded with the rate it replaces,
and a `billing.fx_rate.superseded` audit event is written. The export flags every row converted
at a superseded rate (`eur_rate_superseded`, `superseded_rates`): an export taken before may differ.'
operationId: fx_rate_record_reports_fx_rates_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Reports
/reports/credit-notes:
get:
summary: Credit Notes
description: 'The invoice + credit-note register (kind: ''invoice'' | ''credit_note'' | omit for both).'
operationId: credit_notes_reports_credit_notes_get
parameters:
- name: kind
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Kind
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Reports
/reports/document-gaps:
get:
summary: Document Gaps
description: 'Per series prefix: numbers below the highest issued one that no document and no
`billing.document.number_voided` record explains (record one with POST
/billing/documents/number-void), plus the unused-number and void records themselves.'
operationId: document_gaps_reports_document_gaps_get
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
tags:
- Reports
/reports/gobd-export:
get:
summary: Gobd Export
description: 'A dated dump over [since, until] (ISO dates, inclusive-ish string compare): the document
register (journal entries, reversal entries, self-bills — voided ones included, annotated), the
void and unused-number records, the open number gaps, the tax-liability rows, and the raw billing
events (`_GOBD_EVENTS`), cut from the event log. `since`/`until` filter the raw events by
timestamp. The log is append-only by convention, fsynced and backed up — not tamper-evident;
`integrity` in the response says exactly that.
`vat_evidence` (#1411 R-3): per sale in range, its location-evidence block AS OF `until` (now,
without one) and its trail of changes up to then (`vat_evidence_trail`); changes after `until`
sit apart in `after_range`, marked and timestamped. A block filled or contradicted after booking
is never shown only as the original failed read. With AGENT_MDX_VAT_LOCATION_EVIDENCE off (no
blocks) the key is an empty list.'
operationId: gobd_export_reports_gobd_export_get
parameters:
- name: since
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Since
- name: until
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
title: Until
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
tags:
- Reports
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
x-refined-from:
- openapi.json
- session-exchange-com-openapi.json