checkout.voided is off by default. It will not be delivered until you enable it in Dashboard → Developers. See Receiving Webhooks for instructions.Payload Structure
interface WebhookEvent {
event_id: string;
data: {
id: string; // id of the checkout you originally created
line_items: Array<{
product_id: string;
quantity: number;
total_amount_cents: number;
product_name: string;
product_url: string;
product_price_cents: number;
sku: string;
}>;
line_items_total_amount_cents: number | null;
type: "deposit" | "withdrawal"; // the checkout type — not the event type below
charge: {
id: string;
amount_cents: number;
transaction_type: "credit" | "debit";
status: string;
from_status: string;
failure_code: string | null;
failure_message: string | null;
};
customer: {
id: string;
};
subscription: {
id: string;
interval: "day" | "week" | "month" | "year";
interval_count: number;
line_items: Array<{
product_id: string;
sku: string;
product_name: string;
product_url: string;
quantity: number;
price_cents: number;
total_amount_cents: number;
}>;
line_items_total_amount_cents: number | null;
} | null; // null for non-subscription checkouts
};
type: "checkout.voided";
}
Example Response
{
"event_id": "ev_tDaWu5aTVa2kbvDjGe55rxZpaMEmVFWB",
"data": {
"id": "chk_u8ThNhNory2ydjKWH5VmwsYpZA54wVGy",
"line_items": [],
"line_items_total_amount_cents": null,
"type": "deposit",
"charge": {
"id": "ch_sybbteMNNfCGZN9SixJ199ZhaUjERzgA",
"amount_cents": 2500,
"transaction_type": "credit",
"status": "voided",
"from_status": "succeeded",
"failure_code": null,
"failure_message": null
},
"customer": {
"id": "cus_YPyZUwR9pR3zz3gWzqd69Pb2efRCacN1"
},
"subscription": null
},
"type": "checkout.voided"
}

