[{"data":1,"prerenderedAt":1554},["ShallowReactive",2],{"navigation-en":3,"en:\u002Fwebhooks\u002Fevents":193,"en:\u002Fwebhooks\u002Fevents:surround":1549},[4,20,51,77,95,110,133,158,172],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":6},"Getting Started",false,"\u002Fgetting-started","1.getting-started",[10,15],{"title":11,"path":12,"stem":13,"icon":14},"Portal Preparation","\u002Fgetting-started\u002Fportal-setup","1.getting-started\u002F1.portal-setup","i-lucide-rocket",{"title":16,"path":17,"stem":18,"icon":19},"Quickstart","\u002Fgetting-started\u002Fquickstart","1.getting-started\u002F2.quickstart","i-lucide-zap",{"title":21,"icon":22,"path":23,"stem":24,"children":25,"page":6},"Core Concepts","i-lucide-key-round","\u002Fconcepts","2.concepts",[26,31,36,41,46],{"title":27,"path":28,"stem":29,"icon":30},"Authentication","\u002Fconcepts\u002Fauthentication","2.concepts\u002F1.authentication","i-lucide-fingerprint",{"title":32,"path":33,"stem":34,"icon":35},"IP Allowlist","\u002Fconcepts\u002Fip-allowlist","2.concepts\u002F2.ip-allowlist","i-lucide-shield-check",{"title":37,"path":38,"stem":39,"icon":40},"Money Format","\u002Fconcepts\u002Fmoney","2.concepts\u002F3.money","i-lucide-banknote",{"title":42,"path":43,"stem":44,"icon":45},"Idempotency","\u002Fconcepts\u002Fidempotency","2.concepts\u002F4.idempotency","i-lucide-repeat",{"title":47,"path":48,"stem":49,"icon":50},"Error envelope & codes","\u002Fconcepts\u002Ferrors","2.concepts\u002F5.errors","i-lucide-octagon-alert",{"title":52,"icon":53,"path":54,"stem":55,"children":56,"page":6},"Deposits","i-lucide-arrow-down-to-line","\u002Fdeposits","3.deposits",[57,62,67,72],{"title":58,"path":59,"stem":60,"icon":61},"Deposit Overview & State Machine","\u002Fdeposits\u002Foverview","3.deposits\u002F1.overview","i-lucide-info",{"title":63,"path":64,"stem":65,"icon":66},"Create a Deposit","\u002Fdeposits\u002Fcreate","3.deposits\u002F2.create","i-lucide-plus",{"title":68,"path":69,"stem":70,"icon":71},"Get a Deposit","\u002Fdeposits\u002Fretrieve","3.deposits\u002F3.retrieve","i-lucide-search",{"title":73,"path":74,"stem":75,"icon":76},"Cancel a Deposit","\u002Fdeposits\u002Fcancel","3.deposits\u002F4.cancel","i-lucide-x",{"title":78,"icon":79,"path":80,"stem":81,"children":82,"page":6},"Withdrawals","i-lucide-arrow-up-from-line","\u002Fwithdrawals","4.withdrawals",[83,87,91],{"title":84,"path":85,"stem":86,"icon":61},"Withdrawal Overview","\u002Fwithdrawals\u002Foverview","4.withdrawals\u002F1.overview",{"title":88,"path":89,"stem":90,"icon":66},"Create a Withdrawal","\u002Fwithdrawals\u002Fcreate","4.withdrawals\u002F2.create",{"title":92,"path":93,"stem":94,"icon":71},"Get & List Withdrawals","\u002Fwithdrawals\u002Fretrieve","4.withdrawals\u002F3.retrieve",{"title":96,"icon":97,"path":98,"stem":99,"children":100,"page":6},"Balance & Banks","i-lucide-wallet","\u002Fbalance","5.balance",[101,105],{"title":102,"path":103,"stem":104,"icon":97},"Get Balance","\u002Fbalance\u002Fget-balance","5.balance\u002F1.get-balance",{"title":106,"path":107,"stem":108,"icon":109},"Bank List","\u002Fbalance\u002Fbanks","5.balance\u002F2.banks","i-lucide-landmark",{"title":111,"icon":112,"path":113,"stem":114,"children":115,"page":6},"Webhooks","i-lucide-webhook","\u002Fwebhooks","6.webhooks",[116,120,125,129],{"title":117,"path":118,"stem":119,"icon":61},"Webhook Overview","\u002Fwebhooks\u002Foverview","6.webhooks\u002F1.overview",{"title":121,"path":122,"stem":123,"icon":124},"Event Catalog & Payloads","\u002Fwebhooks\u002Fevents","6.webhooks\u002F2.events","i-lucide-list",{"title":126,"path":127,"stem":128,"icon":35},"Signature Verification","\u002Fwebhooks\u002Fsignature-verification","6.webhooks\u002F3.signature-verification",{"title":130,"path":131,"stem":132,"icon":45},"Endpoint Requirements, Retries & SSRF","\u002Fwebhooks\u002Fdelivery-and-retries","6.webhooks\u002F4.delivery-and-retries",{"title":134,"icon":135,"path":136,"stem":137,"children":138,"page":6},"Sandbox","i-lucide-flask-conical","\u002Fsandbox","7.sandbox",[139,143,148,153],{"title":140,"path":141,"stem":142,"icon":61},"Test Mode Overview","\u002Fsandbox\u002Foverview","7.sandbox\u002F1.overview",{"title":144,"path":145,"stem":146,"icon":147},"Simulate Transfer","\u002Fsandbox\u002Fsimulate-transfer","7.sandbox\u002F2.simulate-transfer","i-lucide-banknote-arrow-down",{"title":149,"path":150,"stem":151,"icon":152},"Top-up & Reset","\u002Fsandbox\u002Ftop-up-and-reset","7.sandbox\u002F3.top-up-and-reset","i-lucide-rotate-ccw",{"title":154,"path":155,"stem":156,"icon":157},"End-to-End Test Flow","\u002Fsandbox\u002Fe2e-test-flow","7.sandbox\u002F4.e2e-test-flow","i-lucide-list-checks",{"title":159,"icon":14,"path":160,"stem":161,"children":162,"page":6},"Go-live","\u002Fgo-live","8.go-live",[163,167],{"title":164,"path":165,"stem":166,"icon":157},"Go-live Checklist","\u002Fgo-live\u002Fchecklist","8.go-live\u002F1.checklist",{"title":168,"path":169,"stem":170,"icon":171},"Contact & Support","\u002Fgo-live\u002Fsupport","8.go-live\u002F2.support","i-lucide-life-buoy",{"title":173,"icon":174,"path":175,"stem":176,"children":177,"page":6},"Reference","i-lucide-book-marked","\u002Freference","9.reference",[178,183,188],{"title":179,"path":180,"stem":181,"icon":182},"Endpoint Catalog","\u002Freference\u002Fendpoints","9.reference\u002F1.endpoints","i-lucide-table",{"title":184,"path":185,"stem":186,"icon":187},"Code Samples (Node.js & PHP)","\u002Freference\u002Fcode-samples","9.reference\u002F2.code-samples","i-lucide-code",{"title":189,"path":190,"stem":191,"icon":192},"Status Values & Glossary","\u002Freference\u002Fglossary-states","9.reference\u002F3.glossary-states","i-lucide-book-a",{"id":194,"title":121,"badge":195,"body":196,"description":1543,"extension":1544,"links":195,"meta":1545,"method":195,"navigation":1546,"path":122,"seo":1547,"stem":123,"__hash__":1548},"docs_en\u002F6.webhooks\u002F2.events.md",null,{"type":197,"value":198,"toc":1534},"minimark",[199,208,213,317,340,362,372,376,379,502,512,630,886,907,919,1011,1256,1265,1514,1527,1530],[200,201,202,203,207],"p",{},"The system sends only these events (the event name matches ",[204,205,206],"code",{},"event_type"," in the code).",[209,210,212],"h2",{"id":211},"events-that-are-actually-sent","Events that are actually sent",[214,215,216,230],"table",{},[217,218,219],"thead",{},[220,221,222,227],"tr",{},[223,224,225],"th",{},[204,226,206],{},[223,228,229],{},"Sent when",[231,232,233,248,261,274,292,307],"tbody",{},[220,234,235,241],{},[236,237,238],"td",{},[204,239,240],{},"deposit.success",[236,242,243,244,247],{},"A deposit was matched and credited to the merchant account (status ",[204,245,246],{},"CREDITED",").",[220,249,250,255],{},[236,251,252],{},[204,253,254],{},"deposit.expired",[236,256,257,258,247],{},"A deposit timed out \u002F no amount arrived to match within the window (status ",[204,259,260],{},"EXPIRED",[220,262,263,268],{},[236,264,265],{},[204,266,267],{},"withdrawal.success",[236,269,270,271,247],{},"A withdrawal\u002Fpayout succeeded (status ",[204,272,273],{},"SUCCESS",[220,275,276,281],{},[236,277,278],{},[204,279,280],{},"withdrawal.rejected",[236,282,283,284,287,288,291],{},"A withdrawal was rejected (status ",[204,285,286],{},"REJECTED",") — has a ",[204,289,290],{},"reason"," field.",[220,293,294,299],{},[236,295,296],{},[204,297,298],{},"withdrawal.failed",[236,300,301,302,287,305,291],{},"A withdrawal failed mid-processing (status ",[204,303,304],{},"FAILED",[204,306,290],{},[220,308,309,314],{},[236,310,311],{},[204,312,313],{},"withdrawal.refunded",[236,315,316],{},"Money was returned to the merchant balance after a withdrawal was rejected\u002Ffailed (a refund notification).",[200,318,319,320,324,325,327,328,331,332,335,336,339],{},"In addition, the ",[321,322,323],"strong",{},"\"test\""," button in the Portal sends an event with ",[204,326,206],{}," = ",[204,329,330],{},"webhook.test"," (minimal payload: ",[204,333,334],{},"{\"event_id\":\"test\",\"event_type\":\"webhook.test\"}"," plus header ",[204,337,338],{},"X-Webhook-Event-Id: test","). It only confirms your endpoint is reachable + returns 2xx — it is not a real event.",[341,342,343],"warning",{},[200,344,345,347,348,351,352,355,356,358,359,361],{},[204,346,313],{}," returns the ",[321,349,350],{},"gross"," amount (amount + fee) to your wallet, and it ",[321,353,354],{},"never fires alone on success"," — it is always paired with a ",[204,357,280],{}," or ",[204,360,298],{}," event for the same withdrawal.",[363,364,365],"note",{},[200,366,367,368,371],{},"You only receive events you have ",[321,369,370],{},"subscribed to"," — events you did not subscribe to are skipped (no POST, and not counted as a failure).",[209,373,375],{"id":374},"payload-structure","Payload structure",[200,377,378],{},"Every payload is JSON and always carries these shared fields.",[214,380,381,394],{},[217,382,383],{},[220,384,385,388,391],{},[223,386,387],{},"field",[223,389,390],{},"type",[223,392,393],{},"description",[231,395,396,417,428,440,463,483],{},[220,397,398,403,406],{},[236,399,400],{},[204,401,402],{},"event_id",[236,404,405],{},"string",[236,407,408,409,412,413,416],{},"Format ",[204,410,411],{},"\u003Cid>:\u003Cevent_type>",", e.g. ",[204,414,415],{},"dep_abc:deposit.success"," — used for idempotency.",[220,418,419,423,425],{},[236,420,421],{},[204,422,206],{},[236,424,405],{},[236,426,427],{},"The event name (per the table above).",[220,429,430,435,437],{},[236,431,432],{},[204,433,434],{},"user_ref",[236,436,405],{},[236,438,439],{},"The merchant-side reference you sent when creating the transaction (invoice\u002Forder id), echoed back for reconciliation.",[220,441,442,447,449],{},[236,443,444],{},[204,445,446],{},"status",[236,448,405],{},[236,450,451,452,454,455,454,457,454,459,454,461,247],{},"The terminal status of the transaction (e.g. ",[204,453,246],{},", ",[204,456,260],{},[204,458,273],{},[204,460,286],{},[204,462,304],{},[220,464,465,470,473],{},[236,466,467],{},[204,468,469],{},"livemode",[236,471,472],{},"bool",[236,474,475,478,479,482],{},[204,476,477],{},"true"," = a real transaction, ",[204,480,481],{},"false"," = a sandbox\u002Ftest transaction.",[220,484,485,488,491],{},[236,486,487],{},"money fields",[236,489,490],{},"string|null",[236,492,493,494,497,498,501],{},"Money amounts as baht strings (",[204,495,496],{},"\"100.50\"","); ",[204,499,500],{},"null"," if there is no value yet.",[503,504,506,507,454,509,511],"h3",{"id":505},"deposit-event-depositsuccess-depositexpired","Deposit event (",[204,508,240],{},[204,510,254],{},")",[214,513,514,524],{},[217,515,516],{},[220,517,518,520,522],{},[223,519,387],{},[223,521,390],{},[223,523,393],{},[231,525,526,538,551,563,581,597,617],{},[220,527,528,533,535],{},[236,529,530],{},[204,531,532],{},"deposit_id",[236,534,405],{},[236,536,537],{},"Id of the deposit.",[220,539,540,545,548],{},[236,541,542],{},[204,543,544],{},"amount",[236,546,547],{},"string (baht)",[236,549,550],{},"The amount the merchant set for the customer to pay (requested).",[220,552,553,558,560],{},[236,554,555],{},[204,556,557],{},"expected_amount",[236,559,547],{},[236,561,562],{},"The amount the system expects to actually receive (with cents added for matching).",[220,564,565,570,572],{},[236,566,567],{},[204,568,569],{},"matched_amount",[236,571,490],{},[236,573,574,575,577,578,580],{},"The gross amount that actually arrived — ",[204,576,500],{}," until ",[204,579,246],{},".",[220,582,583,588,590],{},[236,584,585],{},[204,586,587],{},"credited_amount",[236,589,490],{},[236,591,592,593,577,595,580],{},"The net amount credited to the merchant — ",[204,594,500],{},[204,596,246],{},[220,598,599,604,606],{},[236,600,601],{},[204,602,603],{},"fee",[236,605,490],{},[236,607,608,609,612,613,577,615,580],{},"The fee = ",[204,610,611],{},"matched_amount − credited_amount"," — ",[204,614,500],{},[204,616,246],{},[220,618,619,624,627],{},[236,620,621],{},[204,622,623],{},"callback_meta",[236,625,626],{},"object|null",[236,628,629],{},"Metadata the merchant attached when creating the transaction (if any).",[631,632,637],"pre",{"className":633,"code":634,"language":635,"meta":636,"style":636},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"event_id\": \"dep_abc123:deposit.success\",\n  \"event_type\": \"deposit.success\",\n  \"deposit_id\": \"dep_abc123\",\n  \"user_ref\": \"order-7781\",\n  \"amount\": \"500.00\",\n  \"expected_amount\": \"500.01\",\n  \"matched_amount\": \"500.01\",\n  \"credited_amount\": \"491.01\",\n  \"fee\": \"9.00\",\n  \"status\": \"CREDITED\",\n  \"callback_meta\": null,\n  \"livemode\": true\n}\n","json","",[204,638,639,648,675,694,714,734,754,774,793,813,833,852,866,880],{"__ignoreMap":636},[640,641,644],"span",{"class":642,"line":643},"line",1,[640,645,647],{"class":646},"sMK4o","{\n",[640,649,651,654,657,660,663,666,670,672],{"class":642,"line":650},2,[640,652,653],{"class":646},"  \"",[640,655,402],{"class":656},"spNyl",[640,658,659],{"class":646},"\"",[640,661,662],{"class":646},":",[640,664,665],{"class":646}," \"",[640,667,669],{"class":668},"sfazB","dep_abc123:deposit.success",[640,671,659],{"class":646},[640,673,674],{"class":646},",\n",[640,676,678,680,682,684,686,688,690,692],{"class":642,"line":677},3,[640,679,653],{"class":646},[640,681,206],{"class":656},[640,683,659],{"class":646},[640,685,662],{"class":646},[640,687,665],{"class":646},[640,689,240],{"class":668},[640,691,659],{"class":646},[640,693,674],{"class":646},[640,695,697,699,701,703,705,707,710,712],{"class":642,"line":696},4,[640,698,653],{"class":646},[640,700,532],{"class":656},[640,702,659],{"class":646},[640,704,662],{"class":646},[640,706,665],{"class":646},[640,708,709],{"class":668},"dep_abc123",[640,711,659],{"class":646},[640,713,674],{"class":646},[640,715,717,719,721,723,725,727,730,732],{"class":642,"line":716},5,[640,718,653],{"class":646},[640,720,434],{"class":656},[640,722,659],{"class":646},[640,724,662],{"class":646},[640,726,665],{"class":646},[640,728,729],{"class":668},"order-7781",[640,731,659],{"class":646},[640,733,674],{"class":646},[640,735,737,739,741,743,745,747,750,752],{"class":642,"line":736},6,[640,738,653],{"class":646},[640,740,544],{"class":656},[640,742,659],{"class":646},[640,744,662],{"class":646},[640,746,665],{"class":646},[640,748,749],{"class":668},"500.00",[640,751,659],{"class":646},[640,753,674],{"class":646},[640,755,757,759,761,763,765,767,770,772],{"class":642,"line":756},7,[640,758,653],{"class":646},[640,760,557],{"class":656},[640,762,659],{"class":646},[640,764,662],{"class":646},[640,766,665],{"class":646},[640,768,769],{"class":668},"500.01",[640,771,659],{"class":646},[640,773,674],{"class":646},[640,775,777,779,781,783,785,787,789,791],{"class":642,"line":776},8,[640,778,653],{"class":646},[640,780,569],{"class":656},[640,782,659],{"class":646},[640,784,662],{"class":646},[640,786,665],{"class":646},[640,788,769],{"class":668},[640,790,659],{"class":646},[640,792,674],{"class":646},[640,794,796,798,800,802,804,806,809,811],{"class":642,"line":795},9,[640,797,653],{"class":646},[640,799,587],{"class":656},[640,801,659],{"class":646},[640,803,662],{"class":646},[640,805,665],{"class":646},[640,807,808],{"class":668},"491.01",[640,810,659],{"class":646},[640,812,674],{"class":646},[640,814,816,818,820,822,824,826,829,831],{"class":642,"line":815},10,[640,817,653],{"class":646},[640,819,603],{"class":656},[640,821,659],{"class":646},[640,823,662],{"class":646},[640,825,665],{"class":646},[640,827,828],{"class":668},"9.00",[640,830,659],{"class":646},[640,832,674],{"class":646},[640,834,836,838,840,842,844,846,848,850],{"class":642,"line":835},11,[640,837,653],{"class":646},[640,839,446],{"class":656},[640,841,659],{"class":646},[640,843,662],{"class":646},[640,845,665],{"class":646},[640,847,246],{"class":668},[640,849,659],{"class":646},[640,851,674],{"class":646},[640,853,855,857,859,861,863],{"class":642,"line":854},12,[640,856,653],{"class":646},[640,858,623],{"class":656},[640,860,659],{"class":646},[640,862,662],{"class":646},[640,864,865],{"class":646}," null,\n",[640,867,869,871,873,875,877],{"class":642,"line":868},13,[640,870,653],{"class":646},[640,872,469],{"class":656},[640,874,659],{"class":646},[640,876,662],{"class":646},[640,878,879],{"class":646}," true\n",[640,881,883],{"class":642,"line":882},14,[640,884,885],{"class":646},"}\n",[200,887,888,889,891,892,894,895,894,897,899,900,902,903,327,905,580],{},"For ",[204,890,254],{},", the values of ",[204,893,569],{}," \u002F ",[204,896,587],{},[204,898,603],{}," are ",[204,901,500],{}," and ",[204,904,446],{},[204,906,260],{},[503,908,910,911,454,913,454,915,454,917,511],{"id":909},"withdrawal-event-withdrawalsuccess-withdrawalrejected-withdrawalfailed-withdrawalrefunded","Withdrawal event (",[204,912,267],{},[204,914,280],{},[204,916,298],{},[204,918,313],{},[214,920,921,931],{},[217,922,923],{},[220,924,925,927,929],{},[223,926,387],{},[223,928,390],{},[223,930,393],{},[231,932,933,945,956,967,979,995],{},[220,934,935,940,942],{},[236,936,937],{},[204,938,939],{},"withdrawal_id",[236,941,405],{},[236,943,944],{},"Id of the withdrawal.",[220,946,947,951,953],{},[236,948,949],{},[204,950,544],{},[236,952,547],{},[236,954,955],{},"The withdrawal amount.",[220,957,958,962,964],{},[236,959,960],{},[204,961,603],{},[236,963,547],{},[236,965,966],{},"The withdrawal fee.",[220,968,969,974,976],{},[236,970,971],{},[204,972,973],{},"net_payout",[236,975,547],{},[236,977,978],{},"The net amount paid out to the destination.",[220,980,981,986,989],{},[236,982,983],{},[204,984,985],{},"destination",[236,987,988],{},"object",[236,990,991,992,247],{},"The full payout destination (e.g. ",[204,993,994],{},"{\"bank\":\"KBANK\",\"account_no\":\"1234567890\",\"name\":\"Cust\"}",[220,996,997,1001,1003],{},[236,998,999],{},[204,1000,290],{},[236,1002,405],{},[236,1004,1005,1006,894,1008,1010],{},"The reason (present only on ",[204,1007,280],{},[204,1009,298],{},"; absent on success).",[631,1012,1014],{"className":633,"code":1013,"language":635,"meta":636,"style":636},"{\n  \"event_id\": \"wd_xyz789:withdrawal.success\",\n  \"event_type\": \"withdrawal.success\",\n  \"withdrawal_id\": \"wd_xyz789\",\n  \"user_ref\": \"wd-order-7\",\n  \"amount\": \"300.00\",\n  \"fee\": \"5.40\",\n  \"net_payout\": \"294.60\",\n  \"destination\": { \"bank\": \"KBANK\", \"account_no\": \"1234567890\", \"name\": \"Cust\" },\n  \"status\": \"SUCCESS\",\n  \"livemode\": true\n}\n",[204,1015,1016,1020,1039,1057,1076,1095,1114,1133,1152,1222,1240,1252],{"__ignoreMap":636},[640,1017,1018],{"class":642,"line":643},[640,1019,647],{"class":646},[640,1021,1022,1024,1026,1028,1030,1032,1035,1037],{"class":642,"line":650},[640,1023,653],{"class":646},[640,1025,402],{"class":656},[640,1027,659],{"class":646},[640,1029,662],{"class":646},[640,1031,665],{"class":646},[640,1033,1034],{"class":668},"wd_xyz789:withdrawal.success",[640,1036,659],{"class":646},[640,1038,674],{"class":646},[640,1040,1041,1043,1045,1047,1049,1051,1053,1055],{"class":642,"line":677},[640,1042,653],{"class":646},[640,1044,206],{"class":656},[640,1046,659],{"class":646},[640,1048,662],{"class":646},[640,1050,665],{"class":646},[640,1052,267],{"class":668},[640,1054,659],{"class":646},[640,1056,674],{"class":646},[640,1058,1059,1061,1063,1065,1067,1069,1072,1074],{"class":642,"line":696},[640,1060,653],{"class":646},[640,1062,939],{"class":656},[640,1064,659],{"class":646},[640,1066,662],{"class":646},[640,1068,665],{"class":646},[640,1070,1071],{"class":668},"wd_xyz789",[640,1073,659],{"class":646},[640,1075,674],{"class":646},[640,1077,1078,1080,1082,1084,1086,1088,1091,1093],{"class":642,"line":716},[640,1079,653],{"class":646},[640,1081,434],{"class":656},[640,1083,659],{"class":646},[640,1085,662],{"class":646},[640,1087,665],{"class":646},[640,1089,1090],{"class":668},"wd-order-7",[640,1092,659],{"class":646},[640,1094,674],{"class":646},[640,1096,1097,1099,1101,1103,1105,1107,1110,1112],{"class":642,"line":736},[640,1098,653],{"class":646},[640,1100,544],{"class":656},[640,1102,659],{"class":646},[640,1104,662],{"class":646},[640,1106,665],{"class":646},[640,1108,1109],{"class":668},"300.00",[640,1111,659],{"class":646},[640,1113,674],{"class":646},[640,1115,1116,1118,1120,1122,1124,1126,1129,1131],{"class":642,"line":756},[640,1117,653],{"class":646},[640,1119,603],{"class":656},[640,1121,659],{"class":646},[640,1123,662],{"class":646},[640,1125,665],{"class":646},[640,1127,1128],{"class":668},"5.40",[640,1130,659],{"class":646},[640,1132,674],{"class":646},[640,1134,1135,1137,1139,1141,1143,1145,1148,1150],{"class":642,"line":776},[640,1136,653],{"class":646},[640,1138,973],{"class":656},[640,1140,659],{"class":646},[640,1142,662],{"class":646},[640,1144,665],{"class":646},[640,1146,1147],{"class":668},"294.60",[640,1149,659],{"class":646},[640,1151,674],{"class":646},[640,1153,1154,1156,1158,1160,1162,1165,1167,1171,1173,1175,1177,1180,1182,1185,1187,1190,1192,1194,1196,1199,1201,1203,1205,1208,1210,1212,1214,1217,1219],{"class":642,"line":795},[640,1155,653],{"class":646},[640,1157,985],{"class":656},[640,1159,659],{"class":646},[640,1161,662],{"class":646},[640,1163,1164],{"class":646}," {",[640,1166,665],{"class":646},[640,1168,1170],{"class":1169},"sBMFI","bank",[640,1172,659],{"class":646},[640,1174,662],{"class":646},[640,1176,665],{"class":646},[640,1178,1179],{"class":668},"KBANK",[640,1181,659],{"class":646},[640,1183,1184],{"class":646},",",[640,1186,665],{"class":646},[640,1188,1189],{"class":1169},"account_no",[640,1191,659],{"class":646},[640,1193,662],{"class":646},[640,1195,665],{"class":646},[640,1197,1198],{"class":668},"1234567890",[640,1200,659],{"class":646},[640,1202,1184],{"class":646},[640,1204,665],{"class":646},[640,1206,1207],{"class":1169},"name",[640,1209,659],{"class":646},[640,1211,662],{"class":646},[640,1213,665],{"class":646},[640,1215,1216],{"class":668},"Cust",[640,1218,659],{"class":646},[640,1220,1221],{"class":646}," },\n",[640,1223,1224,1226,1228,1230,1232,1234,1236,1238],{"class":642,"line":815},[640,1225,653],{"class":646},[640,1227,446],{"class":656},[640,1229,659],{"class":646},[640,1231,662],{"class":646},[640,1233,665],{"class":646},[640,1235,273],{"class":668},[640,1237,659],{"class":646},[640,1239,674],{"class":646},[640,1241,1242,1244,1246,1248,1250],{"class":642,"line":835},[640,1243,653],{"class":646},[640,1245,469],{"class":656},[640,1247,659],{"class":646},[640,1249,662],{"class":646},[640,1251,879],{"class":646},[640,1253,1254],{"class":642,"line":854},[640,1255,885],{"class":646},[200,1257,1258,1259,1261,1262,1264],{},"Example of ",[204,1260,280],{}," (with ",[204,1263,290],{},"):",[631,1266,1268],{"className":633,"code":1267,"language":635,"meta":636,"style":636},"{\n  \"event_id\": \"wd_xyz789:withdrawal.rejected\",\n  \"event_type\": \"withdrawal.rejected\",\n  \"withdrawal_id\": \"wd_xyz789\",\n  \"user_ref\": \"wd-order-7\",\n  \"amount\": \"300.00\",\n  \"fee\": \"5.40\",\n  \"net_payout\": \"294.60\",\n  \"destination\": { \"bank\": \"KBANK\", \"account_no\": \"1234567890\", \"name\": \"Cust\" },\n  \"status\": \"REJECTED\",\n  \"reason\": \"bank account closed\",\n  \"livemode\": true\n}\n",[204,1269,1270,1274,1293,1311,1329,1347,1365,1383,1401,1461,1479,1498,1510],{"__ignoreMap":636},[640,1271,1272],{"class":642,"line":643},[640,1273,647],{"class":646},[640,1275,1276,1278,1280,1282,1284,1286,1289,1291],{"class":642,"line":650},[640,1277,653],{"class":646},[640,1279,402],{"class":656},[640,1281,659],{"class":646},[640,1283,662],{"class":646},[640,1285,665],{"class":646},[640,1287,1288],{"class":668},"wd_xyz789:withdrawal.rejected",[640,1290,659],{"class":646},[640,1292,674],{"class":646},[640,1294,1295,1297,1299,1301,1303,1305,1307,1309],{"class":642,"line":677},[640,1296,653],{"class":646},[640,1298,206],{"class":656},[640,1300,659],{"class":646},[640,1302,662],{"class":646},[640,1304,665],{"class":646},[640,1306,280],{"class":668},[640,1308,659],{"class":646},[640,1310,674],{"class":646},[640,1312,1313,1315,1317,1319,1321,1323,1325,1327],{"class":642,"line":696},[640,1314,653],{"class":646},[640,1316,939],{"class":656},[640,1318,659],{"class":646},[640,1320,662],{"class":646},[640,1322,665],{"class":646},[640,1324,1071],{"class":668},[640,1326,659],{"class":646},[640,1328,674],{"class":646},[640,1330,1331,1333,1335,1337,1339,1341,1343,1345],{"class":642,"line":716},[640,1332,653],{"class":646},[640,1334,434],{"class":656},[640,1336,659],{"class":646},[640,1338,662],{"class":646},[640,1340,665],{"class":646},[640,1342,1090],{"class":668},[640,1344,659],{"class":646},[640,1346,674],{"class":646},[640,1348,1349,1351,1353,1355,1357,1359,1361,1363],{"class":642,"line":736},[640,1350,653],{"class":646},[640,1352,544],{"class":656},[640,1354,659],{"class":646},[640,1356,662],{"class":646},[640,1358,665],{"class":646},[640,1360,1109],{"class":668},[640,1362,659],{"class":646},[640,1364,674],{"class":646},[640,1366,1367,1369,1371,1373,1375,1377,1379,1381],{"class":642,"line":756},[640,1368,653],{"class":646},[640,1370,603],{"class":656},[640,1372,659],{"class":646},[640,1374,662],{"class":646},[640,1376,665],{"class":646},[640,1378,1128],{"class":668},[640,1380,659],{"class":646},[640,1382,674],{"class":646},[640,1384,1385,1387,1389,1391,1393,1395,1397,1399],{"class":642,"line":776},[640,1386,653],{"class":646},[640,1388,973],{"class":656},[640,1390,659],{"class":646},[640,1392,662],{"class":646},[640,1394,665],{"class":646},[640,1396,1147],{"class":668},[640,1398,659],{"class":646},[640,1400,674],{"class":646},[640,1402,1403,1405,1407,1409,1411,1413,1415,1417,1419,1421,1423,1425,1427,1429,1431,1433,1435,1437,1439,1441,1443,1445,1447,1449,1451,1453,1455,1457,1459],{"class":642,"line":795},[640,1404,653],{"class":646},[640,1406,985],{"class":656},[640,1408,659],{"class":646},[640,1410,662],{"class":646},[640,1412,1164],{"class":646},[640,1414,665],{"class":646},[640,1416,1170],{"class":1169},[640,1418,659],{"class":646},[640,1420,662],{"class":646},[640,1422,665],{"class":646},[640,1424,1179],{"class":668},[640,1426,659],{"class":646},[640,1428,1184],{"class":646},[640,1430,665],{"class":646},[640,1432,1189],{"class":1169},[640,1434,659],{"class":646},[640,1436,662],{"class":646},[640,1438,665],{"class":646},[640,1440,1198],{"class":668},[640,1442,659],{"class":646},[640,1444,1184],{"class":646},[640,1446,665],{"class":646},[640,1448,1207],{"class":1169},[640,1450,659],{"class":646},[640,1452,662],{"class":646},[640,1454,665],{"class":646},[640,1456,1216],{"class":668},[640,1458,659],{"class":646},[640,1460,1221],{"class":646},[640,1462,1463,1465,1467,1469,1471,1473,1475,1477],{"class":642,"line":815},[640,1464,653],{"class":646},[640,1466,446],{"class":656},[640,1468,659],{"class":646},[640,1470,662],{"class":646},[640,1472,665],{"class":646},[640,1474,286],{"class":668},[640,1476,659],{"class":646},[640,1478,674],{"class":646},[640,1480,1481,1483,1485,1487,1489,1491,1494,1496],{"class":642,"line":835},[640,1482,653],{"class":646},[640,1484,290],{"class":656},[640,1486,659],{"class":646},[640,1488,662],{"class":646},[640,1490,665],{"class":646},[640,1492,1493],{"class":668},"bank account closed",[640,1495,659],{"class":646},[640,1497,674],{"class":646},[640,1499,1500,1502,1504,1506,1508],{"class":642,"line":854},[640,1501,653],{"class":646},[640,1503,469],{"class":656},[640,1505,659],{"class":646},[640,1507,662],{"class":646},[640,1509,879],{"class":646},[640,1511,1512],{"class":642,"line":868},[640,1513,885],{"class":646},[363,1515,1516],{},[200,1517,1518,1519,1526],{},"The withdrawal payload ",[321,1520,1521,1522,1525],{},"no longer has a ",[204,1523,1524],{},"kind"," field"," (it was removed) — do not depend on this field.",[200,1528,1529],{},"::placeholder-note{value=\"destination in the webhook is the \"full plaintext destination\" per the system owner's decision — confirm that exposing the full account number in the real payload is intended\"}\n::",[1531,1532,1533],"style",{},"html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}",{"title":636,"searchDepth":643,"depth":650,"links":1535},[1536,1537],{"id":211,"depth":650,"text":212},{"id":374,"depth":650,"text":375,"children":1538},[1539,1541],{"id":505,"depth":677,"text":1540},"Deposit event (deposit.success, deposit.expired)",{"id":909,"depth":677,"text":1542},"Withdrawal event (withdrawal.success, withdrawal.rejected, withdrawal.failed, withdrawal.refunded)","Every webhook event UnknownPay actually sends, plus the shared payload fields and real JSON examples for deposits and withdrawals","md",{},{"icon":124},{"title":121,"description":1543},"aolrkzfVLisavdo2yTZfMi4jl2kA4OmW4WuPsbZT88M",[1550,1552],{"title":117,"path":118,"stem":119,"description":1551,"icon":61,"children":-1},"How UnknownPay notifies your server of terminal deposit and withdrawal states, and how to configure a webhook in the Portal",{"title":126,"path":127,"stem":128,"description":1553,"icon":35,"children":-1},"Verify the X-Webhook-Signature HMAC-SHA256 on the raw request bytes before parsing JSON, with Node.js and Python examples",1781891155488]