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
- A payer sends a transfer to the Virtual Account number previously generated by your system.
- Once the funds are credited and validated by Localpayment, a PayIn notification is sent to your configured webhook endpoint.
- Your system must acknowledge the notification with a 200 OK response.
- You can then update your internal records to mark the Virtual Account as paid or the corresponding order as fulfilled.
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’stracking object for direct matching.
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 formatXXXX-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".
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 Method | Webhook Considerations |
|---|---|
| Costa Rica (SINPE) |
|
| Colombia (Bre-B) |
|
| Mexico (SPID) |
|
| 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.
Financial Institutions List
Financial Institutions List
- 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:- Verify the request signature.
- Validate the
internalIdorexternalIdto ensure idempotency; never process the same notification twice. - Update your system to mark the corresponding invoice, wallet, or order as paid.
- Return
HTTP 200 OKto acknowledge receipt.

