Notifications Process
Learn about how the notifications for deposits works
Última actualización
Learn about how the notifications for deposits works
Última actualización
Every time a deposit changes its status, we will send you an asynchronous notification to the notification_url
you sent in the request or the one you have configured under the section "Settings -> API Access -> Confirm URL" containing the ID of the deposit.
Once received the notification, you should check its new status with the Deposit Status Endpoint and update it on your end accordingly.
Bear in mind we will only connect through ports 80 and 443.
Make sure your notification_url
has one of those ports open accepting connections from us.
In the STG environment, in order to test the full flow you can manually set a deposit to COMPLETED / CANCELLED status by login into the STG Tupay Panel and going to Transactions -> Deposits. Those options will change the status of the deposit, therefore sending the respective notification to your notification_url
after a few minutes.
Every time a deposit changes its status, we will send you a notification so you can check its status back. In case that for some reason your server was unable to handle our notification and you returned an HTTP code different than 2XX, we will retry the notification up to 5 more times or until you respond with HTTP 2XX, whatever comes first.
In case of errors while handling the notification, make sure you will answer with an HTTP code distinct than 2XX, that way we will retry the notification.
The time between each of the 5 notifications attempts will be exponential: 5, 25, 125 and 625 minutes accordingly. When a notification failed to be sent, it will be shown like this in our Tupay Panel:
If you see the errors from the screenshot above, it means the payment was successfully completed and the money was credited to your account but suddenly we couldn't notify you. Keep reading to know how to resend the notifications.
Field
Format
Description
deposit_id
Number
Deposit identifier.
Use it to check the status of the Deposit.