Before You Begin
Ensure you have:- Valid API credentials (access token).
Step 1. Create Debin Payment
To generate a Debin payment request, send aPOST request to the Create Payin endpoint with Debin-specific parameters.
The payment request can only be made to CBU accounts. These account numbers are distinguished by the fact that their first three digits do not begin with zero.
Key Request Parameters
The request requires several key objects specific to Debin payments:
See all available parameters in the request.
Example Request
Below is an example usingcurl:
curl
The payment will only be considered complete once the customer accepts it in their banking application. If the customer declines it, the payment will be rejected. Otherwise, the payment will move to an expired status.
Step 2. Handle the Response
Successful Response
A successful Debin payment creation includes the payment request details and authorization flow:Key Response Fields
Error Response
When Debin request creation fails, you’ll receive detailed error information:Step 3. Handle Authorization Flow
- Payment Initiation: Your application sends DEBIN request to Localpayment API.
- Banking Network Processing: Localpayment routes payment through Argentine banking system.
- Customer Notification: Customer receives real-time alert in their banking app.
- Payment Authorization: Customer approves payment directly in banking interface.
- Confirmation & Webhooks: Localpayment sends instant webhook with final payment status.
- Order Fulfillment: Your application updates order status based on payment result.
Step 4. Track Transaction Status
Monitor Debin payment progress through these methods:Webhooks (Recommended)
Receive real-time notifications when transaction status changes. Most efficient for production environments.
Status API Endpoint
Query transaction status programmatically. Useful for polling or recovering lost webhook notifications.
Business Portal View
Visual interface for monitoring transactions. Great for manual oversight and detailed transaction analysis.
Common Status Codes
The Localpayment API provides various status codes to indicate the progress and outcome of the Debin payment.Complete ReferenceView all status codes in our Transaction Status Documentation.
Testing Your Integration
Sandbox Environment
Use the staging environment for testing:Test Debin Scenarios
Verify your integration handles these scenarios:- Successful Authorization: Complete Debin authorization flow.
- Authorization Expiration: Handle expired authorization requests.
- Status Updates: Webhook handling and status polling.
Next Steps
After implementing Debin payments, consider these additional capabilities:Refund the transaction
If necessary, you can refund the payment to the customer. Refer to the documentation for details.
Review transaction details
You can retrieve transaction information using the Localpayment API for detailed insights.

