PagoPA Legal Facts API

Invocazioni per effettuare il download degli atti opponibili a terzi

Operations 4

GET /delivery-push/v2.0/{iun}/legal-facts Elenco atti opponibili a terzi #
GET /delivery-push/{iun}/legal-facts/{legalFactType}/{legalFactId} Singolo atto opponibile a terzi #
GET /delivery-push/{iun}/download/legal-facts/{legalFactId} Singolo atto opponibile a terzi #
GET /delivery-push/{iun}/legal-facts Elenco atti opponibili a terzi #

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-ct-receipt-model-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-cart-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-get-cart-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-get-mbd-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-get-mdb-receipt-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-create-mbd-request-v2-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-single-flow-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-paginated-payments-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-paginated-flows-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-create-flow-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-single-flow-created-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-paginated-flows-published-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-paginated-flows-created-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-position-model-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payments-model-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-position-model-base-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-positions-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-app-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-already-paid-payment-option-model-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-file-id-list-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-upload-report-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-upload-status-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-update-transfer-iban-massive-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-position-model-v3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-position-model-response-v3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-positions-info-v3-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-flow-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-upload-report-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-receipts-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-broker-institutions-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-ciibans-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-payment-options-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-debt-position-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-debt-position-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-get-generation-request-status-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-template-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-notice-generation-request-item-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-notice-generation-massive-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-notice-generation-massive-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-get-signed-url-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-transaction-result-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-transaction-result-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-eservice-descriptor-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-purpose-template-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-purpose-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-problem-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-eservice-template-version-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-agreement-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-verification-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-input-message-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-success-response-signature-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-verifica-organization-id-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-pseudonymization-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-data-preparation-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-datapreparation-template-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-richiesta-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-verifica-codice-fiscale-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-submit-tracing-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-get-tracing-errors-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-recover-tracing-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-signal-pull-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-signal-payload-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-signal-push-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-signature-request-detail-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-dossier-detail-view-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-create-signature-request-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-create-dossier-body-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-signature-request-list-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-signature-field-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-citizen-consent-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-access-control-allow-origin-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-list-citizen-consent-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-retry-after-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-rate-limit-limit-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-rate-limit-reset-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-retrieval-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-retrieval-request-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-retrieva-id-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-tpp-network-connection-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-notification-payload-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-auth-request-dynamic-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-token-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-auth-payment-response-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-preview-payment-response-v2-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-transaction-bar-code-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-auth-bar-code-payment-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-preview-payment-request-v2-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-invoice-dto-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-notification-request-v26-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-notification-request-v25-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-notification-request-v24-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-notification-request-v21-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-notification-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-new-notification-request-v23-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-asynchronous-sepa-request-to-pay-response-resource-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/pagopa/refs/heads/main/json-schema/pagopa-sepa-request-to-pay-cancellation-response-resource-schema.json

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/pagopa:pagopa-legalfacts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pagopa-legalfacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pagopa Legal Facts API
  version: 1.0.0
  contact:
    name: 'SEND: supporto enti'
    url: https://pagopa.atlassian.net/servicedesk/customer/portal/5
  termsOfService: https://selfcare.notifichedigitali.it/termini-di-servizio
  x-api-id: api-external-b2b-pa
  x-summary: 'Piattaforma Notifiche: API B2B per le Pubbliche Amministrazioni'
  description: 'Operations tagged LegalFacts across 2 of this provider''s published API definitions: send-b2b-pa-bundle.yaml, pagopa-send-b2b-pa-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.notifichedigitali.it
  description: Ambiente di produzione
- url: https://api.uat.notifichedigitali.it
  description: Ambiente di collaudo
security:
- ApiKeyAuth: []
tags:
- name: LegalFacts
  description: Invocazioni per effettuare il download degli atti opponibili a terzi
paths:
  /delivery-push/v2.0/{iun}/legal-facts:
    get:
      summary: Elenco atti opponibili a terzi
      description: Elenca le informazione di categorizzazione di tutti gli atti opponibili a terzi registrati durante il processo di notifica.
      tags:
      - LegalFacts
      operationId: retrieveNotificationLegalFactsV20
      parameters:
      - $ref: '#/components/parameters/pathIun'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalFactListV20'
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    servers:
    - url: https://api.notifichedigitali.it
      description: Ambiente di produzione
    - url: https://api.uat.notifichedigitali.it
      description: Ambiente di collaudo
  /delivery-push/{iun}/legal-facts/{legalFactType}/{legalFactId}:
    get:
      deprecated: true
      summary: Singolo atto opponibile a terzi
      description: Permette di scaricare un atto opponibile a terzi
      tags:
      - LegalFacts
      operationId: retrieveLegalFact
      parameters:
      - $ref: '#/components/parameters/pathIun'
      - $ref: '#/components/parameters/pathLegalFactType'
      - $ref: '#/components/parameters/pathLegalFactId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalFactDownloadMetadataResponse'
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    servers:
    - url: https://api.notifichedigitali.it
      description: Ambiente di produzione
    - url: https://api.uat.notifichedigitali.it
      description: Ambiente di collaudo
  /delivery-push/{iun}/download/legal-facts/{legalFactId}:
    get:
      summary: Singolo atto opponibile a terzi
      description: Permette di scaricare un atto opponibile a terzi
      tags:
      - LegalFacts
      operationId: downloadLegalFactById
      parameters:
      - $ref: '#/components/parameters/pathIun'
      - $ref: '#/components/parameters/pathLegalFactId'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalFactDownloadMetadataResponse'
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    servers:
    - url: https://api.notifichedigitali.it
      description: Ambiente di produzione
    - url: https://api.uat.notifichedigitali.it
      description: Ambiente di collaudo
  /delivery-push/{iun}/legal-facts:
    get:
      deprecated: true
      summary: Elenco atti opponibili a terzi
      description: Elenca le informazione di categorizzazione di tutti gli atti opponibili a terzi registrati durante il processo di notifica.
      tags:
      - LegalFacts
      operationId: retrieveNotificationLegalFacts
      parameters:
      - $ref: '#/components/parameters/pathIun'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LegalFactList'
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '404':
          description: Not found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '500':
          description: Internal Server Error
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
    servers:
    - url: https://api.notifichedigitali.it
      description: Ambiente di produzione
    - url: https://api.uat.notifichedigitali.it
      description: Ambiente di collaudo
components:
  parameters:
    pathIun:
      description: Identificativo Univoco Notifica
      name: iun
      in: path
      required: true
      schema:
        type: string
        minLength: 25
        maxLength: 25
        pattern: ^[A-Z]{4}-[A-Z]{4}-[A-Z]{4}-[0-9]{6}-[A-Z]{1}-[0-9]{1}$
    pathLegalFactType:
      description: Categoria dell'atto opponibile a terzi
      name: legalFactType
      in: path
      required: true
      schema:
        $ref: '#/components/schemas/LegalFactCategory'
    pathLegalFactId:
      description: Identificativo dell'atto opponibile a terzi
      name: legalFactId
      in: path
      required: true
      schema:
        type: string
        pattern: ^[ -~]*$
        maxLength: 1024
  schemas:
    LegalFactsId:
      description: Chiavi dei documenti generati durante il processo di consegna cartacea
      type: object
      required:
      - key
      - category
      properties:
        key:
          description: Chiave dell'atto opponibile a terzi generato durante il processo di consegna
          type: string
          pattern: ^(safestorage:\/\/)?[A-Za-z0-9._-]+$
          maxLength: 512
        category:
          $ref: '#/components/schemas/LegalFactCategory'
    LegalFactListElement:
      description: Informazioni relative ad un atto opponibile a terzi
      type: object
      required:
      - iun
      - legalFactsId
      properties:
        taxId:
          description: Valorizzato se l'atto si riferisce a uno specifico destinatario
          type: string
          minLength: 11
          maxLength: 16
          pattern: ^([A-Z]{6}[0-9LMNPQRSTUV]{2}[A-Z]{1}[0-9LMNPQRSTUV]{2}[A-Z]{1}[0-9LMNPQRSTUV]{3}[A-Z]{1})|([0-9]{11})$
        iun:
          description: Identificativo Univoco Notifica a cui l'atto è associato
          type: string
          maxLength: 25
          pattern: ^[A-Z]{4}-[A-Z]{4}-[A-Z]{4}-[0-9]{6}-[A-Z]{1}-[0-9]{1}$
        legalFactsId:
          $ref: '#/components/schemas/LegalFactsId'
    LegalFactCategory:
      title: Tipi di atti opponibili a terzi
      description: "Tipi di atti opponibili a terzi che Piattaforma Notifiche mette a disposizione dei suoi utenti.\n  - _SENDER_ACK_: atto di \"presa in carico\" di una notifica\n  - _DIGITAL_DELIVERY_: ..."
      type: string
      enum:
      - SENDER_ACK
      - DIGITAL_DELIVERY
      - ANALOG_DELIVERY
      - RECIPIENT_ACCESS
      - PEC_RECEIPT
      - ANALOG_FAILURE_DELIVERY
    LegalFactListElementV20:
      description: Informazioni relative ad un atto opponibile a terzi
      type: object
      required:
      - iun
      - legalFactsId
      properties:
        taxId:
          description: Valorizzato se l'atto si riferisce a uno specifico destinatario
          type: string
          minLength: 11
          maxLength: 16
          pattern: ^([A-Z]{6}[0-9LMNPQRSTUV]{2}[A-Z]{1}[0-9LMNPQRSTUV]{2}[A-Z]{1}[0-9LMNPQRSTUV]{3}[A-Z]{1})|([0-9]{11})$
        iun:
          description: Identificativo Univoco Notifica a cui l'atto è associato
          type: string
          maxLength: 25
          pattern: ^[A-Z]{4}-[A-Z]{4}-[A-Z]{4}-[0-9]{6}-[A-Z]{1}-[0-9]{1}$
        legalFactsId:
          $ref: '#/components/schemas/LegalFactsIdV20'
    LegalFactList:
      title: Elenco atti opponibili
      description: Elenco degli atti opponibili a terzi correlati a una notifica
      type: array
      items:
        $ref: '#/components/schemas/LegalFactListElement'
    LegalFactsIdV20:
      description: Chiavi dei documenti generati durante il processo di consegna cartacea
      type: object
      required:
      - key
      - category
      properties:
        key:
          description: Chiave dell'atto opponibile a terzi generato durante il processo di consegna
          type: string
          pattern: ^(safestorage:\/\/)?[A-Za-z0-9._-]+$
          maxLength: 512
        category:
          $ref: '#/components/schemas/LegalFactCategoryV20'
    LegalFactDownloadMetadataResponse:
      title: Url e metadati per il download di un allegato di una notifica
      description: "I due campi più importanti sono __url__ e __retryAfter__. <br/>\n  - __url__ è presente se il file è pronto per essere scaricato ed indica l'url a cui fare GET.\n  - __retryAfter__ indica che il file non è stato archiviato e bisognerà aspettare un numero di\n    secondi non inferiore a quanto indicato dal campo _retryAfter_. <br/>"
      type: object
      required:
      - filename
      - contentLength
      properties:
        filename:
          type: string
        contentLength:
          type: number
          format: decimal32
          example: 54092
          description: dimensione, in byte, del contenuto.
        url:
          type: string
          description: URL preautorizzato a cui effettuare una richiesta GET per ottenere il  contenuto del documento. Presente solo se il documento è pronto per il download.
        retryAfter:
          type: number
          format: decimal32
          description: Stima del numero di secondi da aspettare prima che il contenuto del  documento sia scaricabile.
    Problem:
      properties:
        type:
          description: URI reference of type definition
          type: string
        status:
          description: The HTTP status code generated by the origin server for this occurrence of the problem.
          type: integer
          format: int32
          example: 503
          minimum: 100
          exclusiveMaximum: 600
        title:
          description: A short, summary of the problem type. Written in english and readable
          example: Service Unavailable
          maxLength: 64
          pattern: ^[ -~]{0,64}$
          type: string
        detail:
          description: A human readable explanation of the problem.
          example: Request took too long to complete.
          maxLength: 4096
          pattern: ^.{0,4096}$
          type: string
        traceId:
          description: Internal support identifier associated to error
          example: 123e4567-e89b-12d3-a456-426614174000
          type: string
        timestamp:
          description: date and time referred to UTC
          example: '2022-07-27T12:22:33.444Z'
          type: string
          format: date-time
        errors:
          type: array
          minItems: 1
          items:
            $ref: '#/components/schemas/ProblemError'
      required:
      - status
      - errors
    ProblemError:
      properties:
        code:
          description: Internal code of the error, in human-readable format
          example: PN_PARAMETER_TOO_LONG | PN_PARAMETER_TOO_SHORT | PN_DUPLICATE_ENTRY | etc...
          type: string
        element:
          description: Parameter or request body field name for validation error
          example: body.order.item[2].quantity
          type: string
        detail:
          description: A human readable explanation specific to this occurrence of the problem.
          example: Parameter not valid
          maxLength: 1024
          type: string
      required:
      - code
    LegalFactListV20:
      title: Elenco atti opponibili
      description: Elenco degli atti opponibili a terzi correlati a una notifica
      type: array
      items:
        $ref: '#/components/schemas/LegalFactListElementV20'
    LegalFactCategoryV20:
      title: Tipi di atti opponibili a terzi
      description: "Tipi di atti opponibili a terzi che Piattaforma Notifiche mette a disposizione dei suoi utenti. <br/>\n  - SENDER_ACK  <br/>\n  - DIGITAL_DELIVERY  <br/>\n  - ANALOG_DELIVERY  <br/>\n  - RECIPIENT_ACCESS <br/>\n  - PEC_RECEIPT  <br/>\n  - ANALOG_FAILURE_DELIVERY  <br/>\n  - NOTIFICATION_CANCELLED  <br/>"
      type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
x-refined-from:
- send-b2b-pa-bundle.yaml
- pagopa-send-b2b-pa-openapi.yml