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

# Zahlung auf ein virtuelles Konto simulieren

Mit diesem Endpunkt können Sie eine eingehende Zahlung auf ein virtuelles Konto simulieren. **Nur in der Stage-Umgebung verfügbar.** Er ermöglicht Händlern, den End-to-End-Ablauf ihrer Integration zu testen, einschließlich des Empfangs von Zahlungsbenachrichtigungen und der Überprüfung von Transaktionsstatus, ohne dass echte Banküberweisungen erforderlich sind.

> **Einschränkung der Umgebung**
>
> Dieser Endpunkt ist **nur in der Stage-Umgebung** verfügbar und ausschließlich für Testzwecke vorgesehen.

### Identität des Zahlers

Verwenden Sie dieselben Begünstigtendaten (Name, Dokumenttyp und Dokumentnummer), die beim Erstellen des virtuellen Kontos angegeben wurden. Separate Testidentitäten sind nicht erforderlich; der Endpunkt validiert die Zahlerdaten anhand der bei der Kontoerstellung registrierten Informationen.


## OpenAPI

````yaml openapi/de/localpayment.json POST /api/simulate/va
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/simulate/va:
    post:
      summary: Zahlung auf ein virtuelles Konto simulieren
      operationId: simulate-payin-to-virtual-account
      parameters:
        - name: Authorization
          in: header
          description: >-
            Bearer-Zugriffstoken zur Authentifizierung. Wird über den Endpunkt
            [Zugriffstoken abrufen](/de/reference/get-token) bezogen.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                externalId:
                  type: string
                  description: >-
                    Eine eindeutige Kennung für die simulierte
                    Payin-Transaktion. Dieser Wert dient als ID für den durch
                    diese Simulation erzeugten Payin und muss bei jeder Anfrage
                    unterschiedlich sein. Wir empfehlen das Format UUID4.
                paymentMethod:
                  type: object
                  properties:
                    type:
                      type: string
                      enum:
                        - BankTransfer
                      description: Der Typ der simulierten Zahlungsmethode.
                    code:
                      type: string
                      description: >-
                        Länderspezifischer Code für die Zahlungsmethode (z. B.
                        `1025` für ARG, `1350` für BRA, `2006` für COL, `1630`
                        SPEI oder `1680` TEF für MEX, `6100` für PER, `2530` für
                        CHL).
                    flow:
                      type: string
                      enum:
                        - DIRECT
                      description: Der Transaktionsfluss.
                  required:
                    - type
                    - code
                    - flow
                country:
                  type: string
                  enum:
                    - ARG
                    - BRA
                    - COL
                    - MEX
                    - PER
                    - CHL
                  description: >-
                    Das Land, in dem sich das virtuelle Konto befindet (ISO
                    3166-1 alpha-3).
                currency:
                  type: string
                  enum:
                    - ARS
                    - BRL
                    - COP
                    - MXN
                    - PEN
                    - CLP
                  description: Die Währung der Zahlung (ISO 4217).
                amount:
                  type: number
                  description: Der für die Zahlung zu simulierende Betrag.
                accountNumber:
                  type: string
                  description: >-
                    Die Kontonummer, die Localpayment dem Händler zuordnet; sie
                    ist für jeden Händler eindeutig.
                beneficiary:
                  type: object
                  description: Informationen zur Entität, die die Gelder erhält.
                  properties:
                    type:
                      type: string
                      enum:
                        - INDIVIDUAL
                        - COMPANY
                      description: Typ des Begünstigten (INDIVIDUAL oder COMPANY).
                    name:
                      type: string
                      description: Vorname(n) des Begünstigten.
                    lastName:
                      type: string
                      description: Nachname(n) des Begünstigten.
                    fullName:
                      type: string
                      description: >-
                        Vollständiger Name des Begünstigten (Verkettung von name
                        und lastName).
                    document:
                      type: object
                      description: Amtliches Ausweisdokument des Begünstigten.
                      properties:
                        type:
                          type: string
                          description: Dokumenttyp (z. B. CUIT, CPF, RFC).
                        id:
                          type: string
                          description: Dokumentnummer.
                      required:
                        - type
                        - id
                    bank:
                      type: object
                      description: Bankkontodaten des Begünstigten.
                      properties:
                        account:
                          type: object
                          description: Kontodaten.
                          properties:
                            number:
                              type: string
                              description: >-
                                Die Nummer des virtuellen Kontos aus dem Feld
                                `beneficiary.bank.account.number` in der Antwort
                                von [Status eines virtuellen Kontos
                                abrufen](/de/reference/get-virtual-account-status).
                                Dieser Wert verknüpft die simulierte Zahlung mit
                                dem richtigen virtuellen Konto.
                          required:
                            - number
                      required:
                        - account
                  required:
                    - type
                    - name
                    - lastName
                    - fullName
                    - document
                    - bank
                payer:
                  type: object
                  description: >-
                    Informationen zum simulierten Zahler. Verwenden Sie
                    dieselben Daten – Name, Dokumenttyp und Dokument-ID –, die
                    beim Erstellen des virtuellen Kontos für den Begünstigten
                    angegeben wurden.
                  properties:
                    type:
                      type: string
                      enum:
                        - INDIVIDUAL
                        - COMPANY
                      description: Typ des Zahlers (INDIVIDUAL oder COMPANY).
                    name:
                      type: string
                      description: Vorname(n) des Zahlers.
                    lastName:
                      type: string
                      description: Nachname(n) des Zahlers.
                    fullName:
                      type: string
                      description: >-
                        Vollständiger Name des Zahlers (Verkettung von name und
                        lastName).
                    document:
                      type: object
                      description: Amtliches Ausweisdokument des Zahlers.
                      properties:
                        type:
                          type: string
                          description: Dokumenttyp (z. B. CUIT, CPF, RFC).
                        id:
                          type: string
                          description: Dokumentnummer.
                      required:
                        - type
                        - id
                    email:
                      type: string
                      description: E-Mail-Adresse des Zahlers.
                    bank:
                      type: object
                      description: >-
                        Bankkontodaten, von denen aus die Zahlung simuliert
                        wird.
                      properties:
                        name:
                          type: string
                          description: Name der Bank.
                        code:
                          type: string
                          description: Lokaler Bankcode.
                        account:
                          type: object
                          description: Kontodaten.
                          properties:
                            type:
                              type: string
                              description: Kontotyp (z. B. CBU, CLABE, AccountNumber).
                            number:
                              type: string
                              description: Kontonummer des Zahlers.
                          required:
                            - number
                        branch:
                          type: object
                          description: Angaben zur Bankfiliale. Für Brasilien erforderlich.
                          properties:
                            code:
                              type: string
                              description: >-
                                Das Format des Filialcodes hängt von der Bank
                                ab.
                          required:
                            - code
                      required:
                        - name
                        - code
                        - account
                  required:
                    - type
                    - name
                    - lastName
                    - fullName
                    - document
                    - email
                    - bank
              required:
                - externalId
                - paymentMethod
                - country
                - currency
                - amount
                - accountNumber
                - beneficiary
                - payer
            examples:
              ARG Example:
                value:
                  externalId: de14bcf2-15ee-22e3-ab59-99c3fcba31e8
                  paymentMethod:
                    type: BankTransfer
                    code: '1025'
                    flow: DIRECT
                  country: ARG
                  currency: ARS
                  amount: 11000
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Carlos
                    lastName: Mendez
                    fullName: Carlos Mendez
                    document:
                      type: CUIT
                      id: '20314567894'
                    bank:
                      account:
                        number: '{{beneficiary.bank.account.number}}'
                  payer:
                    type: INDIVIDUAL
                    name: Carlos
                    lastName: Mendez
                    fullName: Carlos Mendez
                    document:
                      type: CUIT
                      id: '20314567894'
                    email: carlos.mendez@email.com
                    bank:
                      name: Banco Galicia
                      code: '007'
                      account:
                        type: CBU
                        number: '0070001200001234567890'
              MEX Example:
                value:
                  externalId: f059a032-9253-4607-9b8e-2948ed18d595
                  paymentMethod:
                    type: BankTransfer
                    code: '1630'
                    flow: DIRECT
                  country: MEX
                  currency: MXN
                  amount: 500
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Juan
                    lastName: Perez
                    fullName: Juan Perez
                    document:
                      type: RFC
                      id: PEPJ800101XXX
                    bank:
                      account:
                        number: '{{beneficiary.bank.account.number}}'
                  payer:
                    type: INDIVIDUAL
                    name: Juan
                    lastName: Perez
                    fullName: Juan Perez
                    document:
                      type: RFC
                      id: PEPJ800101XXX
                    email: juan.perez@email.com
                    bank:
                      name: BanCoppel
                      code: '137'
                      account:
                        type: C
                        number: '137424104400310004'
              MEX TEF Example:
                value:
                  externalId: b8c924d1-3f7a-4e82-bc1d-9a06fe37510c
                  paymentMethod:
                    type: BankTransfer
                    code: '1680'
                    flow: DIRECT
                  country: MEX
                  currency: MXN
                  amount: 1000.01
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: COMPANY
                    name: Servicios Digitales México S.A.
                    document:
                      type: RFC
                      id: HEMJ900101ABC
                    bank:
                      account:
                        number: '000000000000000009'
                  payer:
                    type: COMPANY
                    name: Juan
                    lastName: Doe
                    fullName: Juan Doe
                    document:
                      type: RFC
                      id: HEMJ900101ABC
                    email: juan.doe@email.com
                    bank:
                      name: BANCO INBURSA
                      code: '036'
                      account:
                        type: CLABE
                        number: '00000000000000000001'
              BRA Example:
                value:
                  externalId: 0d55e796-bba6-4cf0-aead-8d9c1ed31044
                  paymentMethod:
                    type: BankTransfer
                    code: '1350'
                    flow: DIRECT
                  country: BRA
                  currency: BRL
                  amount: 100
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Rafael
                    lastName: Oliveira
                    fullName: Rafael Oliveira
                    document:
                      type: CPF
                      id: '12345678909'
                    bank:
                      account:
                        number: '{{beneficiary.bank.account.number}}'
                  payer:
                    type: INDIVIDUAL
                    name: Rafael
                    lastName: Oliveira
                    fullName: Rafael Oliveira
                    document:
                      type: CPF
                      id: '12345678909'
                    email: rafael.oliveira@email.com
                    bank:
                      name: Itau
                      code: '341'
                      account:
                        number: 12345-6
              PER Example:
                value:
                  externalId: e6807dd1-e910-41ea-9adc-b240a5509dd3
                  paymentMethod:
                    type: BankTransfer
                    code: '6100'
                    flow: DIRECT
                  country: PER
                  currency: PEN
                  amount: 200
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Lucia
                    lastName: Torres
                    fullName: Lucia Torres
                    document:
                      type: DNI
                      id: '45678901'
                    bank:
                      account:
                        number: '{{beneficiary.bank.account.number}}'
                  payer:
                    type: INDIVIDUAL
                    name: Lucia
                    lastName: Torres
                    fullName: Lucia Torres
                    document:
                      type: DNI
                      id: '45678901'
                    email: lucia.torres@email.com
                    bank:
                      name: BCP
                      code: '002'
                      account:
                        number: '19400123456789'
              CHL Example:
                value:
                  externalId: d2ffc771-2678-4dcc-8819-d446656a19f9
                  paymentMethod:
                    type: BankTransfer
                    code: '2530'
                    flow: DIRECT
                  country: CHL
                  currency: CLP
                  amount: 50000
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Valentina
                    lastName: Rojas
                    fullName: Valentina Rojas
                    document:
                      type: RUT
                      id: '123456789'
                    bank:
                      account:
                        number: '{{beneficiary.bank.account.number}}'
                  payer:
                    type: INDIVIDUAL
                    name: Valentina
                    lastName: Rojas
                    fullName: Valentina Rojas
                    document:
                      type: RUT
                      id: '123456789'
                    email: valentina.rojas@email.com
                    bank:
                      name: Banco de Chile
                      code: '001'
                      account:
                        number: '00112345678'
              COL Example:
                value:
                  externalId: b3e14f73-8452-49b2-bf3c-b770774edfa8
                  paymentMethod:
                    type: BankTransfer
                    code: '2006'
                    flow: DIRECT
                  country: COL
                  currency: COP
                  amount: 100000
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Andres
                    lastName: Herrera
                    fullName: Andres Herrera
                    document:
                      type: CC
                      id: '1020456789'
                    bank:
                      account:
                        number: '{{beneficiary.bank.account.number}}'
                  payer:
                    type: INDIVIDUAL
                    name: Andres
                    lastName: Herrera
                    fullName: Andres Herrera
                    document:
                      type: CC
                      id: '1020456789'
                    email: andres.herrera@email.com
                    bank:
                      name: Bancolombia
                      code: '007'
                      account:
                        number: '20012345678'
              CRI Example:
                value:
                  externalId: a1c2e3f4-5b6d-47a8-9c0e-1f2a3b4c5d6e
                  paymentMethod:
                    type: BankTransfer
                    code: '1420'
                    flow: DIRECT
                  country: CRI
                  currency: CRC
                  amount: 100
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Carlos
                    lastName: Mendez
                    fullName: Carlos Mendez
                    document:
                      type: CI
                      id: 2-0456-0789
                    bank:
                      account:
                        number: CR91090100000000125311
                  payer:
                    type: INDIVIDUAL
                    name: John
                    lastName: Doe
                    fullName: John Doe
                    document:
                      type: CI
                      id: 01-0100-0001
                    email: john.doe@email.com
                    bank:
                      name: Banco Nacional de Costa Rica
                      code: '0151'
                      account:
                        number: CR99000000000000000003
              CRI USD Example:
                value:
                  externalId: b2d3f4a5-6c7e-48b9-a1d0-2f3b4c5d6e7f
                  paymentMethod:
                    type: BankTransfer
                    code: '1421'
                    flow: DIRECT
                  country: CRI
                  currency: USD
                  amount: 100
                  accountNumber: '{{accountNumber}}'
                  beneficiary:
                    type: INDIVIDUAL
                    name: Carlos
                    lastName: Mendez
                    fullName: Carlos Mendez
                    document:
                      type: CI
                      id: 2-0456-0789
                    bank:
                      account:
                        number: CR91090100000000125511
                  payer:
                    type: INDIVIDUAL
                    name: John
                    lastName: Doe
                    fullName: John Doe
                    document:
                      type: CI
                      id: 01-0100-0001
                    email: john.doe@email.com
                    bank:
                      name: Banco Nacional de Costa Rica
                      code: '0151'
                      account:
                        number: CR99000000000000000002
      responses:
        '201':
          description: Erstellt - Simulation erfolgreich ausgelöst.
          content:
            application/json:
              schema:
                type: object
                properties:
                  transactionType:
                    type: string
                    description: Der Transaktionstyp (z. B. PayIn).
                    example: PayIn
                  externalId:
                    type: string
                    description: >-
                      Die eindeutige Kennung (`externalId`), die der Händler zur
                      Nachverfolgung der Transaktion angibt.
                  internalId:
                    type: string
                    format: uuid
                    description: >-
                      Die eindeutige Kennung (`internalId`), die Localpayment
                      der Transaktion zuweist.
                  paymentMethod:
                    type: object
                    description: >-
                      Die für die simulierte Transaktion verwendete
                      Zahlungsmethode.
                    properties:
                      type:
                        type: string
                        description: Der Typ der Zahlungsmethode.
                      code:
                        type: string
                        description: Der länderspezifische Code der Zahlungsmethode.
                      flow:
                        type: string
                        description: Der Transaktionsfluss.
                  country:
                    type: string
                    description: Das Land, in dem die Transaktion stattgefunden hat.
                  currency:
                    type: string
                    description: Die Währung der Transaktion.
                  amount:
                    type: number
                    description: Der Betrag der Transaktion.
                  accountNumber:
                    type: string
                    description: Die Kontonummer des Händlers.
                  status:
                    type: object
                    description: Der Status der simulierten Transaktion.
                    properties:
                      code:
                        type: string
                        description: Der Statuscode.
                      description:
                        type: string
                        description: Eine kurze Beschreibung des Status.
                      detail:
                        type: string
                        description: Detaillierte Informationen zum Status.
              examples:
                MEX Example:
                  value:
                    transactionType: PayIn
                    externalId: f059a032-9253-4607-9b8e-2948ed18d595
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    paymentMethod:
                      type: BankTransfer
                      code: '1630'
                      flow: DIRECT
                    country: MEX
                    currency: MXN
                    amount: 100
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                ARG Example:
                  value:
                    transactionType: PayIn
                    externalId: de14bcf2-15ee-22e3-ab59-99c3fcba31e8
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    paymentMethod:
                      type: BankTransfer
                      code: '1025'
                      flow: DIRECT
                    country: ARG
                    currency: ARS
                    amount: 100
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                BRA Example:
                  value:
                    transactionType: PayIn
                    externalId: 0d55e796-bba6-4cf0-aead-8d9c1ed31044
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    paymentMethod:
                      type: BankTransfer
                      code: '1350'
                      flow: DIRECT
                    country: BRA
                    currency: BRL
                    amount: 100
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                PER Example:
                  value:
                    transactionType: PayIn
                    externalId: e6807dd1-e910-41ea-9adc-b240a5509dd3
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    paymentMethod:
                      type: BankTransfer
                      code: '6100'
                      flow: DIRECT
                    country: PER
                    currency: PEN
                    amount: 100
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                CHL Example:
                  value:
                    transactionType: PayIn
                    externalId: d2ffc771-2678-4dcc-8819-d446656a19f9
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    paymentMethod:
                      type: BankTransfer
                      code: '2530'
                      flow: DIRECT
                    country: CHL
                    currency: CLP
                    amount: 50000
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                COL Example:
                  value:
                    transactionType: PayIn
                    externalId: b3e14f73-8452-49b2-bf3c-b770774edfa8
                    internalId: 5aced5da-40c1-4bec-85ff-c8cd1bcb4526
                    paymentMethod:
                      type: BankTransfer
                      code: '2006'
                      flow: DIRECT
                    country: COL
                    currency: COP
                    amount: 100000
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                CRI Example:
                  value:
                    transactionType: PayIn
                    externalId: a1c2e3f4-5b6d-47a8-9c0e-1f2a3b4c5d6e
                    internalId: c06bbea8-48d1-4659-9664-633b7f9f080d
                    paymentMethod:
                      type: BankTransfer
                      code: '1420'
                      flow: DIRECT
                    country: CRI
                    currency: CRC
                    amount: 100
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
                CRI USD Example:
                  value:
                    transactionType: PayIn
                    externalId: b2d3f4a5-6c7e-48b9-a1d0-2f3b4c5d6e7f
                    internalId: e05fc3c3-f739-4393-b275-4a12f5a1af16
                    paymentMethod:
                      type: BankTransfer
                      code: '1421'
                      flow: DIRECT
                    country: CRI
                    currency: USD
                    amount: 100
                    accountNumber: '{{accountNumber}}'
                    status:
                      code: '200'
                      description: COMPLETED
                      detail: The payin was credited
        '400':
          description: Ungültige Anfrage - ungültige Parameter oder Kontonummer.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  error:
                    type: string
                    description: Kurzer Fehlername.
                  message:
                    type: string
                    description: Verständliche Fehlermeldung.
                  path:
                    type: string
                    description: API-Pfad, in dem der Fehler aufgetreten ist.
              examples:
                Bad Request:
                  value:
                    status: 400
                    error: Bad Request
                    message: Invalid payer identity or missing mandatory fields.
                    path: /api/simulate/va
        '401':
          description: Nicht autorisiert - Ungültiges oder abgelaufenes Token.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: >-
                      Eine ausführliche Fehlermeldung, die erklärt, warum das
                      Token ungültig ist.
                  code:
                    type: string
                    description: Ein maschinenlesbarer Fehlercode.
                  messages:
                    type: array
                    description: >-
                      Eine Liste von Meldungen mit weiteren Informationen zum
                      Authentifizierungsfehler.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Klasse des Tokens (z. B. AccessToken).
                        token_type:
                          type: string
                          description: Typ des Tokens (z. B. access).
                        message:
                          type: string
                          description: Token-spezifische Fehlermeldung.
              examples:
                Unauthorized:
                  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: Nicht gefunden - Virtuelles Konto nicht gefunden.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  error:
                    type: string
                    description: Kurzer Fehlername.
                  message:
                    type: string
                    description: Verständliche Fehlermeldung.
                  path:
                    type: string
                    description: API-Pfad, in dem der Fehler aufgetreten ist.
              examples:
                Not Found:
                  value:
                    status: 404
                    error: Not Found
                    message: >-
                      Virtual Account with externalId
                      de14bcf2-15ee-22e3-ab59-99c3fcba31e8 not found.
                    path: /api/simulate/va
        '500':
          description: Interner Serverfehler.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: integer
                    description: HTTP-Statuscode.
                  error:
                    type: string
                    description: Kurzer Fehlername.
                  message:
                    type: string
                    description: Verständliche Fehlermeldung.
                  path:
                    type: string
                    description: API-Pfad, in dem der Fehler aufgetreten ist.
              examples:
                Server Error:
                  value:
                    status: 500
                    error: Internal Server Error
                    message: An unexpected error occurred while simulating the payment.
                    path: /api/simulate/va
      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.