{"id":808,"date":"2022-07-04T17:48:46","date_gmt":"2022-07-04T09:48:46","guid":{"rendered":"https:\/\/open-doc.jkos.com\/?docs=%e6%8e%88%e6%ac%8a%e6%89%a3%e6%ac%be-authorized-payment\/api%e5%88%97%e8%a1%a8-api-lists\/%e6%8e%88%e6%ac%8a%e7%b5%82%e6%ad%a2-cancellation-on-authorization"},"modified":"2026-02-06T16:35:37","modified_gmt":"2026-02-06T08:35:37","slug":"%e6%8e%88%e6%ac%8a%e7%b5%82%e6%ad%a2-cancellation-on-authorization","status":"publish","type":"docs","link":"https:\/\/open-doc.jkos.com\/?docs=%e6%8e%88%e6%ac%8a%e6%89%a3%e6%ac%be-authorized-payment\/api%e5%88%97%e8%a1%a8-api-lists\/%e6%8e%88%e6%ac%8a%e7%b5%82%e6%ad%a2-cancellation-on-authorization","title":{"rendered":"\u6388\u6b0a\u7d42\u6b62 Cancellation on Authorization"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u7531\u5546\u5bb6\u767c\u52d5<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>\u6388\u6b0a\u7d42\u6b62 Cancellation API<\/strong><\/p>\n\n\n\n<p><strong>Method\uff1a<\/strong><em>POST<\/em><br><strong>Domain\uff1a<\/strong><br><code><em>https:\/\/[Host]\/platform\/authpay\/cancel<\/em><\/code><\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p id=\"block-fe06b90e-d7df-4a04-af2a-7f798e65bb1e\"><strong>\u8aaa\u660e\uff1a<\/strong><br>\u96fb\u5546\u5e73\u53f0\u547c\u53eb\u6b64API\uff0c\u89e3\u9664\u8a72\u7b46\u5e73\u53f0\u6388\u6b0a\u5e8f\u865f\u7684\u6388\u6b0a\u7d81\u5b9a<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u8acb\u6c42\u53c3\u6578 (Request Parameter)<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th><strong><strong>\u53c3\u6578\u540d\u7a31<\/strong><br>Parameter<\/strong><\/th><th><strong><strong>\u8cc7\u6599\u578b\u614b<\/strong><br>Data Type<\/strong><\/th><th><strong><strong>\u6700\u5927\u9577\u5ea6<\/strong><br>Maximum<\/strong><\/th><th><strong><strong>\u5fc5\u8981<\/strong>\u7684<br>Required<\/strong><\/th><th><strong>\u8aaa\u660e<\/strong><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>auth_no<\/td><td>string<\/td><td>30<\/td><td>Y<\/td><td>\u8857\u53e3\u7aef\u6388\u6b0a\u7de8\u865f<\/td><td>&nbsp;JKOPay authorization number<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u7bc4\u4f8b (Example)\uff1a<\/strong><\/h2>\n\n\n\n<p><strong>\u6388\u6b0a\u7d42\u6b62 API Request\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">POST https:\/\/{\u8857\u53e3\u8def\u5f91}\/platform\/authpay\/cancel<br>Content-Type: application\/json<br>api-key: f355331eb4e1d23c00cfab0af5c67830f065214da827a910cfc0ee27e1a03d2b<br>digest: 3b05694dcd586b9221b7cd62aa1e9e3d1a2fcd517c9a0251e1b41c0b271853ec<br><br>{<br>  \"auth_no\": \"955886860685246464\"<br>}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fd4\u56de\u53c3\u6578 (Response JSON Body)<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th><strong>\u53c3\u6578\u540d\u7a31<\/strong><br>Parameter<\/th><th><strong>\u8cc7\u6599\u578b\u614b<\/strong><br>Data Type<\/th><th><strong>\u8aaa\u660e<\/strong><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>result<\/td><td>string<\/td><td>\u8acb\u53c3\u7167 API \u56de\u8986\u4ee3\u78bc\uff08ResponseCode\uff09\u3002<\/td><td>Please refer to API response code (ResponseCode).<\/td><\/tr><tr><td>message<\/td><td>string<\/td><td>\u7d50\u679c\u8a0a\u606f\u6216\u5931\u6557\u7406\u7531\u3002<\/td><td>Result message or reason of error.<\/td><\/tr><tr><td>result_object fields<\/td><td><\/td><td>\u56de\u8986\u7269\u4ef6<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7bc4\u4f8b (Example)\uff1a<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>\u6388\u6b0a\u7d42\u6b62<\/strong> API Response (\u6210\u529f)\uff1a<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"\" class=\" line-numbers\">{<br>  \"result\": \"000\",<br>  \"message\": null,<br>  \"result_object\": null<br>}<\/code><\/pre>\n\n\n\n<p><strong>\u6388\u6b0a\u7d42\u6b62 API Response (\u5931\u6557)\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">{<br>  \"result\": \"200\",<br>  \"message\": \"Ungranted authPay cannot be canceled\",<br>  \"result_object\": null<br>}<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7531\u8857\u53e3\u767c\u52d5 &#8211; \u5546\u5bb6\u6703\u6536\u5230\u7531\u8857\u53e3\u767c\u9001\u7684\u7d50\u679c\u901a\u77e5URL<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u7d42\u6b62\u6388\u6b0a\u7d81\u5b9a\u7d50\u679c\u901a\u77e5Callback URL\u5be6\u4f5c\u898f\u683c<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Method\uff1aPOST<\/strong><\/p>\n\n\n\n<p><strong>\u8aaa\u660e\uff1a<\/strong><br>\u7531\u5e73\u53f0\u5be6\u4f5c\u6b64\u63a5\u6536\u901a\u77e5 URL (https)\uff0c\u4e26\u5c07 URL \uff08\u6e2c\u8a66\u74b0\u5883\u8207\u6b63\u5f0f\u74b0\u5883\uff09\u63d0\u4f9b\u7d66\u8857\u53e3\uff0c\u8857\u53e3\u767c\u8d77\u89e3\u7d81\u6210\u529f\u5f8c\uff0c\u6703\u547c\u53eb\u6b64 API \u901a\u77e5\u96fb\u5546\u5e73\u53f0\u89e3\u7d81\u6210\u529f\u3002<\/p>\n\n\n\n<p><br>\u8857\u53e3\u8a8d\u5b9aHTTP Status Code 200&nbsp;\u70ba\u6210\u529f\uff0cHTTP Status Code 500&nbsp;\u8a8d\u5b9a\u5931\u6557<\/p>\n\n\n\n<p><strong>\u9023\u7dda\u898f\u5247\uff1a<\/strong><br>Connection timeout\uff1a5 \u79d2<br>Read timeout\uff1a10 \u79d2<\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-style-plain is-layout-flow wp-block-quote-is-layout-flow\"><\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">\u8acb\u6c42\u53c3\u6578 (Request Parameter)<\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th><strong>\u53c3\u6578\u540d\u7a31<br>Parameter<\/strong><\/th><th><strong>\u8cc7\u6599\u578b\u614b<br>Data Type<\/strong><\/th><th><strong>\u6700\u5927\u9577\u5ea6<br>Maximum<\/strong><\/th><th><strong>\u5fc5\u8981\u7684<br>Required<\/strong><\/th><th><strong>\u8aaa\u660e<\/strong><\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td>auth_no<\/td><td>string<\/td><td>30<\/td><td>Y<\/td><td>\u8857\u53e3\u7aef\u6388\u6b0a\u7de8\u865f<\/td><td>JKOPay authorization number<\/td><\/tr><tr><td>platform_authpay_id&nbsp;<\/td><td>String<\/td><td>60<\/td><td>N<\/td><td>\u5e73\u53f0\u6388\u6263\u7de8\u865f\uff08\u7559\u5b58\u2f64\uff09<\/td><td>Platform\u2019s authorization ID (for record-keeping).<\/td><\/tr><tr><td>cancal_time&nbsp;<\/td><td>datetime string&nbsp;<\/td><td><\/td><td>Y<\/td><td>\u6388\u6b0a\u7d42\u2f4c\u6642\u9593<br>YYYY-mm-dd HH:MM:SS<\/td><td>Time of Cancellation<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u7bc4\u4f8b (Example)\uff1a<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"\" class=\" line-numbers\">{<br>\"auth_no\": \"609469846329102336\",<br>\"platform_authpay_id\": \"AUTHPAY_001\",<br>\"cancel_time\": \"2021-10-27 09:04:51\"<br>}<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><br>HTTP Response<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"\" class=\" line-numbers\">HTTP 200<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"featured_media":0,"parent":756,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-808","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/808","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=808"}],"version-history":[{"count":9,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/808\/revisions"}],"predecessor-version":[{"id":1643,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/808\/revisions\/1643"}],"up":[{"embeddable":true,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/756"}],"next":[{"title":"\u6388\u6b0a\u7d81\u5b9a\u7d50\u679c\u901a\u77e5 Authorization CallBack","link":"https:\/\/open-doc.jkos.com\/?docs=%e6%8e%88%e6%ac%8a%e6%89%a3%e6%ac%be-authorized-payment\/api%e5%88%97%e8%a1%a8-api-lists\/%e6%8e%88%e6%ac%8a%e7%b6%81%e5%ae%9a%e7%b5%90%e6%9e%9c%e9%80%9a%e7%9f%a5-authorization-callback","href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/1267"}],"prev":[{"title":"\u4ee3\u78bc\u610f\u7fa9 API Response Code","link":"https:\/\/open-doc.jkos.com\/?docs=%e6%8e%88%e6%ac%8a%e6%89%a3%e6%ac%be-authorized-payment\/api%e5%88%97%e8%a1%a8-api-lists\/%e4%bb%a3%e7%a2%bc%e6%84%8f%e7%be%a9-api-response-code","href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=\/wp\/v2\/docs\/833"}],"wp:attachment":[{"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=808"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/open-doc.jkos.com\/index.php?rest_route=%2Fwp%2Fv2%2Fdoc_tag&post=808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}