Payin Virtual Account

This guide provides sample callback payloads for key Virtual Account events: successful creation and incoming payments (PayIns).

Virtual Account Creation Callback

Upon successfully creating a Virtual Account, Localpayment will send a POST request to your configured callback URL. This notification confirms the account details are active and ready to receive payments.

{
  "transactionType": "VirtualAccount",
  "data": {
    "externalId": "XXXXX",
    "internalId": "XXXXX",
    "accountNumber": "XXXXX",
    "country": "ARG",
    "currency": "ARS",
    "beneficiary": {
      "type": "INDIVIDUAL",
      "name": "Beneficiary Name",
      "lastname": "Beneficiary Lastname",
      "document": {
        "type": "XXXXX",
        "id": "XXXXX"
      },
      "bank": {
        "account": {
          "number": "0000472900016847756532"
        }
      }
    },
    "status": {
      "code": "200",
      "description": "COMPLETED",
      "detail": "Virtual account has been created"
    },
    "errors": []
  }
}  

PayIn (Payment Received) Callback

Once a payment is made to a Virtual Account and cleared, Localpayment will send a PayIn callback. Below are curated examples for different countries.

circle-info

For Bank Transfers in Mexico:

  • TEF: The payer’s identity document information (payer.document.id ) is not yet included in the webhook notification for this payment method. Consequently, we cannot determine the payer's type (COMPANY/INDIVIDUAL) from their RFC. To provide a deterministic value, the payer.type field will be defaulted to COMPANY.

This data will become available in a future platform update.

  • SPID:

    • Please note that SPID transfers are exclusively available for Company payers.

    • The External ID from the transaction is the tracking key (Clave de rastreo) of the transfer in Banco de Mexicoarrow-up-right.

circle-info

Note: For Peru, the document object (including both type and id) is not sent for the payer. Additionally, certain financial institutions do not provide the payer’s full name in the transaction details — see Financial Institutions in Peru That Do Not Return the Payer’s Name for more information.

Last updated

Was this helpful?