{"id":185117,"date":"2023-08-12T06:48:17","date_gmt":"2023-08-11T22:48:17","guid":{"rendered":"http:\/\/www.idc.net\/help\/185117\/"},"modified":"2023-08-12T06:48:17","modified_gmt":"2023-08-11T22:48:17","slug":"%e5%90%8e%e6%b5%aa%e4%ba%91%e5%b0%8f%e7%a8%8b%e5%ba%8f%e6%95%99%e7%a8%8b%ef%bc%9a%e5%be%ae%e4%bf%a1%e5%b0%8f%e7%a8%8b%e5%ba%8f-%e5%b0%8f%e7%a8%8b%e5%ba%8f%e4%bd%bf%e7%94%a8%c2%b7cancelorder","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/185117\/","title":{"rendered":"\u540e\u6d6a\u4e91\u5c0f\u7a0b\u5e8f\u6559\u7a0b\uff1a\u5fae\u4fe1\u5c0f\u7a0b\u5e8f \u5c0f\u7a0b\u5e8f\u4f7f\u7528\u00b7cancelOrder"},"content":{"rendered":"<h2>immediateDelivery.cancelOrder<\/h2>\n<blockquote><p>\n  \u672c\u63a5\u53e3\u5e94\u5728\u670d\u52a1\u5668\u7aef\u8c03\u7528\uff0c\u8be6\u7ec6\u8bf4\u660e\u53c2\u89c1 \u670d\u52a1\u7aefAPI\u3002\n<\/p><\/blockquote>\n<p>\u53d6\u6d88\u914d\u9001\u5355\u63a5\u53e3<\/p>\n<h3>\u8bf7\u6c42\u5730\u5740<\/h3>\n<pre><code>POST https:\/\/api.weixin.qq.com\/cgi-bin\/express\/local\/business\/order\/cancel?access_token=ACCESS_TOKEN\n<\/code><\/pre>\n<h3>\u8bf7\u6c42\u53c2\u6570<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u9ed8\u8ba4\u503c<\/th>\n<th>\u5fc5\u586b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>access_token<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u63a5\u53e3\u8c03\u7528\u51ed\u8bc1<\/td>\n<\/tr>\n<tr>\n<td>shopid<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u5546\u5bb6id\uff0c \u7531\u914d\u9001\u516c\u53f8\u5206\u914d\u7684appkey<\/td>\n<\/tr>\n<tr>\n<td>shop_order_id<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u552f\u4e00\u6807\u8bc6\u8ba2\u5355\u7684 ID\uff0c\u7531\u5546\u6237\u751f\u6210<\/td>\n<\/tr>\n<tr>\n<td>shop_no<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u5546\u5bb6\u95e8\u5e97\u7f16\u53f7\uff0c\u5982\u679c\u53ea\u6709\u4e00\u4e2a\u95e8\u5e97\uff0c\u95ea\u9001shop_no\u5fc5\u586b\uff0c\u503c\u4e3a\u5e97\u94faid<\/td>\n<\/tr>\n<tr>\n<td>delivery_sign<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u7528\u914d\u9001\u516c\u53f8\u63d0\u4f9b\u7684appSecret\u52a0\u5bc6\u7684\u6821\u9a8c\u4e32\u8bf4\u660e<\/td>\n<\/tr>\n<tr>\n<td>delivery_id<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u5feb\u9012\u516c\u53f8ID<\/td>\n<\/tr>\n<tr>\n<td>waybill_id<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u5426<\/td>\n<td>\u914d\u9001\u5355id<\/td>\n<\/tr>\n<tr>\n<td>cancel_reason_id<\/td>\n<td>number<\/td>\n<td><\/td>\n<td>\u662f<\/td>\n<td>\u53d6\u6d88\u539f\u56e0Id<\/td>\n<\/tr>\n<tr>\n<td>cancel_reason<\/td>\n<td>string<\/td>\n<td><\/td>\n<td>\u5426<\/td>\n<td>\u53d6\u6d88\u539f\u56e0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>cancel_reason_id \u7684\u5408\u6cd5\u503c<\/p>\n<table>\n<thead>\n<tr>\n<th>\u503c<\/th>\n<th>\u8bf4\u660e<\/th>\n<th>\u6700\u4f4e\u7248\u672c<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u6682\u65f6\u4e0d\u9700\u8981\u90ae\u5bc4<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u4ef7\u683c\u4e0d\u5408\u9002<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u8ba2\u5355\u4fe1\u606f\u6709\u8bef\uff0c\u91cd\u65b0\u4e0b\u5355<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u9a91\u624b\u53d6\u8d27\u4e0d\u53ca\u65f6<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u9a91\u624b\u914d\u9001\u4e0d\u53ca\u65f6<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td>\u5176\u4ed6\u539f\u56e0( \u5982\u679c\u9009\u62e96\uff0c\u9700\u8981\u586b\u5199\u53d6\u6d88\u539f\u56e0\uff0c\u5426\u5219\u4e0d\u9700\u8981\u586b\u5199 )<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8fd4\u56de\u503c<\/h3>\n<h3>Object<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u5c5e\u6027<\/th>\n<th>\u7c7b\u578b<\/th>\n<th>\u8bf4\u660e<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>errcode<\/td>\n<td>number<\/td>\n<td>\u9519\u8bef\u7801, \u5f53errcode==0\u6216\u8005\u4e0d\u5b58\u5728\u8fd8\u9700\u8981\u770bresultcode<\/td>\n<\/tr>\n<tr>\n<td>errmsg<\/td>\n<td>string<\/td>\n<td>\u9519\u8bef\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td>resultcode<\/td>\n<td>number<\/td>\n<td>\u8fd0\u529b\u8fd4\u56de\u7684\u9519\u8bef\u7801<\/td>\n<\/tr>\n<tr>\n<td>resultmsg<\/td>\n<td>string<\/td>\n<td>\u8fd0\u529b\u8fd4\u56de\u7684\u9519\u8bef\u63cf\u8ff0<\/td>\n<\/tr>\n<tr>\n<td>deduct_fee<\/td>\n<td>number<\/td>\n<td>\u6263\u9664\u7684\u8fdd\u7ea6\u91d1(\u5355\u4f4d\uff1a\u5143)\uff0c\u7cbe\u786e\u5230\u5206<\/td>\n<\/tr>\n<tr>\n<td>desc<\/td>\n<td>string<\/td>\n<td>\u8bf4\u660e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u4f7f\u7528\u573a\u666f<\/h3>\n<p>\u8c03\u7528\u672c\u63a5\u53e3\u53ef\u5411\u914d\u9001\u516c\u53f8\u8bf7\u6c42\u53d6\u6d88\u914d\u9001\u5355\uff0c\u5404\u5bb6\u53d6\u6d88\u89c4\u5219\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u914d\u9001\u516c\u53f8<\/th>\n<th>\u53d6\u6d88\u89c4\u5219<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u987a\u4e30\u540c\u57ce\u6025\u9001<\/td>\n<td>\u914d\u9001\u5b8c\u6210\u524d\u4efb\u610f\u8282\u70b9\u53ef\u53d6\u6d88\u914d\u9001\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u95ea\u9001<\/td>\n<td>\u914d\u9001\u5b8c\u6210\u524d\u4efb\u610f\u8282\u70b9\u53ef\u53d6\u6d88\u914d\u9001\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u7f8e\u56e2\u914d\u9001<\/td>\n<td>\u914d\u9001\u5b8c\u6210\u524d\u4efb\u610f\u8282\u70b9\u53ef\u53d6\u6d88\u914d\u9001\u5355<\/td>\n<\/tr>\n<tr>\n<td>\u8fbe\u8fbe<\/td>\n<td>\u9a91\u624b\u53d6\u8d27\u4e4b\u524d\u53ef\u53d6\u6d88\u914d\u9001\u5355<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u8bf7\u6c42\u793a\u4f8b<\/h3>\n<pre><code>{\n   \"shopid\": \"123456\",\n   \"shop_order_id\": \"123456\",\n   \"waybill_id\": \"123456\",\n   \"delivery_id\": \"123456\",\n   \"cancel_reason_id\": 1,\n   \"cancel_reason\": \"\",\n   \"delivery_sign\": \"123456\",\n   \"shop_no\": \"shop_no_111\"\n}\n<\/code><\/pre>\n<h3>\u8fd4\u56de\u6570\u636e\u793a\u4f8b<\/h3>\n<pre><code>{\n  \"resultcode\": 0,\n  \"resultmsg\": \"ok\",\n  \"deduct_fee\": 5,\n  \"desc\": \"blabla\"\n}<\/code><\/pre>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>immediateDelivery.cancelOrder \u672c\u63a5\u53e3\u5e94\u5728\u670d\u52a1\u5668\u7aef\u8c03\u7528\uff0c\u8be6\u7ec6\u8bf4\u660e\u53c2\u89c1 \u670d\u52a1\u7aefAPI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[182398],"tags":[],"class_list":["post-185117","post","type-post","status-publish","format-standard","hentry","category-mini-program"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/185117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=185117"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/185117\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=185117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=185117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=185117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}