Payload Structure
interface WebhookEvent {
event_id: string;
type: "checkout.review.approved";
data: {
id: string; // id of the checkout
type: "deposit" | "withdrawal";
review: {
id: string; // review ID
status: "approved";
decline_reason: null;
reviewed_at: string;
created_at: string;
amount_cents: number;
};
customer: {
id: string;
};
}
}
Example Payload
{
"event_id": "ev_Gv7KrD7xg2Puy7AaZ1mSLTKxTURTjPaM",
"type": "checkout.review.approved",
"data": {
"id": "chk_KpjVV7XSXqxsW7Wg17oFmqsWQy482bhb",
"type": "withdrawal",
"review": {
"id": "cpilr_TfnBjgUPXvCG6KmuwxuMcRPmTFGkXm1L",
"status": "approved",
"decline_reason": null,
"reviewed_at": "2026-04-08T15:00:00Z",
"created_at": "2026-04-08T14:30:00Z",
"amount_cents": 5000
},
"customer": {
"id": "cus_Mhv5fucQqcFPhn7P8dC7GnyuMZ2R63ry"
}
}
}

