Receivable anticipation events
Listen to Asaas events to keep your integration up to date.
You can use webhooks for your system to be notified about changes that occur in anticipation processes. The events that Asaas notifies are:
RECEIVABLE_ANTICIPATION_CANCELLED
- Anticipation cancelled.RECEIVABLE_ANTICIPATION_SCHEDULED
- Anticipation scheduled.RECEIVABLE_ANTICIPATION_PENDING
- Anticipation under review.RECEIVABLE_ANTICIPATION_CREDITED
- Anticipation credited.RECEIVABLE_ANTICIPATION_DEBITED
- Anticipation debited.RECEIVABLE_ANTICIPATION_DENIED
- Anticipation request denied.RECEIVABLE_ANTICIPATION_OVERDUE
- Anticipation overdue.
Example of JSON to be received [POST]
The notification consists of a POST containing a JSON, as in this example:
{
"event": "RECEIVABLE_ANTICIPATION_CREDITED",
"anticipation": {
"object": "anticipation",
"id": "29ad50e9-64ee-427e-a00c-a3999510ca0a",
"installment": null,
"payment": "pay_4310966350068380",
"status": "CREDITED",
"anticipationDate": "2022-09-19",
"dueDate": "2022-09-30",
"requestDate": "2022-09-19",
"fee": 5.64,
"anticipationDays": 11,
"netValue": 302.37,
"totalValue": 310,
"value": 308.01,
"denialObservation": null
}
}
- 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