Phone recharge events
Listen to Asaas events to keep your integration up to date.
You can use webhooks so your system is notified about changes that occur in mobile phone recharges. The events that Asaas notifies are:
PHONE_RECHARGE_PENDING
- Mobile phone recharge pending.PHONE_RECHARGE_CANCELLED
- Mobile phone recharge cancelled.PHONE_RECHARGE_CONFIRMED
- Mobile phone recharge confirmed.PHONE_RECHARGE_REFUNDED
- Mobile phone recharge refunded.
Example of JSON to be received [POST]
The notification consists of a POST containing a JSON, as in this example:
{
"event":"PHONE_RECHARGE_CONFIRMED",
"mobilePhoneRecharge":{
"id": "29ad50e9-64ee-427e-a00c-a3999510ca0a",
"value":15,
"phoneNumber":"62982055478",
"status":"CONFIRMED",
"canBeCancelled":false,
"operatorName":"Tim"
}
}
- With the introduction of new products and functionalities within Asaas, it's possible that new attributes may be included in the Webhook. It's very important that your code is prepared not to generate exceptions if Asaas returns new attributes not handled by your application, as this could interrupt the synchronization queue.
- We will send an email and notify on our Discord when new fields are included in the Webhook. The notification will be sent to the email defined in the webhook settings.
Updated 30 days ago