Webhook Events
Customer updated
Aira sends this event after a field of a customer changes: its name, its external id, its custom fields, the dunning schedule that it follows, its archive or its restore, and the change of an individual into an organization. The archive of an organization sends one event for the organization and one for each subsidiary that it archives.
WEBHOOK
customer.updated
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "customer.updated",
"payload": {
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"name": "Acme Inc.",
"type": "individual",
"invoicePrefix": "ACMEI",
"parentCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dunningScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archivedAt": "2023-11-07T05:31:56Z",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
},
"previousValues": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"name": "Acme Inc.",
"invoicePrefix": "ACMEI",
"type": "individual",
"parentCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dunningScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archivedAt": "2023-11-07T05:31:56Z",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
}
}
}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": "customer.updated",
"payload": {
"customer": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"name": "Acme Inc.",
"type": "individual",
"invoicePrefix": "ACMEI",
"parentCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dunningScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archivedAt": "2023-11-07T05:31:56Z",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
},
"previousValues": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"externalId": "705faf65-9c8b-4053-8c0b-2021281ce83f",
"name": "Acme Inc.",
"invoicePrefix": "ACMEI",
"type": "individual",
"parentCustomerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"dunningScheduleId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"archivedAt": "2023-11-07T05:31:56Z",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
}
}
}
}