Recurring payments
Learn how to enroll users for SmartPix payments.
After the one-time authorization by the user, the merchant will use this service to execute subsequent payments based on the token provided by dLocal that associates the user with their account/bank.
Request example
curl -X POST \
-H 'X-Date: {X-Date}' \
-H 'X-Login: {X-Login}' \
-H 'X-Trans-Key: {X-Trans-Key}' \
-H 'Content-Type: application/json' \
-H 'X-Version: 2.1' \
-H 'User-Agent: MerchantTest / 1.0 ' \
-H 'Authorization: V2-HMAC-SHA256, Signature: {Signature}' \
-d '{body}'
https://api.dlocal.com/payments
{
"amount": 100,
"currency": "BRL",
"country": "BR",
"payment_method_id": "OS",
"payment_method_flow": "DIRECT",
"notification_url": "http://www.merchantsite.com/notifications",
"callback_url": "http://merchantsite.com/callback",
"payer": {
"name": "Luiz Silva",
"document": "12345678901"
},
"wallet": {
"token": "979d887a-2c63-4719-ba65-0b20b50f1cab"
},
"order_id": "5346523566"
}
{
"id": "R-4-41f8628f-b6ec-4c02-96d5-c5b03cac7cb0",
"amount": 100,
"currency": "BRL",
"payment_method_id": "OS",
"payment_method_type": "WALLET",
"payment_method_flow": "DIRECT",
"country": "BR",
"created_date": "2025-08-10T20:37:20.000+0000",
"status": "PENDING",
"status_detail": "The payment is pending.",
"status_code": "100",
"order_id": "5346523566",
"notification_url": "http://merchantsite.com/notifications"
}
Asynchronous notification (webhook)
{
"id": "R-4-41f8628f-b6ec-4c02-96d5-c5b03cac7cb0",
"amount": 100,
"status": "PAID",
"status_detail": "The payment was paid.",
"status_code": "200",
"currency": "BRL",
"country": "BR",
"payment_method_id": "OS",
"payment_method_type": "WALLET",
"payment_method_flow": "DIRECT",
"payer": {
"name": "Luiz Silva",
"document": "12345678901"
},
"wallet": {
"token": "979d887a-2c63-4719-ba65-0b20b50f1cab"
},
"order_id": "5346523566",
"notification_url": "http://www.merchantsite.com/notifications",
"callback_url": "http://merchantsite.com/callback",
"created_date": "2025-08-10T20:37:52.000+0000"
}
Updated about 1 hour ago