Webhooks
Payment created
Aira sends this event after it creates a payment of an invoice: a payment that Aira requests from the payment provider of the tenant, and an external payment that the ERP of the tenant issues and holds.
WEBHOOK
payment.created
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "payment.created",
"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"
}
}
}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.created",
"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"
}
}
}