Payload Structure
interface WebhookEvent {
event_id: string;
type: "checkout.review.created";
data: {
id: string; // id of the checkout
type: "deposit" | "withdrawal";
review: {
id: string; // review ID
status: "created";
decline_reason: null;
reviewed_at: null;
created_at: string;
amount_cents: number;
};
customer: {
id: string;
};
}
}
Example Payload
{
"event_id": "ev_KdjQ5npA7dvMnucZH6GStvkj7w97d2zr",
"type": "checkout.review.created",
"data": {
"id": "chk_DJmBP8yxzHnvudECQB9mPBFjqM7RugUu",
"type": "withdrawal",
"review": {
"id": "cpilr_iAprLYUjxk1qadgejnxRdzVEBzHguMYg",
"status": "created",
"decline_reason": null,
"reviewed_at": null,
"created_at": "2026-04-08T14:30:00Z",
"amount_cents": 5000
},
"customer": {
"id": "cus_LzRqKvc2VpxtJyVeSV8hqoLkfGqdvuaa"
}
}
}

