> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localpayment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Ottenere un'entità

Restituisce l'entità completa: dati KYC, documenti dichiarati con i relativi documenti probatori attivi, stati derivati e, per una COMPANY, il riepilogo dei titolari effettivi (UBO).

* L'esempio mostra una COMPANY con due titolari collegati: uboCount: 2, uboRequirementMet: true.
* Le entità in stato CLOSED restano consultabili tramite id.
* Un entityId che non è un UUID restituisce 400.

Gli errori usano `application/problem+json` con un `code` stabile. Catalogo completo: [Stati delle entità e codici di errore](https://docs.localpayment.com/it/reference/entity-statuses-and-error-codes.md).


## OpenAPI

````yaml openapi/it/localpayment.json GET /api/entity/v1/entities/{entityId}
openapi: 3.1.0
info:
  version: '1.0'
  title: Localpayment
  contact:
    name: Support
    url: mailto:support@localpayment.com
servers:
  - url: https://api.stage.localpayment.com
    description: Stage
security:
  - token: []
paths:
  /api/entity/v1/entities/{entityId}:
    get:
      summary: Ottenere un'entità
      operationId: get-entity
      parameters:
        - name: Authorization
          in: header
          description: >-
            Token di accesso Bearer per l'autenticazione. Questo token si
            ottiene dagli endpoint [Ottenere il token di
            accesso](/it/reference/get-token) o [Rinnovare il token di
            accesso](/it/reference/refresh-token). Da esso vengono ricavati il
            tuo conto esercente e l'utente che esegue l'operazione.
          required: true
          schema:
            type: string
            examples:
              - Bearer <your_access_token>
        - name: X-Correlation-ID
          in: header
          description: >-
            Identificatore di traccia (UUID). Restituito nella risposta;
            generato da Localpayment se assente.
          required: false
          schema:
            type: string
            examples:
              - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
        - name: entityId
          in: path
          description: internalId dell'entità.
          required: true
          schema:
            type: string
            examples:
              - 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
            format: uuid
      responses:
        '200':
          description: OK.
          content:
            application/json:
              schema:
                type: object
                properties:
                  internalId:
                    type: string
                    examples:
                      - 7c9e6679-7425-40de-944b-e07fc1f90ae7
                    format: uuid
                    description: >-
                      Identificatore Localpayment dell'entità. Usalo in tutti
                      gli altri endpoint di Entities.
                  externalId:
                    type: string
                    examples:
                      - f47ac10b-58cc-4372-a567-0e02b2c3d479
                    description: Il tuo identificatore, così come inviato.
                  type:
                    type: string
                    examples:
                      - COMPANY
                    enum:
                      - INDIVIDUAL
                      - COMPANY
                    description: INDIVIDUAL o COMPANY.
                  status:
                    type: string
                    examples:
                      - PENDING_KYC
                    enum:
                      - PENDING_KYC
                      - IN_REVIEW
                      - ACTIVE
                      - REJECTED
                      - BLOCKED
                      - CLOSED
                    description: >-
                      Stato dell'entità. Consulta “Stati delle entità e codici
                      di errore”.
                  name:
                    type: string
                    examples:
                      - Example Company S.A.
                  lastname:
                    type:
                      - string
                      - 'null'
                  birthdate:
                    type:
                      - string
                      - 'null'
                    format: date
                  gender:
                    type:
                      - string
                      - 'null'
                  nationality:
                    type:
                      - string
                      - 'null'
                  birthCountry:
                    type:
                      - string
                      - 'null'
                  residenceCountry:
                    type:
                      - string
                      - 'null'
                  occupation:
                    type:
                      - string
                      - 'null'
                  isPep:
                    type: boolean
                    examples:
                      - false
                  incorporationDate:
                    type: string
                    examples:
                      - '2020-01-15'
                    format: date
                  incorporationCountry:
                    type: string
                    examples:
                      - BRA
                  website:
                    type: string
                    examples:
                      - https://www.example.com/new
                  legalRepresentativeName:
                    type: string
                    examples:
                      - Jane Doe
                  email:
                    type: string
                    examples:
                      - test@example.com
                  phone:
                    type: object
                    properties:
                      countryCode:
                        type: string
                        examples:
                          - '55'
                      areaCode:
                        type: string
                        examples:
                          - '11'
                      number:
                        type: string
                        examples:
                          - '999990099'
                  address:
                    type: object
                    properties:
                      street:
                        type: string
                        examples:
                          - Rua Exemplo
                      city:
                        type: string
                        examples:
                          - São Paulo
                      state:
                        type: string
                        examples:
                          - SP
                      zipCode:
                        type: string
                        examples:
                          - 01310-100
                      number:
                        type: string
                        examples:
                          - '200'
                      comment:
                        type: string
                        examples:
                          - Sala 1
                      country:
                        type: string
                        examples:
                          - BRA
                      line2:
                        type: string
                        examples:
                          - Sala 100
                      line3:
                        type: string
                        examples:
                          - Torre A
                  attributes:
                    type: object
                    properties:
                      emailPixKey:
                        type: string
                        examples:
                          - test@example.com
                      socialMedia:
                        type: string
                        examples:
                          - https://www.linkedin.com/company/example
                      numberOfEmployees:
                        type: string
                        examples:
                          - 11-50
                      countryTaxResidence:
                        type: string
                        examples:
                          - BRA
                      sourceOfFundsAndIncome:
                        type: string
                        examples:
                          - sales_of_goods_and_services
                      reasonForAccountOpening:
                        type: string
                        examples:
                          - receive_payments_for_goods_and_services
                      estimatedAnnualRevenueUsd:
                        type: string
                        examples:
                          - 1m_to_10m
                      estimatedMonthlyVolumeUsd:
                        type: string
                        examples:
                          - '50000'
                      businessActivityDescription:
                        type: string
                        examples:
                          - >-
                            Online retail of home goods. Receives payments from
                            end customers in Brazil via PIX.
                  documentationStatus:
                    type: string
                    examples:
                      - COMPLETE
                    enum:
                      - NO_FILES
                      - PARTIAL
                      - COMPLETE
                    description: >-
                      NO_FILES, PARTIAL o COMPLETE: indica se nessuno, alcuni o
                      tutti i documenti dichiarati hanno almeno un file. Misura
                      la presenza di file, non l'approvazione.
                  document:
                    type: object
                    properties:
                      documentId:
                        type: string
                        examples:
                          - 91eaf0c8-844b-42a1-a614-304edbcfa57d
                        format: uuid
                      entityId:
                        type: string
                        examples:
                          - 7c9e6679-7425-40de-944b-e07fc1f90ae7
                        format: uuid
                      type:
                        type: string
                        examples:
                          - CNPJ
                        enum:
                          - DNI
                          - NATIONAL_ID
                          - DRIVER_LICENSE
                          - PASSPORT
                          - CE
                          - CC
                          - CUIT
                          - CUIL
                          - RFC
                          - CURP
                          - CPF
                          - CNPJ
                          - RUC
                          - NIT
                          - TAX_ID
                          - ARTICLES_OF_INCORPORATION
                          - POWER_OF_ATTORNEY
                          - TAX_CERTIFICATE
                          - PAYSLIP
                          - ARCA_REGISTRATION
                          - PROOF_OF_ADDRESS
                          - PROOF_OF_FUNDS
                          - OTHER
                        description: INDIVIDUAL o COMPANY.
                      id:
                        type: string
                        examples:
                          - '00000000000100'
                      issuingCountry:
                        type: string
                        examples:
                          - BRA
                      issueDate:
                        type:
                          - string
                          - 'null'
                        format: date
                      expirationDate:
                        type:
                          - string
                          - 'null'
                        format: date
                      isPrimary:
                        type: boolean
                        examples:
                          - true
                      status:
                        type: string
                        examples:
                          - VERIFIED
                        enum:
                          - PENDING
                          - VERIFIED
                          - REJECTED
                          - EXPIRED
                        description: >-
                          Stato derivato del documento: EXPIRED se
                          expirationDate è già passata, REJECTED se un documento
                          probatorio attivo è stato rifiutato, VERIFIED se tutti
                          i documenti probatori attivi sono approvati,
                          altrimenti PENDING.
                      metadata:
                        type:
                          - object
                          - 'null'
                      proofs:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              examples:
                                - ab62c0eb-e921-4d78-9887-25aa57c56c94
                            documentId:
                              type: string
                              examples:
                                - 91eaf0c8-844b-42a1-a614-304edbcfa57d
                              format: uuid
                            proofType:
                              type: string
                              examples:
                                - DOCUMENT
                              enum:
                                - FRONT
                                - BACK
                                - SELFIE
                                - DOCUMENT
                                - OTHER
                            fileName:
                              type: string
                              examples:
                                - proof_of_address_company.pdf
                            mimeType:
                              type: string
                              examples:
                                - application/pdf
                            sizeBytes:
                              type: integer
                              examples:
                                - 53248
                            verificationStatus:
                              type: string
                              examples:
                                - APPROVED
                              enum:
                                - PENDING
                                - IN_REVIEW
                                - APPROVED
                                - REJECTED
                            verifiedBy:
                              type: string
                              examples:
                                - '67890'
                            verifiedAt:
                              type: string
                              examples:
                                - '2024-01-15T17:20:45Z'
                              format: date-time
                            verificationReason:
                              type:
                                - string
                                - 'null'
                            uploadedBy:
                              type: string
                              examples:
                                - '12345'
                            uploadedAt:
                              type: string
                              examples:
                                - '2024-01-15T17:19:54Z'
                              format: date-time
                            status:
                              type: string
                              examples:
                                - CURRENT
                              enum:
                                - CURRENT
                                - SUPERSEDED
                                - DELETED
                              description: >-
                                Ciclo di vita del documento probatorio: CURRENT
                                (attivo), SUPERSEDED (sostituito da un
                                caricamento più recente dello stesso proofType)
                                o DELETED. Indipendente da verificationStatus.
                            supersededAt:
                              type:
                                - string
                                - 'null'
                              format: date-time
                            supersededBy:
                              type:
                                - string
                                - 'null'
                            replacedByProofId:
                              type:
                                - string
                                - 'null'
                              format: uuid
                            deletedAt:
                              type:
                                - string
                                - 'null'
                              format: date-time
                            deletedBy:
                              type:
                                - string
                                - 'null'
                            inVerification:
                              type: boolean
                              examples:
                                - false
                      createdAt:
                        type: string
                        examples:
                          - '2024-01-15T17:18:53Z'
                        format: date-time
                        description: Timestamp UTC in formato ISO 8601.
                      updatedAt:
                        type: string
                        examples:
                          - '2024-01-15T17:19:26Z'
                        format: date-time
                        description: Timestamp UTC in formato ISO 8601.
                    description: >-
                      Il documento principale con il relativo documentId
                      (necessario per caricare i file), lo stato derivato e i
                      proofs[] correnti.
                  documents:
                    type: array
                    items:
                      type: object
                      properties:
                        documentId:
                          type: string
                          examples:
                            - a4f9d2ed-c365-4a0b-b775-9278c039af93
                          format: uuid
                        entityId:
                          type: string
                          examples:
                            - 7c9e6679-7425-40de-944b-e07fc1f90ae7
                          format: uuid
                        type:
                          type: string
                          examples:
                            - ARTICLES_OF_INCORPORATION
                          enum:
                            - DNI
                            - NATIONAL_ID
                            - DRIVER_LICENSE
                            - PASSPORT
                            - CE
                            - CC
                            - CUIT
                            - CUIL
                            - RFC
                            - CURP
                            - CPF
                            - CNPJ
                            - RUC
                            - NIT
                            - TAX_ID
                            - ARTICLES_OF_INCORPORATION
                            - POWER_OF_ATTORNEY
                            - TAX_CERTIFICATE
                            - PAYSLIP
                            - ARCA_REGISTRATION
                            - PROOF_OF_ADDRESS
                            - PROOF_OF_FUNDS
                            - OTHER
                          description: INDIVIDUAL o COMPANY.
                        id:
                          type: string
                          examples:
                            - ART-00000000000100
                        issuingCountry:
                          type: string
                          examples:
                            - BRA
                        issueDate:
                          type:
                            - string
                            - 'null'
                          format: date
                        expirationDate:
                          type:
                            - string
                            - 'null'
                          format: date
                        isPrimary:
                          type: boolean
                          examples:
                            - false
                        status:
                          type: string
                          examples:
                            - VERIFIED
                          enum:
                            - PENDING
                            - VERIFIED
                            - REJECTED
                            - EXPIRED
                          description: >-
                            Stato derivato del documento: EXPIRED se
                            expirationDate è già passata, REJECTED se un
                            documento probatorio attivo è stato rifiutato,
                            VERIFIED se tutti i documenti probatori attivi sono
                            approvati, altrimenti PENDING.
                        metadata:
                          type:
                            - object
                            - 'null'
                        proofs:
                          type: array
                          items:
                            type: object
                            properties:
                              id:
                                type: string
                                examples:
                                  - 0b2e18fb-1b61-402c-be80-863735d3fa4d
                              documentId:
                                type: string
                                examples:
                                  - a4f9d2ed-c365-4a0b-b775-9278c039af93
                                format: uuid
                              proofType:
                                type: string
                                examples:
                                  - DOCUMENT
                                enum:
                                  - FRONT
                                  - BACK
                                  - SELFIE
                                  - DOCUMENT
                                  - OTHER
                              fileName:
                                type: string
                                examples:
                                  - certificate_of_incorporation.pdf
                              mimeType:
                                type: string
                                examples:
                                  - application/pdf
                              sizeBytes:
                                type: integer
                                examples:
                                  - 55296
                              verificationStatus:
                                type: string
                                examples:
                                  - APPROVED
                                enum:
                                  - PENDING
                                  - IN_REVIEW
                                  - APPROVED
                                  - REJECTED
                              verifiedBy:
                                type: string
                                examples:
                                  - '67890'
                              verifiedAt:
                                type: string
                                examples:
                                  - '2024-01-15T17:20:43Z'
                                format: date-time
                              verificationReason:
                                type:
                                  - string
                                  - 'null'
                              uploadedBy:
                                type: string
                                examples:
                                  - '12345'
                              uploadedAt:
                                type: string
                                examples:
                                  - '2024-01-15T17:19:52Z'
                                format: date-time
                              status:
                                type: string
                                examples:
                                  - CURRENT
                                enum:
                                  - CURRENT
                                  - SUPERSEDED
                                  - DELETED
                                description: >-
                                  Ciclo di vita del documento probatorio:
                                  CURRENT (attivo), SUPERSEDED (sostituito da un
                                  caricamento più recente dello stesso
                                  proofType) o DELETED. Indipendente da
                                  verificationStatus.
                              supersededAt:
                                type:
                                  - string
                                  - 'null'
                                format: date-time
                              supersededBy:
                                type:
                                  - string
                                  - 'null'
                              replacedByProofId:
                                type:
                                  - string
                                  - 'null'
                                format: uuid
                              deletedAt:
                                type:
                                  - string
                                  - 'null'
                                format: date-time
                              deletedBy:
                                type:
                                  - string
                                  - 'null'
                              inVerification:
                                type: boolean
                                examples:
                                  - false
                        createdAt:
                          type: string
                          examples:
                            - '2024-01-15T17:18:53Z'
                          format: date-time
                          description: Timestamp UTC in formato ISO 8601.
                        updatedAt:
                          type: string
                          examples:
                            - '2024-01-15T17:19:26Z'
                          format: date-time
                          description: Timestamp UTC in formato ISO 8601.
                    description: >-
                      Gli altri documenti dichiarati (quello principale è solo
                      in document), con la stessa struttura.
                  version:
                    type: integer
                    examples:
                      - 3
                    description: >-
                      Versione dell'entità. Corrisponde all'header ETag;
                      rinviala come If-Match nella richiesta PATCH.
                  createdAt:
                    type: string
                    examples:
                      - '2024-01-15T17:18:53Z'
                    format: date-time
                    description: Timestamp UTC in formato ISO 8601.
                  updatedAt:
                    type: string
                    examples:
                      - '2024-01-15T17:19:26Z'
                    format: date-time
                    description: Timestamp UTC in formato ISO 8601.
                  customFieldSchemaVersion:
                    type: integer
                    examples:
                      - 9
                    description: >-
                      Versione dello schema dei campi personalizzati usata per
                      convalidare attributes, oppure null.
                  uboCount:
                    type: integer
                    examples:
                      - 2
                    description: >-
                      Numero di collegamenti UBO attivi. Solo nel dettaglio di
                      una COMPANY; altrimenti null.
                  uboRequirementMet:
                    type: boolean
                    examples:
                      - true
                    description: >-
                      true quando uboCount è 1 o più. Solo nel dettaglio di una
                      COMPANY.
              examples:
                Example 1:
                  value:
                    internalId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                    externalId: f47ac10b-58cc-4372-a567-0e02b2c3d479
                    type: COMPANY
                    status: PENDING_KYC
                    name: Example Company S.A.
                    lastname: null
                    birthdate: null
                    gender: null
                    nationality: null
                    birthCountry: null
                    residenceCountry: null
                    occupation: null
                    isPep: false
                    incorporationDate: '2020-01-15'
                    incorporationCountry: BRA
                    website: https://www.example.com/new
                    legalRepresentativeName: Jane Doe
                    email: test@example.com
                    phone:
                      countryCode: '55'
                      areaCode: '11'
                      number: '999990099'
                    address:
                      street: Rua Exemplo
                      city: São Paulo
                      state: SP
                      zipCode: 01310-100
                      number: '200'
                      comment: Sala 1
                      country: BRA
                      line2: Sala 100
                      line3: Torre A
                    attributes:
                      emailPixKey: test@example.com
                      socialMedia: https://www.linkedin.com/company/example
                      numberOfEmployees: 11-50
                      countryTaxResidence: BRA
                      sourceOfFundsAndIncome: sales_of_goods_and_services
                      reasonForAccountOpening: receive_payments_for_goods_and_services
                      estimatedAnnualRevenueUsd: 1m_to_10m
                      estimatedMonthlyVolumeUsd: '50000'
                      businessActivityDescription: >-
                        Online retail of home goods. Receives payments from end
                        customers in Brazil via PIX.
                    documentationStatus: COMPLETE
                    document:
                      documentId: 91eaf0c8-844b-42a1-a614-304edbcfa57d
                      entityId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                      type: CNPJ
                      id: '00000000000100'
                      issuingCountry: BRA
                      issueDate: null
                      expirationDate: null
                      isPrimary: true
                      status: VERIFIED
                      metadata: null
                      proofs:
                        - id: ab62c0eb-e921-4d78-9887-25aa57c56c94
                          documentId: 91eaf0c8-844b-42a1-a614-304edbcfa57d
                          proofType: DOCUMENT
                          fileName: proof_of_address_company.pdf
                          mimeType: application/pdf
                          sizeBytes: 53248
                          verificationStatus: APPROVED
                          verifiedBy: '67890'
                          verifiedAt: '2024-01-15T17:20:45Z'
                          verificationReason: null
                          uploadedBy: '12345'
                          uploadedAt: '2024-01-15T17:19:54Z'
                          status: CURRENT
                          supersededAt: null
                          supersededBy: null
                          replacedByProofId: null
                          deletedAt: null
                          deletedBy: null
                          inVerification: false
                      createdAt: '2024-01-15T17:18:53Z'
                      updatedAt: '2024-01-15T17:19:26Z'
                    documents:
                      - documentId: a4f9d2ed-c365-4a0b-b775-9278c039af93
                        entityId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                        type: ARTICLES_OF_INCORPORATION
                        id: ART-00000000000100
                        issuingCountry: BRA
                        issueDate: null
                        expirationDate: null
                        isPrimary: false
                        status: VERIFIED
                        metadata: null
                        proofs:
                          - id: 0b2e18fb-1b61-402c-be80-863735d3fa4d
                            documentId: a4f9d2ed-c365-4a0b-b775-9278c039af93
                            proofType: DOCUMENT
                            fileName: certificate_of_incorporation.pdf
                            mimeType: application/pdf
                            sizeBytes: 55296
                            verificationStatus: APPROVED
                            verifiedBy: '67890'
                            verifiedAt: '2024-01-15T17:20:43Z'
                            verificationReason: null
                            uploadedBy: '12345'
                            uploadedAt: '2024-01-15T17:19:52Z'
                            status: CURRENT
                            supersededAt: null
                            supersededBy: null
                            replacedByProofId: null
                            deletedAt: null
                            deletedBy: null
                            inVerification: false
                        createdAt: '2024-01-15T17:18:53Z'
                        updatedAt: '2024-01-15T17:19:26Z'
                      - documentId: 5ca3e868-2b76-4390-b25a-5d10c0db8516
                        entityId: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                        type: TAX_ID
                        id: 00.000.000/0001-00
                        issuingCountry: BRA
                        issueDate: '2024-01-15'
                        expirationDate: '2034-01-15'
                        isPrimary: false
                        status: VERIFIED
                        metadata:
                          tin: formatted
                        proofs:
                          - id: 13db8888-d5e6-4c47-95ce-1b962a63645c
                            documentId: 5ca3e868-2b76-4390-b25a-5d10c0db8516
                            proofType: DOCUMENT
                            fileName: company_tax_identification_document.pdf
                            mimeType: application/pdf
                            sizeBytes: 53248
                            verificationStatus: APPROVED
                            verifiedBy: '67890'
                            verifiedAt: '2024-01-15T17:20:44Z'
                            verificationReason: null
                            uploadedBy: '12345'
                            uploadedAt: '2024-01-15T17:19:53Z'
                            status: CURRENT
                            supersededAt: null
                            supersededBy: null
                            replacedByProofId: null
                            deletedAt: null
                            deletedBy: null
                            inVerification: false
                        createdAt: '2024-01-15T17:18:54Z'
                        updatedAt: '2024-01-15T17:19:32Z'
                    version: 3
                    createdAt: '2024-01-15T17:18:53Z'
                    updatedAt: '2024-01-15T17:19:26Z'
                    customFieldSchemaVersion: 9
                    uboCount: 2
                    uboRequirementMet: true
          headers:
            ETag:
              description: >-
                Versione dell'entità. Rinviala come If-Match in “Aggiornare
                un'entità”.
              schema:
                type: string
                examples:
                  - '"0"'
        '400':
          description: >-
            Richiesta non valida. VALIDATION_ERROR: un campo, un header, un
            parametro di percorso o di query è mancante, sconosciuto o non
            valido. details[] elenca il campo e il problema.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Dettagli del problema secondo RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve riepilogo del problema.
                  status:
                    type: integer
                    description: Codice di stato HTTP.
                  detail:
                    type: string
                    description: Spiegazione leggibile.
                  instance:
                    type: string
                    description: Percorso della richiesta.
                  code:
                    type: string
                    description: >-
                      Codice di errore stabile e leggibile automaticamente. Basa
                      la tua logica su questo valore.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificatore della richiesta. Indicalo quando contatti
                      l'assistenza.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campi non validi, se applicabile.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - VALIDATION_ERROR:
                  value:
                    type: about:blank
                    title: Validation error
                    status: 400
                    detail: >-
                      A field, header, path or query parameter is missing,
                      unknown or invalid. details[] lists field and issue.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    code: VALIDATION_ERROR
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details:
                      - field: externalId
                        issue: REQUIRED
        '401':
          description: >-
            Non autorizzato. UNAUTHORIZED: token di accesso mancante o non
            valido.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Dettagli del problema secondo RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve riepilogo del problema.
                  status:
                    type: integer
                    description: Codice di stato HTTP.
                  detail:
                    type: string
                    description: Spiegazione leggibile.
                  instance:
                    type: string
                    description: Percorso della richiesta.
                  code:
                    type: string
                    description: >-
                      Codice di errore stabile e leggibile automaticamente. Basa
                      la tua logica su questo valore.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificatore della richiesta. Indicalo quando contatti
                      l'assistenza.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campi non validi, se applicabile.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - UNAUTHORIZED:
                  value:
                    type: about:blank
                    title: Unauthorized
                    status: 401
                    detail: Missing or invalid access token.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    code: UNAUTHORIZED
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
        '404':
          description: >-
            Non trovato. ENTITY_NOT_FOUND: l'entità non esiste o appartiene a un
            altro esercente.
          content:
            application/problem+json:
              schema:
                type: object
                description: >-
                  Dettagli del problema secondo RFC 9457
                  (application/problem+json).
                properties:
                  type:
                    type: string
                    examples:
                      - about:blank
                  title:
                    type: string
                    description: Breve riepilogo del problema.
                  status:
                    type: integer
                    description: Codice di stato HTTP.
                  detail:
                    type: string
                    description: Spiegazione leggibile.
                  instance:
                    type: string
                    description: Percorso della richiesta.
                  code:
                    type: string
                    description: >-
                      Codice di errore stabile e leggibile automaticamente. Basa
                      la tua logica su questo valore.
                  correlationId:
                    type: string
                    format: uuid
                    description: >-
                      Identificatore della richiesta. Indicalo quando contatti
                      l'assistenza.
                    examples:
                      - 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                  details:
                    type: array
                    description: Campi non validi, se applicabile.
                    items:
                      type: object
                      properties:
                        field:
                          type: string
                          examples:
                            - numberOfEmployees
                        issue:
                          type: string
                          examples:
                            - NOT_IN_OPTIONS
              examples:
                Example 1 - ENTITY_NOT_FOUND:
                  value:
                    type: about:blank
                    title: Not found
                    status: 404
                    detail: The entity does not exist or belongs to another merchant.
                    instance: >-
                      /api/entity/v1/entities/5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    code: ENTITY_NOT_FOUND
                    correlationId: 0e8f6a2c-5b3d-4c1e-9a7f-6d5e4c3b2a10
                    details: []
      security:
        - token: []
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.