Webhook Events
Payment account deleted
Aira sends this event after it deletes a payment account, which the deletion of its customer deletes.
WEBHOOK
payment-account.deleted
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "payment-account.deleted",
"payload": {
"paymentAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archivedAt": "2023-11-07T05:31:56Z",
"isDefault": true,
"legalEntity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"businessName": "Padaria Central Ltda",
"taxId": "01234567000195",
"tradeName": "Padaria Central",
"emails": [],
"phone": "11987654321",
"zipCode": "01310100",
"street": "Avenida Paulista",
"number": "1000",
"neighborhood": "Bela Vista",
"city": "São Paulo",
"complement": "Sala 12"
}
}
}
}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-account.deleted",
"payload": {
"paymentAccount": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archivedAt": "2023-11-07T05:31:56Z",
"isDefault": true,
"legalEntity": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"businessName": "Padaria Central Ltda",
"taxId": "01234567000195",
"tradeName": "Padaria Central",
"emails": [],
"phone": "11987654321",
"zipCode": "01310100",
"street": "Avenida Paulista",
"number": "1000",
"neighborhood": "Bela Vista",
"city": "São Paulo",
"complement": "Sala 12"
}
}
}
}