Webhook Events
Payment updated
Aira sends this event after a field of a payment changes: its status, such as paid, failed, canceled or expired, and its payment link.
WEBHOOK
payment.updated
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "payment.updated",
"payload": {
"payment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"dueDate": "2023-12-25",
"paymentLinkUrl": "https://www.asaas.com/i/abc123def456"
},
"previousValues": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"dueDate": "2023-12-25",
"paymentLinkUrl": "https://www.asaas.com/i/abc123def456"
}
}
}Headers
Body
application/json
The event, with its identifier, its name and its payload.
Response
2XX
Answer with a 2XX status to confirm the delivery. Aira retries a delivery that gets another status, a redirect or no answer.
⌘I
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "payment.updated",
"payload": {
"payment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"dueDate": "2023-12-25",
"paymentLinkUrl": "https://www.asaas.com/i/abc123def456"
},
"previousValues": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"invoiceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"amount": 123,
"dueDate": "2023-12-25",
"paymentLinkUrl": "https://www.asaas.com/i/abc123def456"
}
}
}