Skip to main content
Receive instant webhook notifications for every Virtual Account payment, and update your systems and confirm credits automatically. Once you create a virtual account and map it to a specific customer or invoice within your internal systems, Localpayment automatically sends a webhook notification to your server each time a payment is successfully received into that account. Important: A virtual account functions as a dedicated payment destination. While you manage its internal attribution, the account number itself can receive funds from any payer. The payment notification will contain details of the actual payer, allowing you to reconcile the payment with your internal customer mapping. These real-time notifications enable you to automatically confirm credits, update balances, and reconcile payments without manual verification.

Before You Begin

Ensure that you have:
  • Successfully created a Virtual Account through the Create Virtual Account endpoint.
  • A notification endpoint (webhook URL) configured in your merchant account.
  • The ability to receive HTTPS POST requests from Localpayment’s servers.
  • Logic in your backend to validate and parse webhook payloads securely.

How It Works

  1. A payer sends a transfer to the Virtual Account number previously generated by your system.
  2. Once the funds are credited and validated by Localpayment, a PayIn notification is sent to your configured webhook endpoint.
  3. Your system must acknowledge the notification with a 200 OK response.
  4. You can then update your internal records to mark the Virtual Account as paid or the corresponding order as fulfilled.

Localpayment guarantees delivery using retries with exponential backoff if your server does not respond with HTTP 200.

Example Notification (Webhook Payload)

Below is a sample payload for a successful payment credited to a Virtual Account:

Webhook Fields for Matching

The webhook notification contains specific fields that serve as identifiers. Use the table below to match the incoming payment to your internal records.

Using Payment References

Payers can add a reference (e.g., an order number) to their transfer. This data appears in the webhook’s tracking object for direct matching.

Important
  • Availability: The tracking object is only available in webhooks, not in transaction reports or the API.
  • For Mexico (SPID), the externalId corresponds to Banco de México’s tracking key (Clave de Rastreo), making it the authoritative field for reconciliation.

Tracking Object Example


Key Identifiers in the Notification

The notification includes several reference and tracking fields generated by different parties. Understanding the source and reliability of each helps you build a reliable reconciliation strategy.

referenceCode

Generated by Localpayment. It always follows the format XXXX-XXXX-XXXX — three four-character alphanumeric blocks — across every country and rail, which confirms the notification originated from Localpayment. referenceCode is a human-readable Localpayment reference, not an idempotency key. For deduplication and idempotency, use internalId or externalId.

tracking.id

Generated by the payment rail or the payer’s bank, not by Localpayment. The format varies by country: Do not treat tracking.id as universally unique across all rails. Use it as the primary rail-side identifier for Colombia Bre-B; for other countries, treat it as a supporting reference.

tracking.reference

Also generated by the rail or bank. Its content and availability vary:
  • Argentina, Chile, Colombia: mirrors tracking.id.
  • Mexico (SPEI/TEF): a shorter bank reference that the payer enters at the time of transfer.
  • Peru: may be empty or contain "NO REF".
Do not rely on tracking.reference as a guaranteed or unique identifier.

tracking.concept

Intended to carry the payment description. In practice, this field frequently contains system-generated or placeholder strings rather than payer free text: Do not use tracking.concept as a key field or assume it contains free text entered by the payer. Treat it as supplementary context only.

Country Specific

When using Virtual Accounts, there are important country-specific details you must consider. These can affect how payment notifications are processed and how you reconcile transactions. Below is a summary of known differences across certain markets:
Country / Payment MethodWebhook Considerations
Costa Rica (SINPE)
  • The tracking.concept field contains the description entered by the payer at the time of transfer. This value may be truncated by the originating bank, which is why you may see trailing underscores (e.g., "Steph_test_____").
Colombia (Bre-B)
  • paymentMethod.code is always "2006" for Bre-B Virtual Account payins.
  • payer.bank.account.type is always "BREB" — confirms the payer sent funds via the Bre-B network.
  • beneficiary.bank.account.type is always "KEY" — the receiving Bre-B key assigned to your Virtual Account.
  • Bre-B settles in real time: the only payin status is "200" COMPLETED. There are no intermediate states.
  • tracking.id and tracking.reference contain the Bre-B network transaction ID — use these as the authoritative reference for reconciliation.
  • tracking.concept may contain a description entered by the payer, but often carries a system-generated string (e.g., "Transfer via BRE-B"). Do not treat it as guaranteed payer-entered free text.
Mexico (SPID)
  • SPID transfers are exclusively available for Company payers.
  • The externalId field corresponds to the tracking key (Clave de Rastreo) assigned by Banco de México.
  • Use externalId as the authoritative reference for reconciliation.
Peru

Financial institutions without payer full-name availability

  • Peru: Certain Peruvian financial institutions do not provide the payer’s full name in the transaction details. Because this information is not available in the settlement data sent by these entities, you may be unable to correctly identify the payer.
  • 007 – CITIBANK DEL PERU S.A.
  • 056 – BANCO SANTANDER PERU S.A.
  • 805 – CAJA MUNICIPAL DE AHORRO Y CRÉDITO SULLANA
  • 813 – CAJA MUNICIPAL DE AHORRO Y CRÉDITO TACNA

Handling the Notification

Your server must process each notification as follows:
  1. Verify the request signature.
  2. Validate the internalId or externalId to ensure idempotency; never process the same notification twice.
  3. Update your system to mark the corresponding invoice, wallet, or order as paid.
  4. Return HTTP 200 OK to acknowledge receipt.

Acknowledging the Notification

Localpayment considers the webhook successfully delivered only when your server responds with:
If no acknowledgment is received, Localpayment retries the notification up to several times with increasing intervals.
Last modified on November 10, 2026