> ## 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 lo stato di un conto virtuale

Questo endpoint recupera lo stato e i dettagli di uno specifico conto virtuale che hai creato in precedenza con l'endpoint [Creare un conto virtuale](https://docs.localpayment.com/it/reference/create-virtual-account.md). Puoi usare questo endpoint per verificare se il conto è attivo e pronto a ricevere pagamenti.


## OpenAPI

````yaml openapi/it/localpayment.json GET /api/virtual-account/{externalId}
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/virtual-account/{externalId}:
    get:
      summary: Ottenere lo stato di un conto virtuale
      operationId: get-virtual-account-status
      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).
          required: true
          schema:
            type: string
        - name: externalId
          in: path
          description: >-
            Identificatore univoco del conto virtuale che vuoi gestire. Deve
            essere esattamente il valore externalId che hai fornito durante la
            creazione del conto. Usa questo identificatore per specificare il
            conto di destinazione per operazioni come il recupero del suo stato
            o l'eliminazione.
          required: true
          schema:
            type: string
            pattern: '[a-zA-Z0-9\- ]+'
            examples:
              - 9c590364-b6b4-116b-cf09-d63e8681c8fc
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  currency:
                    type: string
                    enum:
                      - ARS
                      - BRL
                      - CLP
                      - USD
                      - MXN
                      - PEN
                    description: '[Codici valuta](/it/reference/currency-codes).'
                  externalId:
                    type: string
                    description: >-
                      Identificatore univoco del conto virtuale. È lo stesso
                      externalId fornito nella tua richiesta e conferma che i
                      dati restituiti corrispondono al conto corretto.
                  internalId:
                    type: string
                    description: Identificatore della transazione Localpayment.
                  accountNumber:
                    type: string
                    description: Numero di conto Localpayment.
                  beneficiary:
                    type: object
                    title: beneficiario
                    description: "Persona fisica o entità che riceverà i fondi versati su questo conto virtuale. Il beneficiario è il destinatario finale del denaro e non è necessariamente il proprietario legale o il titolare del conto virtuale stesso.\r\n"
                    properties:
                      type:
                        type: string
                        enum:
                          - COMPANY
                          - INDIVIDUAL
                        description: Tipo di beneficiario.
                      name:
                        type: string
                        description: Nome del beneficiario.
                      lastName:
                        type: string
                        description: Cognome del beneficiario.
                      fullName:
                        type: string
                        description: Nome completo del beneficiario.
                      document:
                        type: object
                        description: Documento d'identità del beneficiario.
                        properties:
                          type:
                            type: string
                            description: >-
                              Il [tipo di documento
                              d'identità](/it/reference/identity-document-types),
                              ad esempio un numero di identità nazionale, un
                              numero di previdenza sociale o una patente di
                              guida, a seconda del paese di emissione.
                            examples:
                              - RUC
                          id:
                            type: string
                            description: >-
                              Numero del documento d'identità (di solito un
                              numero). Deve essere un numero valido secondo le
                              regole del tipo di documento specifico.
                            examples:
                              - '1791234561009'
                        examples:
                          - type: RUC
                            id: '1791234561009'
                      address:
                        type: object
                        description: >-
                          Indirizzo del beneficiario. Per le risposte che
                          includono un oggetto merchant, l'indirizzo del
                          beneficiario è indicato lì.
                        properties:
                          street:
                            type: string
                            description: Nome della via.
                          number:
                            type: string
                            description: "Numero civico.\r\n"
                          city:
                            type: string
                            description: Città.
                          state:
                            type: string
                            description: Stato
                          country:
                            type: string
                            description: Paese dell'indirizzo.
                          zipCode:
                            type: string
                            description: Codice postale.
                          comment:
                            type: string
                            description: Informazioni aggiuntive sull'indirizzo.
                      bank:
                        type: object
                        properties:
                          branch:
                            type: object
                            description: Dettagli della filiale bancaria.
                            properties:
                              code:
                                type: string
                                description: Codice della filiale.
                              name:
                                type: string
                                description: Nome della filiale
                          account:
                            type: object
                            description: Dettagli del conto bancario del beneficiario.
                            properties:
                              number:
                                type: string
                                description: Numero di conto.
                              aliases:
                                type: array
                                description: >-
                                  Array di alias del conto (ad es.
                                  identificatori univoci del conto). Solo per il
                                  **Brasile**.
                                items:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      description: Tipo di alias (ad es. `RandomKeyCode`).
                                    value:
                                      type: string
                                      description: Valore dell'alias.
                      merchant:
                        type: object
                        description: >-
                          L'oggetto merchant nella risposta dell'API contiene i
                          dati della tua azienda, a cui il nostro sistema fa
                          riferimento internamente. In questo modo, anche se
                          siamo noi il titolare legale del conto ai fini della
                          conformità, tutte le transazioni e il conto stesso
                          vengono attribuiti correttamente alla tua attività per
                          la reportistica e la riconciliazione.
                        properties:
                          type:
                            type: string
                            enum:
                              - INDIVIDUAL
                              - COMPANY
                            description: Tipo di esercente.
                          name:
                            type: string
                            description: Nome dell'esercente.
                          lastName:
                            type: string
                            description: Cognome dell'esercente.
                          fullName:
                            type: string
                            description: Nome completo dell'esercente.
                          document:
                            type: object
                            description: Documento d'identità dell'esercente.
                            properties:
                              type:
                                type: string
                                description: >-
                                  Il [tipo di documento
                                  d'identità](/it/reference/identity-document-types),
                                  ad esempio un numero di identità nazionale, un
                                  numero di previdenza sociale o una patente di
                                  guida, a seconda del paese di emissione.
                              id:
                                type: string
                                description: >-
                                  Numero del documento d'identità (di solito un
                                  numero). Deve essere un numero valido secondo
                                  le regole del tipo di documento specifico.
                          address:
                            type: object
                            description: Indirizzo del beneficiario.
                            properties:
                              street:
                                type: string
                                description: Nome della via.
                              number:
                                type: string
                                description: |
                                  Numero civico.
                              city:
                                type: string
                                description: |
                                  Città.
                              state:
                                type: string
                                description: Stato
                              country:
                                type: string
                                description: Paese dell'indirizzo.
                              zipCode:
                                type: string
                                description: Codice postale.
                              comment:
                                type: string
                                description: Informazioni aggiuntive sull'indirizzo.
                          website:
                            type: string
                            description: Sito web del beneficiario.
                      website:
                        type: string
                        description: >-
                          Sito web del beneficiario. Per le risposte che
                          includono un oggetto merchant, il sito web del
                          beneficiario è indicato lì.
                    examples:
                      - type: COMPANY
                        name: string
                        document:
                          type: RUC
                          id: '1791234561009'
                        lastName: string
                        fullName: string
                        bank:
                          branch: {}
                          account:
                            number: string
                            aliases:
                              - type: string
                                value: string
                            owner:
                              document: {}
                  status:
                    type: object
                    title: status
                    description: Stato dell'operazione.
                    properties:
                      code:
                        type: string
                        description: >-
                          [Codice di
                          stato](/it/reference/transaction-status-error-codes).
                        examples:
                          - '200'
                      description:
                        type: string
                        description: >-
                          [Descrizione dello
                          stato](/it/reference/transaction-status-error-codes).
                        examples:
                          - COMPLETED
                      detail:
                        type: string
                        description: Informazioni aggiuntive sullo stato.
                        examples:
                          - Virtual account has been created
                  errors:
                    type: array
                    description: >-
                      Array degli errori verificatisi durante la transazione. Se
                      la transazione è andata a buon fine, l'array sarà vuoto.
                    items:
                      type: object
                  disabled:
                    type: boolean
                    description: Specifica se il conto virtuale è abilitato o disabilitato.
                x-examples:
                  Example 1:
                    currency: MXN
                    externalId: 9c592264-a6b4-416b-9f09-d61e8681c8fc
                    internalId: dbd8d9cb-6d4a-49a5-b709-e6926bbf0b29
                    accountNumber: '{{accountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: FirtName
                      document:
                        type: RFC
                        id: EXTF900101NI1
                      fullName: FirtName LastName
                      lastName: LastName
                    status:
                      code: '100'
                      description: INPROGRESS
                      detail: Virtual account in progress
                    errors: []
              examples:
                100-INPROGRESS:
                  value:
                    currency: MXN
                    externalId: fb5c9683-cfac-40c9-b81d-ad99de86c0d2
                    internalId: 9a8db65f-be31-42fb-8ebd-5fffd83bd6c6
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: Zhang
                      fullName: Zhang Wei
                      lastName: Wei
                      document:
                        type: RFC
                        id: PECJ800101ABC
                      address:
                        street: Calle 34
                        number: '123'
                        city: Guadalajara
                        state: Jalisco
                        country: Mexico
                    status:
                      code: '100'
                      description: INPROGRESS
                      detail: Virtual account in progress
                    errors: []
                200-ARG-COMPLETED-LOCAL COMPANY:
                  value:
                    currency: ARS
                    externalId: de14bcf2-15ee-22e3-ab59-99c3fcba31e8
                    internalId: 5ba31ea0-669b-43f6-88a1-1601f3cade0a
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: ACME INTERNATIONAL LTD
                      fullName: ACME INTERNATIONAL LTD
                      document:
                        type: CUIT
                        id: 30-71234567-9
                      bank:
                        code: '130'
                        branch:
                          code: '3313'
                        account:
                          number: '1303313111111111111111'
                      address:
                        street: Av. Corrientes
                        number: '1234'
                        city: Buenos Aires
                        state: CABA
                        country: Argentina
                      website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: Virtual account has been created
                    errors: []
                    disabled: false
                200-ARG-COMPLETED-FOREIGN COMPANY:
                  value:
                    currency: ARS
                    externalId: de14bcf2-15ee-22e3-ab59-99c3fcba31e8
                    internalId: 5ba31ea0-669b-43f6-88a1-1601f3cade0a
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: LOCALPAYMENT S.R.L.
                      fullName: LOCALPAYMENT S.R.L
                      document:
                        type: CUIT
                        id: 30-71234562-8
                      bank:
                        code: '130'
                        branch:
                          code: '3313'
                        account:
                          number: '1303313111111111111111'
                      merchant:
                        type: COMPANY
                        name: ACME INTERNATIONAL LTD
                        fullName: ACME INTERNATIONAL LTD
                        document:
                          type: TAX ID
                          id: '20342231111'
                        address:
                          street: Calle 34
                          number: '123'
                          city: Rio de Janeiro
                          state: Rio de Janeiro
                          country: Brazil
                        website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: Virtual account has been created
                    errors: []
                    disabled: false
                200-ARG-COMPLETED-FOREIGN INDIVIDUAL:
                  value:
                    currency: ARS
                    externalId: de14bcf2-15ee-22e3-ab59-99c3fcba31e8
                    internalId: 5ba31ea0-669b-43f6-88a1-1601f3cade0a
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: LOCALPAYMENT S.R.L.
                      fullName: LOCALPAYMENT S.R.L
                      document:
                        type: CUIT
                        id: 30-71234562-8
                      bank:
                        code: '130'
                        branch:
                          code: '3313'
                        account:
                          number: '1303313111111111111111'
                      merchant:
                        type: INDIVIDUAL
                        name: Zhang
                        lastName: Wei
                        fullName: Zhang Wei
                        document:
                          type: TAX ID
                          id: '20342231111'
                        address:
                          street: Calle 34
                          number: '123'
                          city: Rio de Janeiro
                          state: Rio de Janeiro
                          country: Brazil
                        website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: Virtual account has been created
                    errors: []
                    disabled: false
                200-BRA-COMPLETED-COMPANY:
                  value:
                    currency: BRL
                    externalId: 7ad8bd1f-7227-4de7-9683-ff1f8ad635c5
                    internalId: 29d34118-4574-4928-a4c1-9d8a1a14271e
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: LP DO BRASIL INSTITUICAO DE PAGAMENTOS LTDA
                      fullName: LP DO BRASIL INSTITUICAO DE PAGAMENTOS LTDA
                      document:
                        type: CNPJ
                        id: '34669130000133'
                      bank:
                        code: '450'
                        name: Fitbank
                        branch:
                          code: '0001'
                        account:
                          type: s
                          number: '107367941234'
                          alias:
                            - type: RandomKeyCode
                              value: 92c11197-565b-4a2d-8a3a-7c97bc68c7c1
                        merchant:
                          type: COMPANY
                          name: ACME INTERNATIONAL LTD
                          fullName: ACME INTERNATIONAL LTD
                          document:
                            type: TAX ID
                            id: '20342231111'
                          address:
                            street: Calle 34
                            number: '123'
                            city: Rio de Janeiro
                            state: Rio de Janeiro
                            country: Brazil
                          website: https://yongxin.technology.com
                      status:
                        code: '200'
                        description: COMPLETED
                        detail: Virtual account has been Completed
                      errors: []
                      disabled: false
                200-BRA-COMPLETED-INDIVIDUAL:
                  value:
                    currency: BRL
                    externalId: 7ad8bd1f-7227-4de7-9683-ff1f8ad635c5
                    internalId: 29d34118-4574-4928-a4c1-9d8a1a14271e
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: LP DO BRASIL INSTITUICAO DE PAGAMENTOS LTDA
                      fullName: LP DO BRASIL INSTITUICAO DE PAGAMENTOS LTDA
                      document:
                        type: CNPJ
                        id: '34669130000133'
                      bank:
                        code: '450'
                        name: Fitbank
                        branch:
                          code: '0001'
                        account:
                          type: s
                          number: '107367941234'
                          alias:
                            - type: RandomKeyCode
                              value: 92c11197-565b-4a2d-8a3a-7c97bc68c7c1
                        merchant:
                          type: INDIVIDUAL
                          name: Zhang
                          lastName: Wei
                          fullName: Zhang Wei
                          document:
                            type: TAX ID
                            id: '20342231111'
                          address:
                            street: Calle 34
                            number: '123'
                            city: Rio de Janeiro
                            state: Rio de Janeiro
                            country: Brazil
                          website: https://yongxin.technology.com
                      status:
                        code: '200'
                        description: COMPLETED
                        detail: Virtual account has been Completed
                      errors: []
                      disabled: false
                200-MXN-COMPLETED-INDIVIDUAL:
                  value:
                    currency: MXN
                    externalId: 9c590364-b6b4-116b-cf09-d63e8681c8fc
                    internalId: dbd8d5cb-6d4a-4a15-b7c9-b6526bbf0b29
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: Zhang
                      lastName: Wei
                      fullName: Zhang Wei
                      document:
                        type: TAX ID
                        id: '20342231111'
                      address:
                        street: Calle 34
                        number: '123'
                        city: Guadalajara
                        state: Jalisco
                        country: Mexico
                      bank:
                        branch:
                          code: '458'
                        account:
                          number: '646011319800023123'
                      website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: Virtual account has been created
                    errors: []
                    disabled: false
                200-PER-COMPLETED-INDIVIDUAL:
                  value:
                    currency: PEN
                    externalId: 5ba31ea0-669b-43f6-88a1-1601f3cade0a
                    internalId: f1f16e3e-fb1f-4452-9662-1319dedbac0c
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: Zhang
                      lastName: Wei
                      fullName: Zhang Wei
                      document:
                        type: TAX ID
                        id: '20342231111'
                      address:
                        street: Calle 34
                        number: '123'
                        city: Quito
                        state: Suarez
                        country: Peru
                      bank:
                        account:
                          number: '92211111111111111111'
                      website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: COMPLETED
                    errors: []
                    disabled: false
                908-DELETED:
                  value:
                    currency: MXN
                    externalId: a79aabec-16c6-4a84-8abe-be2dcd2e07a1
                    internalId: d710312c-8c3f-4b65-8e62-7f83eeba321a
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: John
                      document:
                        type: RFC
                        id: EXTF900101NI1
                      bank:
                        branch: {}
                        account:
                          number: '646011319800023123'
                          aliases: []
                          owner:
                            document: {}
                      fullName: John Doe
                      lastName: Doe
                    status:
                      code: '908'
                      description: DELETED
                      detail: Virtual account has been deleted
                    errors: []
                300-DISABLED:
                  value:
                    currency: MXN
                    externalId: e36eff59-22d4-ccf0-bf0c-99dc51798f4b
                    internalId: c09095fb-6a4e-17cf-9343-9d9452b0f290
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: John
                      document:
                        type: RFC
                        id: EXTF900101NI1
                      bank:
                        branch: {}
                        account:
                          number: '646011319800023123'
                          aliases: []
                          owner:
                            document: {}
                      fullName: John Doe
                      lastName: Doe
                    status:
                      code: '300'
                      description: DISABLED
                      detail: Virtual account disabled
                    errors: []
                200-COL-COMPLETED-FOREIGN COMPANY:
                  value:
                    currency: COP
                    externalId: cf194632-7ec4-4a44-9b92-9bbacad5349e
                    internalId: b406472d-e5df-4ca3-8829-3e3df0948b3d
                    accountNumber: '{{accountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: LOCALPAYMENT
                      lastName: COLOMBIA SAS.
                      fullName: LOCALPAYMENT COLOMBIA SAS.
                      document:
                        type: NIT
                        id: '9012812345'
                      bank:
                        branch: {}
                        account:
                          type: KEY
                          number: '@LPZHANG1234'
                      address:
                        street: cra 49
                        number: '108'
                        city: MEDELLIN
                        state: Antioquia
                        country: Colombia
                    merchant:
                      type: COMPANY
                      name: ACME INTERNATIONAL LTD
                      lastName: ''
                      fullName: ACME INTERNATIONAL LTD
                      document:
                        type: NIT
                        id: '1111111111'
                      address:
                        street: Calle 34
                        number: '34'
                        city: MEDELLIN
                        state: Antioquia
                        country: Colombia
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: Virtual account has been created
                    errors: []
                    disabled: false
                200-CHL-COMPLETED-INDIVIDUAL:
                  value:
                    currency: CLP
                    externalId: c4894e1a-b1a1-49fc-acb8-b48d30f19208
                    internalId: dcf62e96-b753-41b1-8064-6254c7e0abc1
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: INDIVIDUAL
                      name: Zhang
                      lastName: Wei
                      fullName: Zhang Wei
                      document:
                        type: TAX ID
                        id: '20342231111'
                      address:
                        street: Calle Merced
                        number: '812'
                        city: Santiago
                        state: Region Metropolitana
                        country: Chile
                      bank:
                        account:
                          number: '901000000256'
                      website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: COMPLETED
                    errors: []
                    disabled: false
                200-CHL-COMPLETED-COMPANY:
                  value:
                    currency: CLP
                    externalId: b367854e-3331-4ed4-ae8c-01f653809a27
                    internalId: 921792b6-5aac-4e41-a79b-ab080ad7f649
                    accountNumber: '{{yourLocalpaymentAccountNumber}}'
                    beneficiary:
                      type: COMPANY
                      name: ACME INTERNATIONAL LTD
                      fullName: ACME INTERNATIONAL LTD
                      document:
                        id: '20342231111'
                        type: TAX ID
                      bank:
                        account:
                          number: '901000000257'
                      address:
                        street: Calle Merced
                        number: '812'
                        city: Santiago
                        state: Region Metropolitana
                        country: Chile
                      website: https://yongxin.technology.com
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: COMPLETED
                    errors: []
                    disabled: false
        '401':
          description: Non autorizzato.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Informazioni aggiuntive della risposta.
                  code:
                    type: string
                    description: Codice di stato.
                  messages:
                    type: array
                    description: Elenco dei messaggi.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Classe del token.
                        token_type:
                          type: string
                          description: Tipo di token.
                        message:
                          type: string
                          description: Messaggio con informazioni aggiuntive.
                x-examples:
                  Example 1:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
              examples:
                401 - Token is invalid or expired:
                  value:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
        '404':
          description: Non trovato
          content:
            application/json:
              schema:
                type: object
                properties:
                  timestamp:
                    type: string
                    description: Tempo di esecuzione del servizio.
                  status:
                    type: integer
                    description: Codice di stato dell'errore.
                  error:
                    type: string
                    description: Descrizione dell'errore.
                  message:
                    type: string
                    description: Messaggio con informazioni aggiuntive.
                  path:
                    type: string
                    description: Percorso del servizio.
                x-examples:
                  Example 1:
                    timestamp: '2025-01-06T23:03:33.168+00:00'
                    status: 404
                    error: Not Found
                    message: >-
                      Virtual account not found with externalId:
                      dc21d8be-f8cc-4bb3-ac4a-8875f48a0f041
                    path: /virtual-account/dc21d8be-f8cc-4bb3-ac4a-8875f48a0f041
              examples:
                404 -Virtual account not found.:
                  value:
                    timestamp: '2025-01-06T23:03:33.168+00:00'
                    status: 404
                    error: Not Found
                    message: >-
                      Virtual account not found with externalId:
                      dc21d8be-f8cc-4bb3-ac4a-8875f48a0f041
                    path: /virtual-account/dc21d8be-f8cc-4bb3-ac4a-8875f48a0f041
      security:
        - token: []
      servers:
        - url: https://api.stage.localpayment.com
          description: Stage
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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