> ## 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.

# Get Virtual Account Status

This endpoint retrieves the status and details of a specific virtual account that you previously created using the [Create a Virtual Account](https://docs.localpayment.com/reference/create-virtual-account.md) endpoint. You can use this endpoint to check if the account is active and ready to receive payments.


## OpenAPI

````yaml openapi/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: Get Virtual Account Status
      operationId: get-virtual-account-status
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer access token for authentication. This token is obtained from
            the [Get Access Token](/reference/get-token) or [Refresh Access
            Token](/reference/refresh-token) endpoints.
          required: true
          schema:
            type: string
        - name: externalId
          in: path
          description: >-
            The unique identifier of the virtual account you want to manage.
            This must be the exact externalId value you provided when creating
            the account. Use this identifier to specify the target account for
            operations such as retrieving its status or deleting it.
          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: '[Currency codes](/reference/currency-codes).'
                  externalId:
                    type: string
                    description: >-
                      The unique identifier for the virtual account. This is the
                      same externalId supplied in your request, confirming the
                      data returned corresponds to the correct account.
                  internalId:
                    type: string
                    description: Localpayment transaction identifier.
                  accountNumber:
                    type: string
                    description: Localpayment account number.
                  beneficiary:
                    type: object
                    title: beneficiary
                    description: "The individual or entity that will receive the funds paid into this virtual account. The beneficiary is the final recipient of the money and is not necessarily the legal owner or holder of the virtual account itself.\r\n"
                    properties:
                      type:
                        type: string
                        enum:
                          - COMPANY
                          - INDIVIDUAL
                        description: Beneficiary type.
                      name:
                        type: string
                        description: Beneficiary name.
                      lastName:
                        type: string
                        description: Beneficiary's last name.
                      fullName:
                        type: string
                        description: Beneficiary's full name.
                      document:
                        type: object
                        description: Beneficiary identity document.
                        properties:
                          type:
                            type: string
                            description: >-
                              The type of [identity document
                              types](/reference/identity-document-types), such
                              as a National Identity Number, Social Security
                              Number, or Driver's License, depending on the
                              country of issuance.
                            examples:
                              - RUC
                          id:
                            type: string
                            description: >-
                              Identity document number (usually a number). This
                              must be a valid number according to the rules for
                              the specific document type.
                            examples:
                              - '1791234561009'
                        examples:
                          - type: RUC
                            id: '1791234561009'
                      address:
                        type: object
                        description: >-
                          Beneficiary address. For responses that include a
                          merchant object, the beneficiary address is provided
                          there.
                        properties:
                          street:
                            type: string
                            description: Street name.
                          number:
                            type: string
                            description: "Street number.\r\n"
                          city:
                            type: string
                            description: City.
                          state:
                            type: string
                            description: State
                          country:
                            type: string
                            description: Address country.
                          zipCode:
                            type: string
                            description: Zip code.
                          comment:
                            type: string
                            description: Additional address information.
                      bank:
                        type: object
                        properties:
                          branch:
                            type: object
                            description: Bank branch details.
                            properties:
                              code:
                                type: string
                                description: Branch code.
                              name:
                                type: string
                                description: Branch name
                          account:
                            type: object
                            description: Beneficiary's bank account details.
                            properties:
                              number:
                                type: string
                                description: Account number.
                              aliases:
                                type: array
                                description: >-
                                  Array of account aliases (e.g., unique
                                  identifiers for the account). Only for
                                  **Brasil**.
                                items:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      description: >-
                                        The type of alias (e.g.,
                                        `RandomKeyCode`).
                                    value:
                                      type: string
                                      description: Alias value.
                      merchant:
                        type: object
                        description: >-
                          The merchant object in the API response contains your
                          company's details, which our system references
                          internally. This ensures that even though we are the
                          legal account holder for compliance, all transactions
                          and the account itself are correctly attributed to
                          your business for reporting and reconciliation.
                        properties:
                          type:
                            type: string
                            enum:
                              - INDIVIDUAL
                              - COMPANY
                            description: Merchant type.
                          name:
                            type: string
                            description: Merchant name.
                          lastName:
                            type: string
                            description: Merchant last name.
                          fullName:
                            type: string
                            description: Merchant full name.
                          document:
                            type: object
                            description: Merchant identity document.
                            properties:
                              type:
                                type: string
                                description: >-
                                  The type of [identity document
                                  types](/reference/identity-document-types),
                                  such as a National Identity Number, Social
                                  Security Number, or Driver's License,
                                  depending on the country of issuance.
                              id:
                                type: string
                                description: >-
                                  Identity document number (usually a number).
                                  This must be a valid number according to the
                                  rules for the specific document type.
                          address:
                            type: object
                            description: Beneficiary address.
                            properties:
                              street:
                                type: string
                                description: Street name.
                              number:
                                type: string
                                description: |
                                  Street number.
                              city:
                                type: string
                                description: |
                                  City.
                              state:
                                type: string
                                description: State
                              country:
                                type: string
                                description: Address country.
                              zipCode:
                                type: string
                                description: Zip code.
                              comment:
                                type: string
                                description: Additional address information.
                          website:
                            type: string
                            description: Beneficiary website.
                      website:
                        type: string
                        description: >-
                          Beneficiary website. For responses that include a
                          merchant object, the beneficiary website is provided
                          there.
                    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: Operation status.
                    properties:
                      code:
                        type: string
                        description: >-
                          [Status
                          code](/reference/transaction-status-error-codes).
                        examples:
                          - '200'
                      description:
                        type: string
                        description: >-
                          [Status
                          description](/reference/transaction-status-error-codes).
                        examples:
                          - COMPLETED
                      detail:
                        type: string
                        description: Additional status information.
                        examples:
                          - Virtual account has been created
                  errors:
                    type: array
                    description: >-
                      Array of errors that occurred during the transaction. If
                      the transaction was successful, this array will be empty.
                    items:
                      type: object
                  disabled:
                    type: boolean
                    description: >-
                      Specifies whether the virtual account is enabled or
                      disabled.
                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: Unauthorized.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Additional information of the response.
                  code:
                    type: string
                    description: Status code.
                  messages:
                    type: array
                    description: Message list.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Token class.
                        token_type:
                          type: string
                          description: Token type.
                        message:
                          type: string
                          description: Message with additional information.
                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: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  timestamp:
                    type: string
                    description: Service execution time.
                  status:
                    type: integer
                    description: Error status code.
                  error:
                    type: string
                    description: Error description.
                  message:
                    type: string
                    description: Message with additional information.
                  path:
                    type: string
                    description: Service path.
                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.