plan

Eventos relacionados con los planes.

EventoDescripción
plan.createdOcurre cada vez que se crea un plan para realizar suscripciones
plan.updatedOcurre cada vez que se actualiza un plan
plan.deletedOcurre cada vez que se elimina un plan

Plan creado - plan.created

{
"data": {
	"object": {
		"id": "suscripcion-863538",
		"livemode": true,
		"created_at": 1669763974,
		"name": "Profesional Total",
		"amount": 18900,
		"currency": "MXN",
		"interval": "month",
		"frequency": 1,
		"expiry_count": null,
		"trial_period_days": null,
		"object": "plan"
	},
	"previous_attributes": {
	}
},
	"livemode": true,
	"webhook_status": "successful",
	"webhook_logs": [
		{
			"id": "webhl_2sr6P2oyFqNTSLghJ",
			"url": "http://requestb.in/1467d141",
			"failed_attempts": 12,
			"last_http_response_status": 200,
			"response_data": {},
			"object": "webhook_log",
			"last_attempted_at": 1668480248
		}
	],
	"id": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "plan.created",
	"created_at": 1668482811
}

Plan actualizado - plan.updated

{
"data": {
	"object": {
		"id": "4f9dbda6-135d-41b5-a6fd-8f47ef2e4218",
		"livemode": true,
		"created_at": 1669222120,
		"name": "Fulano Perez",
		"amount": 300,
		"currency": "MXN",
		"interval": "month",
		"frequency": 1,
		"expiry_count": null,
		"trial_period_days": 8,
		"object": "plan"
	},
	"previous_attributes": {
		"amount": 438480
	}
},
	"livemode": true,
	"webhook_status": "successful",
	"webhook_logs": [
		{
			"id": "webhl_2sr6P2oyFqNTSLghJ",
			"url": "http://requestb.in/1467d141",
			"failed_attempts": 12,
			"last_http_response_status": 200,
			"response_data": {},
			"object": "webhook_log",
			"last_attempted_at": 1668480248
		}
	],
	"id": "637306fb5eeaad00015eeb6f",
	"object": "event",
	"type": "plan.updated",
	"created_at": 1668482811
}