Webhooks
Product deleted
Aira sends this event after it deletes a product, which a user deletes in the billing app or a system deletes through the API.
WEBHOOK
product.deleted
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"event": "product.deleted",
"payload": {
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Platform subscription",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"archivedAt": "2023-11-07T05:31:56Z"
}
}
}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": "product.deleted",
"payload": {
"product": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Platform subscription",
"customFields": {
"customField1": "value1",
"customField2": [
"value2",
"value3"
]
},
"archivedAt": "2023-11-07T05:31:56Z"
}
}
}