credits.purchased
Se completó la compra de un paquete de créditos.
Payload
All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.
The subscription ID.
The customer ID. Returns your externalId if you provided one when creating the customer, otherwise returns the Commet publicId.
The invoice issued for the purchase.
The human-readable invoice number.
The purchased credit pack's name.
The number of credits purchased.
{
"event": "credits.purchased",
"timestamp": "2026-06-15T11:20:00.000Z",
"organizationId": "org_abc123",
"mode": "live",
"apiVersion": "2026-06-10",
"data": {
"subscriptionId": "sub_1a2b3c4d",
"customerId": "user_123",
"invoiceId": "inv_t1u2v3",
"invoiceNumber": "INV-0051",
"creditPackName": "Booster 500",
"credits": 500
}
}Cuándo se dispara
Cuando un cliente compra un paquete de créditos a través del portal de clientes y el pago se realiza con éxito. Los créditos comprados nunca expiran — a diferencia de los créditos del plan, sobreviven a los reinicios del período.
Los créditos incluidos en el plan otorgados en cada reinicio del período disparan credits.granted en su lugar.
Úsalo para confirmar las compras de recarga en tu propia UI o analítica.
¿Cómo está esta guía?