Learn more about the different environments available.
There is a test environment available for integration development and testing, which simulates most of the requests and transaction types available in the platform. You can use this environment to ensure your requests are handled accordingly.
The base URL for development is: https://sandbox.dlocal.com/api_curl/cashout_api
Please note that in the test environment, no transactions will actually be processed.
Mock Sending Payouts in Sandbox
To mock desired responses in sandbox, you need to specify the following inputs in the 'comments' field:
|Step to Mock||Payout STATUS to Mock|
|Receive a success when submitting the payout and rejection after it was delivered||DELIVERED:8XX|
*You can select any 8XX error.
E.g.: "comments": "DELIVERED:800"
|Receive a success both when submitting the payout and when checking the status)||E.g.: "comments": "DELIVERED:COMPLETED"|
After the testing phase is successful, you are ready to go live in the production environment.
The base URL for production is: https://api.dlocal.com/api_curl/cashout_api