PeppolStatus Compliance API

Deterministic verdicts against published Peppol rules, open until the registration is corrected. Distinct from Anomalies (observed behaviour).

GitHub OpenAPI

Operations 4

GET /v1/stats/compliance Network compliance landscape #
GET /v1/stats/compliance/history Network compliance trend #
GET /v1/compliance/rules List the compliance rule catalogue #
GET /v1/compliance/findings List compliance findings #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/peppolstatus-com:peppolstatus-com-compliance-api"
All apis
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.

Get an API 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 Specification

peppolstatus-com-compliance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PeppolStatus Compliance API
  version: 1.0.0
  description: 'Public, read-only REST API for the PeppolStatus.com open-data monitoring of the Peppol e-invoicing network: host liveness, incidents, participants, providers, seats, change events, anomalies, SML/SMK zone status and network rollups.


    All responses are JSON. Errors use RFC 9457 `application/problem+json`. List endpoints are cursor-paginated (`{ items, next_cursor }`). The API is rate limited to 60 requests / 60s per client identity; `RateLimit-*` headers are returned on every response.


    Authentication & tiers: most endpoints require an API key, sent as `Authorization: Bearer ` or `X-API-Key: `. Access follows the subscription tier of the key''s owner — `free` is keyless and covers network health (`GET /v1/network`), participant statistics (`GET /v1/stats/participants`), the dashboard summary (`GET /v1/summary`), SML zone status (`GET /v1/sml`) and a single participant record lookup (`GET /v1/participants/{id}`) plus these docs; `network` adds operational infrastructure data (hosts, uptime, incidents, SMPs, seats, access points, change events, anomalies, certificates); `market` adds everything commercial (providers, participant records, adoption, churn). A request below an endpoint''s required tier returns `403 application/problem+json`; every operation is annotated with `x-required-tier`.


    API & MCP access add-on: the Network and Market plans cover the console. Reaching a paid (non-free) endpoint with an API key, directly or through the MCP server, also needs the API & MCP access add-on (EUR 299 per month, billed monthly; see https://peppolstatus.com/pricing/). A key without it gets `403 application/problem+json` naming the add-on. Free endpoints need no add-on. Every paid operation is annotated with `x-requires-addon: api`.


    Versioning: the API is versioned in the URL path (`/v1`). Backwards-incompatible changes only ship under a new version prefix; existing versions keep their contract. Any endpoint scheduled for removal will be announced in this documentation and will send `Deprecation` and `Sunset` headers before it goes away. The one exception is security: an endpoint may be removed without a deprecation window when keeping it would expose hosts to security risk.'
  termsOfService: https://peppolstatus.com/terms/
  contact:
    name: PeppolStatus
    url: https://peppolstatus.com
  license:
    name: PeppolStatus Data Licensing Terms
    url: https://peppolstatus.com/data-licensing/
servers:
- url: https://api.peppolstatus.com
  description: Production
security:
- bearerApiKey: []
- apiKeyHeader: []
tags:
- name: Compliance
  description: Deterministic verdicts against published Peppol rules, open until the registration is corrected. Distinct from Anomalies (observed behaviour).
paths:
  /v1/stats/compliance:
    get:
      tags:
      - Compliance
      summary: Network compliance landscape
      operationId: get_compliance_stats
      description: 'The free compliance landscape (issue #692): per-country error rates — the share of a country''s registered participants that break at least one published Peppol rule — and the per-rule breakdown of every open finding. Counts ONLY: no participant, seat or hostname appears here; the participant-level records are `GET /v1/compliance/findings` (Network tier). Read from the pre-computed compliance rollup tables and edge-cached. Keyless-cacheable.


        Pass `country` to scope the whole body to one country (issue #716): the same shape, with `countries` holding that one cell, `rules` its own breakdown, each rule''s `share` a share of THAT country''s open findings, and the code echoed back in `country`. A country scope is how a structural national pattern is told apart from a real problem — AU and NZ, for example, break `not_in_peppol_directory` almost everywhere because A-NZ PINT participants are absent from the European Peppol Directory by design.'
      parameters:
      - name: country
        in: query
        required: false
        description: Scope the landscape to one ISO 3166-1 alpha-2 country (or `ZZ`, the bucket for findings whose subject resolves to no country). A country the rollup has not seen returns an empty landscape, not an error.
        schema:
          type: string
          pattern: ^[A-Za-z]{2}$
        example: BE
      responses:
        '200':
          description: The compliance landscape aggregates.
          content:
            application/json:
              schema:
                type: object
                required:
                - countries
                - rules
                - totals
                - generated_at
                properties:
                  countries:
                    type: array
                    description: Per-country cells, sorted by open findings desc.
                    items:
                      type: object
                      required:
                      - country
                      - participants
                      - affected_participants
                      - error_rate
                      - open_findings
                      - fatal
                      - warning
                      - notice
                      properties:
                        country:
                          type: string
                          description: ISO 3166-1 alpha-2, or `ZZ` when the subject resolves to none.
                        participants:
                          type: integer
                        affected_participants:
                          type: integer
                          description: Distinct participants with at least one OPEN finding.
                        error_rate:
                          type: number
                          description: '`affected_participants / participants`, 0..1.'
                        open_findings:
                          type: integer
                        fatal:
                          type: integer
                        warning:
                          type: integer
                        notice:
                          type: integer
                  rules:
                    type: array
                    description: Per-rule cells, sorted by open findings desc.
                    items:
                      type: object
                      required:
                      - rule_code
                      - title
                      - grade
                      - open_findings
                      - resolved_findings
                      - affected_participants
                      - countries
                      - share
                      properties:
                        rule_code:
                          type: string
                        title:
                          type: string
                          description: The rule's published title from `GET /v1/compliance/rules`.
                        grade:
                          type: string
                          enum:
                          - fatal
                          - warning
                          - notice
                        open_findings:
                          type: integer
                        resolved_findings:
                          type: integer
                        affected_participants:
                          type: integer
                        countries:
                          type: integer
                          description: Distinct countries the rule is open in. Inside a `country` scope there is only one, so this reads 1 when the rule is open there and 0 when only its corrected findings remain.
                        share:
                          type: number
                          description: Share of all open findings, 0..1.
                  country:
                    type: string
                    description: The country the body is scoped to; absent on the global landscape (#716).
                  totals:
                    type: object
                    description: Network totals behind the landscape header.
                    required:
                    - participants
                    - affected_participants
                    - error_rate
                    - open_findings
                    - resolved_findings
                    - fatal
                    - warning
                    - notice
                    properties:
                      participants:
                        type: integer
                      affected_participants:
                        type: integer
                      error_rate:
                        type: number
                      open_findings:
                        type: integer
                      resolved_findings:
                        type: integer
                      fatal:
                        type: integer
                      warning:
                        type: integer
                      notice:
                        type: integer
                  generated_at:
                    type: string
                    format: date-time
        '400':
          description: A `country` that is not a two-letter country code.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      x-required-tier: free
      security:
      - {}
  /v1/stats/compliance/history:
    get:
      tags:
      - Compliance
      summary: Network compliance trend
      operationId: get_compliance_stats_history
      description: 'The network compliance picture over time: one point per UTC day the rollup ran, carrying that day''s participant denominator, affected participants, error rate and open findings by grade. The series starts the day the rollup first ran. Keyless-cacheable.


        Pass `country` for one country''s trend (issue #716) — the same series shape, restricted to that country and echoed back in `country`. The per-country series starts the day the country rollup first ran, which is later than the network one.'
      parameters:
      - name: country
        in: query
        required: false
        description: Scope the trend to one ISO 3166-1 alpha-2 country (or `ZZ`). A country the rollup has not seen returns an empty series, not an error.
        schema:
          type: string
          pattern: ^[A-Za-z]{2}$
        example: BE
      - name: from
        in: query
        required: false
        description: Inclusive lower bound (YYYY-MM-DD UTC). Defaults to 90 days ago.
        schema:
          type: string
          format: date
      - name: to
        in: query
        required: false
        description: Inclusive upper bound (YYYY-MM-DD UTC). Defaults to today.
        schema:
          type: string
          format: date
      responses:
        '200':
          description: The compliance trend series.
          content:
            application/json:
              schema:
                type: object
                required:
                - from
                - to
                - series
                properties:
                  from:
                    type: string
                    format: date
                  to:
                    type: string
                    format: date
                  country:
                    type: string
                    description: The country the trend is scoped to; absent on the network trend (#716).
                  series:
                    type: array
                    items:
                      type: object
                      required:
                      - day
                      - participants
                      - affected_participants
                      - error_rate
                      - open_findings
                      - fatal
                      - warning
                      - notice
                      properties:
                        day:
                          type: string
                          format: date
                        participants:
                          type: integer
                        affected_participants:
                          type: integer
                        error_rate:
                          type: number
                        open_findings:
                          type: integer
                        fatal:
                          type: integer
                        warning:
                          type: integer
                        notice:
                          type: integer
        '400':
          description: An invalid `from`, `to` or `country`, or a window over 366 days.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      x-required-tier: free
      security:
      - {}
  /v1/compliance/rules:
    get:
      tags:
      - Compliance
      summary: List the compliance rule catalogue
      operationId: list_compliance_rules
      description: 'The published rules registrations are judged against: what each rule requires, what it applies to, how severe a breach is, and how many findings requires, what it applies to, and how severe a breach is. Free — the rules themselves are public; the findings against them are on `GET /v1/compliance/findings`.'
      responses:
        '200':
          description: The rule catalogue.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceRuleCatalogue'
      x-required-tier: free
      security:
      - {}
  /v1/compliance/findings:
    get:
      tags:
      - Compliance
      summary: List compliance findings
      operationId: list_compliance_findings
      description: Deterministic verdicts against the published rules, newest first and keyset-paginated on (`first_detected_at`, `finding_id`). A finding stays `open` until the registration is corrected, at which point the next scan stamps `resolved_at`; `first_detected_at` survives every re-scan. Distinct from `/v1/anomalies`, which reports observed behaviour rather than rule breaches. The first page's `meta.facets` gives rule and grade counts over the filtered set.
      parameters:
      - name: rule
        in: query
        required: false
        description: Filter to one rule code (from `GET /v1/compliance/rules`).
        schema:
          type: string
      - name: country
        in: query
        required: false
        description: Filter to one ISO 3166-1 alpha-2 country.
        schema:
          type: string
      - name: seat
        in: query
        required: false
        description: Filter to one operating seat id (e.g. `PBE000123`).
        schema:
          type: string
      - name: scheme
        in: query
        required: false
        description: Filter to one participant scheme id, for participant-grain rules.
        schema:
          type: string
      - name: grade
        in: query
        required: false
        description: Filter by severity.
        schema:
          type: string
          enum:
          - fatal
          - warning
          - notice
      - name: status
        in: query
        required: false
        description: Lifecycle slice; defaults to the open findings.
        schema:
          type: string
          enum:
          - open
          - resolved
          - all
          default: open
      - name: since
        in: query
        required: false
        description: 'Only findings whose `last_seen_at` or `resolved_at` is at or after this ISO 8601 instant: everything the latest scans still confirm, plus everything opened, changed or resolved since. A finding whose evidence has not moved for weeks stays in the answer for as long as its rule keeps being scanned, so polling this converges on the live set.'
        schema:
          type: string
          format: date-time
      - name: limit
        in: query
        required: false
        description: Page size, clamped to [1, 200]. Defaults to 50.
        schema:
          type: integer
          minimum: 1
          maximum: 200
          default: 50
      - name: cursor
        in: query
        required: false
        description: Opaque pagination cursor returned as `next_cursor` by the previous page.
        schema:
          type: string
      responses:
        '200':
          description: A page of compliance findings with rule/grade facets.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComplianceFindingPage'
        '400':
          description: An invalid `grade`, `status`, `since`, `limit` or `cursor`.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
      x-required-tier: network
      security:
      - bearerApiKey: []
      - apiKeyHeader: []
      x-requires-addon: api
components:
  schemas:
    ComplianceRuleCatalogue:
      type: object
      description: The full rule catalogue.
      required:
      - rules
      - generated_at
      properties:
        rules:
          type: array
          items:
            $ref: '#/components/schemas/ComplianceRule'
        generated_at:
          type: string
          format: date-time
    Problem:
      type: object
      description: RFC 9457 problem detail (`application/problem+json`).
      required:
      - type
      - title
      - status
      properties:
        type:
          type: string
          default: about:blank
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        instance:
          type: string
    ComplianceFinding:
      type: object
      description: 'One rule breach against one subject. A strict superset of the Peppol PAC non-compliance record: those fields verbatim, plus lifecycle and evidence.'
      required:
      - finding_id
      - rule_code
      - rule_version
      - grade
      - status
      - subject_kind
      - smp_seat_id
      - smp_url
      - smp_owner_name
      - participant_id
      - scheme_id
      - participant_name
      - country_code
      - sub_provider
      - affected_pa
      - affecting_pa
      - detail
      - first_detected_at
      - last_confirmed_at
      - last_seen_at
      - resolved_at
      properties:
        finding_id:
          type: string
          description: Stable id of this (rule, subject) pair; survives re-scans.
        rule_code:
          type: string
        rule_version:
          type: string
          description: The rule version that judged it.
        grade:
          type: string
          enum:
          - fatal
          - warning
          - notice
        status:
          type: string
          enum:
          - open
          - resolved
          description: '`resolved` once a scan no longer confirms the breach.'
        subject_kind:
          type: string
          description: What the finding is about (e.g. `host_cert`).
        smp_seat_id:
          type:
          - string
          - 'null'
          description: The operating seat, when known.
        smp_url:
          type:
          - string
          - 'null'
          description: The SMP base URL, for SMP subjects.
        smp_owner_name:
          type:
          - string
          - 'null'
          description: The operating provider's name.
        participant_id:
          type:
          - string
          - 'null'
          description: The participant, for participant-grain rules.
        scheme_id:
          type:
          - string
          - 'null'
        participant_name:
          type:
          - string
          - 'null'
        country_code:
          type:
          - string
          - 'null'
          description: ISO 3166-1 alpha-2, when known.
        sub_provider:
          type:
          - string
          - 'null'
          description: The reseller, when attributable.
        affected_pa:
          type:
          - string
          - 'null'
          description: Peppol Authority affected.
        affecting_pa:
          type:
          - string
          - 'null'
          description: Peppol Authority responsible for the non-compliant party.
        detail:
          type: object
          additionalProperties: true
          description: Evidence behind the verdict (issuer, fingerprint, reason, …).
        first_detected_at:
          type: string
          format: date-time
          description: When the breach was first seen; preserved across re-scans.
        last_confirmed_at:
          type: string
          format: date-time
          description: The last scan that opened, reopened or changed the finding. A scan that re-confirms a high-volume finding unchanged does not restamp it, so this is an evidence-change instant, not a heartbeat — read `last_seen_at`.
        last_seen_at:
          type: string
          format: date-time
          description: 'When the finding was last CONFIRMED to exist: the later of `last_confirmed_at` and the last completed scan of its rule, because a scan closes everything it stops confirming and therefore still sees everything it leaves open. Equal to `last_confirmed_at` for a resolved finding, and for a rule that has not completed a scan yet.'
        resolved_at:
          type:
          - string
          - 'null'
          format: date-time
          description: When it stopped being confirmed.
    ComplianceRule:
      type: object
      description: One published rule registrations are judged against.
      required:
      - code
      - title
      - description
      - scope
      - country
      - applies_to
      - grade
      - version
      - effective_from
      - effective_to
      - source_url
      properties:
        code:
          type: string
          description: Stable public rule code.
        title:
          type: string
        description:
          type: string
          description: What the rule requires, in prose.
        scope:
          type: string
          enum:
          - global
          - country
          description: Network-wide, or scoped to one Peppol Authority's country.
        country:
          type:
          - string
          - 'null'
          description: ISO 3166-1 alpha-2 when scoped.
        applies_to:
          type: string
          description: The subject class the rule judges (e.g. `smp_certificate`).
        grade:
          type: string
          enum:
          - fatal
          - warning
          - notice
        version:
          type: string
          description: Bumped when the verdict logic changes; findings record it.
        effective_from:
          type:
          - string
          - 'null'
          format: date-time
        effective_to:
          type:
          - string
          - 'null'
          format: date-time
        source_url:
          type:
          - string
          - 'null'
          description: The published rule text.
    ComplianceFindingPage:
      type: object
      description: A keyset page of compliance findings with first-page facets.
      required:
      - items
      - next_cursor
      - meta
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/ComplianceFinding'
        next_cursor:
          type:
          - string
          - 'null'
          description: Opaque cursor for the next page, or null on the last page.
        meta:
          type: object
          required:
          - facets
          properties:
            facets:
              type: object
              required:
              - rule
              - grade
              description: Value→count maps over the filtered set.
              properties:
                rule:
                  type: object
                  additionalProperties:
                    type: integer
                grade:
                  type: object
                  additionalProperties:
                    type: integer
  securitySchemes:
    bearerApiKey:
      type: http
      scheme: bearer
      description: 'Console-issued API key (pps_…), sent as `Authorization: Bearer <key>`.'
    apiKeyHeader:
      type: apiKey
      in: header
      name: X-API-Key
      description: Console-issued API key (pps_…), sent as the `X-API-Key` header.