WebhooksEventos
entitlement.ended
Um benefício acabou.
Benefício encerrado. Um benefício acabou. endReason: EXPIRED, REFUND, DISPUTE, UPGRADE, SUBSCRIPTION_ENDED ou MANUAL.
Corpo enviado
POST para a URL do seu webhook, com os headers webhook-id, webhook-timestamp e webhook-signature (como verificar).
{
"id": "evt_mhexample0000event00001",
"type": "entitlement.ended",
"createdAt": "2026-10-31T21:04:51.000Z",
"data": {
"object": {
"id": "ent_mhexample0000vip0000001",
"status": "EXPIRED",
"productId": "prod_mhexample0000vip00001",
"orderItemId": "oitem_mhexample0000vip00001",
"customerId": "cus_mhexample0000steve00001",
"quantity": 1,
"recipient": {
"kind": "MINECRAFT",
"ref": "Steve",
"name": "Steve"
},
"discordUserId": null,
"subscriptionId": null,
"expiresAt": "2026-11-30T21:04:51.000Z",
"endReason": "EXPIRED",
"endedAt": "2026-11-30T21:04:51.000Z"
}
}
}O id do evento é o mesmo em todas as tentativas: use-o para não processar duas vezes.