{"id":20739,"date":"2024-03-25T18:33:29","date_gmt":"2024-03-25T10:33:29","guid":{"rendered":"https:\/\/www.cyberbiz.io\/support\/?p=20739"},"modified":"2026-01-29T10:23:23","modified_gmt":"2026-01-29T02:23:23","slug":"apiwebhook-%e4%b8%b2%e6%8e%a5%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.cyberbiz.io\/support\/?p=20739","title":{"rendered":"\u81ea\u8a02\u64f4\u5145\u670d\u52d9 : \u4e32\u63a5API\/Webhook"},"content":{"rendered":"\n<div class=\"tag\">\n        <div class=\"tagimg\"><img decoding=\"async\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u9069\u7528\u7ad9\u5225.png\"><\/div>\n        <div class=\"tagimg\"><a href=\"https:\/\/www.cyberbiz.io\/support\/?page_id=2490\"><img decoding=\"async\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u53f0\u7063\u7ad9.png\"><\/a><\/div>\n     <!--  <div class=\"tagimg\"><a href=\"https:\/\/www.cyberbiz.io\/support\/?page_id=32080\"><img decoding=\"async\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u5317\u7f8e\u7ad9.png\"><\/a><\/div>\n        <div class=\"tagimg\"><a href=\"\"><img decoding=\"async\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u65e5\u672c\u7ad9.png\"><\/a><\/div>\n-->\n  <\/div>\n\n\n\n<span class=\"page_title\"><b>\u529f\u80fd\u8aaa\u660e\uff1a<\/b><\/span><br>\n<div class=\"notice_block0\">\n<span class=\"article\">\n<ul>\n<li>\u96fb\u5546\u7cfb\u7d71\u5546\u5f8c\u53f0\u63d0\u4f9b\u5546\u5bb6\u81ea\u8a02\u64f4\u5145\u670d\u52d9\uff0c\u652f\u63f4 API \u8207 Webhook \u4e32\u63a5\u529f\u80fd\uff0c\u8b93\u4f7f\u7528\u8005\u8f15\u9b06\u6574\u5408\u5916\u90e8\u8cc7\u6e90\uff0c\u5be6\u73fe\u66f4\u5f48\u6027\u3001\u500b\u4eba\u5316\u7684\u5546\u52d9\u61c9\u7528\u3002<\/li>\n\n\n\n\n\n\n\n\n<\/ul><\/span>\n<\/div>\n\n\n\n<p class=\"page_title\"><b>\u64cd\u4f5c\u76ee\u9304\uff1a<\/b><\/p>\n<div class=\"page_gray_border\"><span class=\"article\">\n\n<ul>\n<li class=\"ahref\">\n<a href=\"#a\" class=\"a_move\">API\u3001Webhook \u8aaa\u660e<\/a>\n<\/li>\n\n<li class=\"ahref\">\n<a href=\"#b\" class=\"a_move\">\u5f8c\u53f0\u5efa\u7acb\u81ea\u8a02\u61c9\u7528\u7a0b\u5f0f<\/a>\n<\/li>\n\n\n<li class=\"ahref\">\n<a href=\"#c\" class=\"a_move\">API scope<\/a>\n<\/li>\n\n\n\n\n<li class=\"ahref\">\n<a href=\"#d\" class=\"a_move\">API \u5305\u542b\u54ea\u4e9b\u8cc7\u6599\u683c\u5f0f\u53ef\u4ee5\u600e\u9ebc\u67e5\uff1f<\/a>\n<\/li>\n\n\n<li class=\"ahref\">\n<a href=\"#e\" class=\"a_move\">\u5982\u4f55\u7528 token \u4e32\u63a5 API \u53d6\u5f97\u8cc7\u6599\uff1f<\/a>\n<\/li>\n\n<li class=\"ahref\">\n<a href=\"#f\" class=\"a_move\">Webhook \u8a2d\u5b9a<\/a>\n<\/li>\n\n<li class=\"ahref\">\n<a href=\"#g\" class=\"a_move\">\u7db2\u7ad9\u6b0a\u9650\u8a2d\u5b9a<\/a>\n<\/li>\n\n\n<\/ul>\n<\/span><\/div>\n\n\n\n<div class=\"page_notice_block\">\n<span class=\"page_important_ti\">\u6ce8\u610f\u4e8b\u9805:<\/span>\n<br>\n<span class=\"article\">\n<ul>\n<li>API\u53caWebhook\u4e32\u63a5\uff0c\u50c5\u63d0\u4f9b\u7d66\u4f01\u696d\u7248\u3001PLUS\u7248\u9078\u914dAPI\u7684\u5ba2\u6236\u3002<\/li>\n<li>\u4e32\u63a5 API\u53caWebhook\u7686\u9808\u6709\u5de5\u7a0b\u4eba\u54e1\u4f86\u5b8c\u6210\u7a0b\u5f0f\u4e32\u63a5\u8a2d\u5b9a\uff0cCYBERBIZ \u4e0d\u63d0\u4f9b\u6280\u8853\u670d\u52d9\uff0c\u8acb\u5ee0\u5546\u8a55\u4f30\u5f8c\u518d\u64cd\u4f5c\u3002<\/li>\n<li>\u82e5\u6709\u9700\u8981\u958b\u901a\u8acb\u900f\u904e\u7cfb\u7d71\u5ba2\u670d\u63d0\u51fa\u9700\u6c42\u3002<\/li>\n\n<li>\u9650\u5236\u88dc\u5145\uff1a \n<ol>\n<li>\u6bcf\u79d2\u81f3\u591a 5 \u500b Request<\/li>\n<li>\u6bcf\u500b\u8acb\u6c42\u4e0a\u9650\u70ba 2 MB (\u6e2c\u8a66\u5e33\u865f apidemo \u4e0a\u9650\u70ba 2 KB)<\/li>\n\n<\/ol>\n<\/li>\n\n\n\n<\/ul>\n\n\n<\/span><\/div>\n<br>\n\n\n<!--<div class=\"page_gray_border\" style=\"border-left: 3.5px #ff7d00 solid;\"><span class=\"article_a\">\n\u900f\u904e Excel \u6279\u6b21\u4e0a\u50b3\u512a\u60e0\u78bc\u81f3\u5f8c\u53f0\u5f8c\uff0c\u9700\u900f\u904e EDM\u3001LINE OA\u2026\u7b49\u65b9\u5f0f\u63d0\u4f9b\u7d66\u6703\u54e1\u4f7f\u7528\u6298\u6263\u3002(\u4e0a\u50b3\u5f8c\u4e26\u4e0d\u6703\u81ea\u52d5\u532f\u5165\u7d66\u6703\u54e1\u5e33\u6236)\n\u3002<\/span><\/div><br>-->\n\n\n\n<h2 class=\"article_1\" id=\"a\">\ud83d\udccc API\u3001Webhook \u8aaa\u660e<\/h2><br>\n\n<span class=\"article\">\nCYBERBIZ \u63d0\u4f9b\u5ba2\u6236\u514d\u8cbb\u7684 API\u3001Webhook \u670d\u52d9<br>\n<b>\u3010API\u8aaa\u660e\u3011<\/b><br>\n\u7576\u8cb4\u516c\u53f8\u60f3\u8981\u5f9e\u6211\u5011\u4f3a\u670d\u5668\u53d6\u5f97\u3001\u5efa\u7acb\u3001\u66f4\u65b0\u3001\u522a\u9664\u4ee5\u4e0a\u56db\u7a2e\u7cfb\u7d71\u8cc7\u8a0a\uff0c\u7686\u53ef\u8b93\u5176\u81ea\u52d5\u5316\u76f8\u4e92\u4e32\u806f\u57f7\u884c\uff0c\u662f\u4e00\u7a2e\u96d9\u5411\u7684\u8cc7\u8a0a\u62cb\u63a5\u529f\u80fd\u3002<br><br>\n\n<b>\u3010Webhook\u8aaa\u660e\u3011<\/b><br>\nWebhook\u5c31\u50cf\u662f\u8a02\u95b1\u8cc7\u8a0a\u4e00\u6a23\uff0c\u7531\u6211\u5011\u63d0\u4f9b\u60a8\u9396\u5b9a\u7684\u8cc7\u8a0a\u5230\u60a8\u4e00\u500b\u60a8\u6240\u8a2d\u5b9a\u7684\u7db2\u5740\uff0c\u5b83\u5c07\u7e3d\u662f\u5373\u6642\u63d0\u4f9b\u6700\u65b0\u7cfb\u7d71\u8cc7\u8a0a\u7d66\u60a8\u4ee5\u5229\u5f8c\u7e8c\u57f7\u884c\u5224\u65b7\u3002\n\n<\/span>\n<br><hr>\n\n\n\n<h2 class=\"article_1\" id=\"b\">\ud83d\udccc \u5f8c\u53f0\u5efa\u7acb\u81ea\u8a02\u61c9\u7528\u7a0b\u5f0f<\/h2><br>\n<span class=\"article\">\n\n<span class=\"article_path0\">\u5f8c\u53f0\u8def\u5f91 : <\/span><span class=\"article_path\"> \u300cAPP MARKET\u300d\u2192\u300c\u6211\u7684\u64f4\u5145\u670d\u52d9\u300d<\/span><BR><BR>\n\n\n<ol>\n<li>\u5207\u5230\u300c\u81ea\u8a02\u300d\u7684\u5206\u9801\uff0c\u9ede\u64ca\u300c\u5efa\u7acb\u81ea\u8a02\u61c9\u7528\u7a0b\u5f0f\u300d<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook01.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook01.png\" style=\"\" alt=\"\u65b0\u589e\u9801\u9762\"><\/a><\/li><BR>\n\n\n\n\n<li>\u8a2d\u5b9a\u61c9\u7528\u7a0b\u5f0f\u7684\u540d\u7a31\u8ddf API scope \uff08API scope \u53c3\u8003 <a href=\"#c\" class=\"article_href\">API scope<\/a>\uff09\uff0c<BR>\nscope \u88e1\u9762\u7684 API \u5206\u5225\u6709\u54ea\u4e9b\u8cc7\u6599\u53ef\u4ee5\u53c3\u8003 \ud83d\udd87\ufe0f<a href=\"#block\" class=\"article_href\">\u5efa\u7acb\u81ea\u8a02\u64f4\u5145\u670d\u52d9\u4e32\u63a5 API\/webhook<\/a> <BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook02.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook02.png\" style=\"\" alt=\"api scopes \u8a2d\u5b9a\"><\/a><\/li><BR>\n\n\n\n<li>\u5230\u8a2d\u5b9a\u9801\u4e2d\u8a2d\u5b9a Webhook events\u3002<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook03.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook03.png\" style=\"\" alt=\"webhook\"><\/a><\/li><BR>\n\n\n\n<li>\u8a2d\u5b9a\u5b8c\u6210\u5f8c\uff0c\u5c31\u53ef\u4ee5\u7528\u5f8c\u53f0\u63d0\u4f9b\u7684 APP Secret &#038; API Token \u9032\u884c API \u7684\u4e32\u63a5\u4ee5\u53ca Webhook \u7684\u63a5\u6536\u4e86\u3002<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook04.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook04.png\" style=\"\" alt=\"webhook\"><\/a><\/li><BR>\n\n\n<\/ol>\n<\/span><hr>\n\n\n\n<h2 class=\"article_1\" id=\"c\">\ud83d\udccc API scope<\/h2><br>\n<span class=\"article\">\n\n<p class=\"article_a\">scope \u8207\u652f\u63f4 API<\/p>\n\n<ul>\n<li>read scope \u53ef\u4f7f\u7528 HTTP \u65b9\u6cd5\u70ba Get \u7684 API<\/li>\n<li>write scope \u53ef\u4f7f\u7528 HTTP \u65b9\u6cd5\u70ba Post\u3001Put\u3001Delete \u7684 API<\/li>\n<\/ul>\n\n<div class=\"page_gray_border\" style=\"border-left: 3.5px #ff7d00 solid;\">\u53c3\u8003 API \u6587\u4ef6\u5167\u7684 API \u985e\u578b\uff0c\u4f8b\u5982 <code>read_customers<\/code> \u53ef\u4f7f\u7528 <code>customers<\/code> \u985e\u578b\u5e95\u4e0b\u6240\u6709 Get API\uff08\u6587\u4ef6\u5982\u4f55\u4f7f\u7528\u53ef\u4ee5\u53c3\u8003 <a href=\"#d\" class=\"article_href\">API \u5305\u542b\u54ea\u4e9b\u8cc7\u6599\u683c\u5f0f\u53ef\u4ee5\u600e\u9ebc\u67e5\uff1f<\/a>\uff09<\/div>\n\n\n<\/span>\n\n\n\n<figure id=\"block\" class=\"wp-block-table is-style-stripes\"><table class=\"has-fixed-layout\"><thead><tr><th>Scope<\/th><th>zh-TW<\/th><th>en<\/th><th>description<\/th><\/tr><\/thead><tbody><tr><td>public<\/td><td>\u516c\u958b\u8cc7\u6599<\/td><td>public<\/td><td>GET https:\/\/app-store-api.cyberbiz.io\/v2\/product_feeds app \u9810\u8a2d\u6703\u6709\u7684 scope<\/td><\/tr><tr><td>read_products<\/td><td>\u8b80\u53d6\u5546\u54c1<\/td><td>read products<\/td><td>read :<br> products, custom_collections, smart_collections, inventory_sync_groups<\/td><\/tr><tr><td>write_products<\/td><td>\u4fee\u6539\u5546\u54c1<\/td><td>write products<\/td><td>write :<br>products, custom_collections, smart_collections, inventory_sync_groups<\/td><\/tr><tr><td>read_customers<\/td><td>\u8b80\u53d6\u6703\u54e1<\/td><td>read customers<\/td><td>read :<br>orders,<br>periodic_orders,<br>einvoices<\/td><\/tr><tr><td>write_customers<\/td><td>\u4fee\u6539\u5546\u54c1<\/td><td>write customers<\/td><td>write :<br>orders,<br>periodic_orders,<br>einvoices<\/td><\/tr><tr><td>read_orders<\/td><td>\u8b80\u53d6\u6703\u54e1<\/td><td>read orders<\/td><td>read :<br>orders,<br>periodic_orders,<br>einvoices<\/td><\/tr><tr><td>write_orders<\/td><td>\u4fee\u6539\u5546\u54c1<\/td><td>write orders<\/td><td>write :<br>orders,<br>periodic_orders,<br>einvoices<\/td><\/tr><tr><td>read_affiliates<\/td><td>\u8b80\u53d6\u5206\u6f64\u8a02\u55ae<\/td><td>read affiliates<\/td><td>[GET] \/v2\/affiliate_vendor_orders<\/td><\/tr><tr><td>read_discounts<\/td><td>\u8b80\u53d6\u4fc3\u92b7<\/td><td>read discounts<\/td><td>read :<br>discounts , add_buy_collections , shop_coupons , special_collections , vip_groups<\/td><\/tr><tr><td>write_discounts<\/td><td>\u4fee\u6539\u4fc3\u92b7<\/td><td>write discounts<\/td><td>write :<br>discounts , add_buy_collections , shop_coupons , special_collections , vip_groups<\/td><\/tr><tr><td>read_pos<\/td><td>\u8b80\u53d6 POS<\/td><td>read POS<\/td><td>read :<br> pos_shops , stock_adjustments , stock_invoices , stock_receipts , stock_requisitions<\/td><\/tr><tr><td>write_pos<\/td><td>\u4fee\u6539 POS<\/td><td>write POS<\/td><td>write :<br>pos_shops , stock_adjustments , stock_invoices , stock_receipts , stock_requisitions<\/td><\/tr><tr><td>read_branch_stores<\/td><td>\u8b80\u53d6\u9580\u5e02<\/td><td><br>read branch stores<\/td><td>read :<br>branch_stores<\/td><\/tr><tr><td>write_branch_stores<\/td><td>\u4fee\u6539\u9580\u5e02<\/td><td>write branch stores<\/td><td>write :<br> branch_stores<\/td><\/tr><tr><td>read_edms<\/td><td>\u7372\u53d6 EDM \u8cc7\u8a0a<br><br><\/td><td>read EDMs<\/td><td>read :<br> edms<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<HR><BR>\n<h2 class=\"article_1\" id=\"d\">\ud83d\udccc API \u5305\u542b\u54ea\u4e9b\u8cc7\u6599\u683c\u5f0f\u53ef\u4ee5\u600e\u9ebc\u67e5\uff1f<\/h2><br>\n<span class=\"article\">\n\n\n\u5982\u4f55\u67e5\u8a62 CYBERBIZ \u53ef\u4e32\u63a5 API\u9805\u76ee\uff1f\u5728 <a href=\"https:\/\/api-doc.cyberbiz.co\/v1\/api_document\" class=\"article_href\" target=\"blank\" rel=\"noopener\">https:\/\/api-doc.cyberbiz.co\/v1\/api_document<\/a><BR>\n\u3010username\u3011\uff1aapidemo<BR>\n\u3010secret\u3011\uff1aapidemo<BR>\n\u9032\u884c\u767b\u5165<BR>\nAPI\u4e32\u63a5\u9805\u76ee\u53c3\u8003\u6587\u4ef6\uff0c\u4f9d\u7167\u984f\u8272\u7c21\u55ae\u5206\u985e\u4f7f\u7528\u7684\u65b9\u6cd5\u3002\u53ef\u8acb\u516c\u53f8\u6280\u8853\u4eba\u54e1\u5354\u52a9\u4f7f\u7528\u3002<BR><BR>\n\n<p class=\"article_a\" style=\"color:blue\">\u85cd\u8272\u3010GET\u3011: \u53d6\u5f97<\/p>\n<p class=\"article_a\" style=\"color:green\">\u7da0\u8272\u3010POST\u3011: \u5efa\u7acb<\/p>\n<p class=\"article_a\" style=\"color:#ff7d00\">\u9ec3\u8272\u3010PUT\u3011: \u66f4\u65b0<\/p>\n<p class=\"article_a\" style=\"color:red\">\u7d05\u8272\u3010DELETE\u3011: \u522a\u9664<\/p>\n<br>\n\n\n<ul>\n<li>\u4ee5 customers : \u9867\u5ba2\u76f8\u95dc API \u70ba\u4f8b<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook05.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook05.png\" style=\"\" alt=\"customer\"><\/a>\n<\/li>\n\n\n\n<li>\u9ede\u958b\u5f8c\u4efb\u4e00API\u7686\u53ef\u770b\u5230\u76f8\u95dc\u8cc7\u8a0a\u3002\u4e26\u53ef\u9ede\u9078Model\u67e5\u770b\u6b64API\u7684\u4e2d\u6587\u5c0d\u7167\u540d\u7a31\uff0c\u4ee5\u5229\u60a8\u505a\u9078\u64c7\u3002<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook06.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook06.png\" style=\"\" alt=\"model\"><\/a>\n<\/li>\n\n\n<\/ul>\n\n\n<\/span>\n\n\n\n<p>V2 APIs<\/p>\n\n<button type=\"button\" class=\"collapsible\">\ud83d\udca1[GET] \/v2\/product_feeds<\/button>\n<div class=\"content\">\n <pre><code>\n {\n    \"product_feeds\": [\n    \n        {\n            \"name\": \"facebook\",\n            \"url\": \"http:\/\/your-shop-domain.com\/products\/fbcatalog\/512076f08d78013b11306a7b958f3ea1\",\n            \"mime_type\": \"text\/csv\"\n        },\n        {\n            \"name\": \"google\",\n            \"url\": \"http:\/\/your-shop-domain.com\/products\/google_product_feed\/512076f08d78013b11306a7b958f3ea1\",\n            \"mime_type\": \"text\/csv\"\n        },\n        {\n            \"name\": \"shopdotcom\",\n            \"url\": \"http:\/\/your-shop-domain.com\/shopdotcom.xml\",\n            \"mime_type\": \"text\/xml\"\n        },\n        {\n            \"name\": \"line\",\n            \"url\": \"http:\/\/your-shop-domain.com\/line_shopping\/512076f08d78013b11306a7b958f3ea1\/product_full.json\",\n            \"mime_type\": \"application\/json\"\n        }\n    ]\n}\n <\/code><\/pre>\n<\/div>\n\n\n<button type=\"button\" class=\"collapsible\">\ud83d\udca1[GET] \/v2\/affiliate_vendor_orders<\/button>\n<div class=\"content\"><BR>\n <li>\u53c3\u6578\u8aaa\u660e<\/li><BR>\n\n\u5e36\u5728 query string<BR><BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook07.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook07.png\" style=\"\" alt=\"\u65b0\u589e\u512a\u60e0\u5238\u7fa4\u7d44\"><\/a>\n\n\n\n<\/div><HR><BR><BR>\n\n\n\n<style>\n.collapsible {\n  background-color: \t#F0F0F0;\n  border : 1px #BEBEBE solid;\n  color: #272727;\n  cursor: pointer;\n  padding: 18px;\n  width: 100%;\n \n  text-align: left;\n  outline: none;\n  font-size: 15px;\n}\n\n.active, .collapsible:hover {\n  background-color: #336666;\n  color : #fff\n}\n\n.content {\n  padding: 0 18px;\n  display: none;\n  overflow: hidden;\n  background-color: #f1f1f1;\n}\n<\/style>\n\n\n\n<script>\nvar coll = document.getElementsByClassName(\"collapsible\");\nvar i;\n\nfor (i = 0; i < coll.length; i++) {\n  coll[i].addEventListener(\"click\", function() {\n    this.classList.toggle(\"active\");\n    var content = this.nextElementSibling;\n    if (content.style.display === \"block\") {\n      content.style.display = \"none\";\n    } else {\n      content.style.display = \"block\";\n    }\n  });\n}\n<\/script>\n\n\n\n<h2 class=\"article_1\" id=\"e\">\ud83d\udccc \u5982\u4f55\u7528 token \u4e32\u63a5 API \u53d6\u5f97\u8cc7\u6599\uff1f<\/h2><br>\n<span class=\"article\">\nAPI endpoint: <a href=\"https:\/\/app-store-api.cyberbiz.io\/\" class=\"article_href\">https:\/\/app-store-api.cyberbiz.io\/<\/a><BR>\n\u6bcf\u79d2\u81f3\u591a 5 \u500b Request<BR><BR>\n\n<span class=\"article_a\">\u4f7f\u7528 Bearer Token Access API<\/span><BR>\n\n\u5728 Request Header \u4e2d\u5e36\u5165 Access Token<BR>\n<code>Authorization: Bearer {access_token got from \/admin\/oauth\/token}<\/code>\n\n\n<\/span><BR><BR><BR>\n\n\n<span class=\"article_a\">\u7bc4\u4f8b : <\/span>\n\n<pre><code>\ncurl https:\/\/app-store-api.cyberbiz.io\/shop \\\n    -H \"Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2ODkxMzI0ODksImV4cCI6MTY4OTEzOTY4OSwic2hvcF9pZCI6NzEwOSwic2NvcGVzIjoicHVibGljIHNob3BfYXBpIiwic2hvcF9kb21haW4iOiJkZW1vLmN5YmVyYml6LmNvIn0.VyW3B2wA1b6uhH9pDfbzRvPjOmSQD7VHy-IiRmnof9g\" \\\n    -H \"Accept: application\/json\"\n<\/pre><\/code>\n\n<pre><code>\ncurl https:\/\/app-store-api.cyberbiz.io\/v1\/customers \\\n    -H \"Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2ODkxMzI0ODksImV4cCI6MTY4OTEzOTY4OSwic2hvcF9pZCI6NzEwOSwic2NvcGVzIjoicHVibGljIHNob3BfYXBpIiwic2hvcF9kb21haW4iOiJkZW1vLmN5YmVyYml6LmNvIn0.VyW3B2wA1b6uhH9pDfbzRvPjOmSQD7VHy-IiRmnof9g\" \\\n    -H \"Accept: application\/json\"\n<\/pre><\/code>\n\n<pre><code>\ncurl https:\/\/app-store-api.cyberbiz.io\/v2\/product_feeds \\\n    -H \"Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2ODkxMzI0ODksImV4cCI6MTY4OTEzOTY4OSwic2hvcF9pZCI6NzEwOSwic2NvcGVzIjoicHVibGljIHNob3BfYXBpIiwic2hvcF9kb21haW4iOiJkZW1vLmN5YmVyYml6LmNvIn0.VyW3B2wA1b6uhH9pDfbzRvPjOmSQD7VHy-IiRmnof9g\" \\\n    -H \"Accept: application\/json\"\n<\/pre><\/code>\n\n\n\n<HR>\n<h2 class=\"article_1\" id=\"f\">\ud83d\udccc Webhook \u8a2d\u5b9a<\/h2><br>\n<span class=\"article\">\n\n<ol>\n<li>\u61c9\u7528\u7a0b\u5f0f\u7684\u8a2d\u5b9a\u9801\u4e2d\uff0c\u9078\u64c7\u6b32\u8a02\u95b1\u7684 webhook \u4e8b\u4ef6\u3002<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook08.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook08.png\" style=\"\" alt=\"webhook\"><\/a><\/li><BR>\n\n\n<li>\u8a2d\u5b9a\u63a5\u6536\u4e8b\u4ef6\u7528\u7684 endpoint URL\uff0c\u586b\u597d\u5f8c\u5132\u5b58\u5373\u53ef\u958b\u59cb\u63a5\u6536 shop \u7684 webhook events\u4e86<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook09.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook09.png\" style=\"\" alt=\"url\"><\/a><\/li><BR>\n\n<\/ol>\n\n<\/span><HR>\n\n\n\n<h2 class=\"article_1\" id=\"g\">\ud83d\udccc \u7db2\u7ad9\u6b0a\u9650\u8a2d\u5b9a<\/h2><br>\n<span class=\"article\">\n<span class=\"article_path0\">\u5f8c\u53f0\u8def\u5f91 : <\/span><span class=\"article_path\">  \u300c\u7ba1\u7406\u4e2d\u5fc3\u300d\u2192 \u300c\u7db2\u7ad9\u6b0a\u9650\u300d<\/span><BR><BR>\n\u4f7f\u7528\u8005\u9700\u8981\u6709\u300c\u81ea\u8a02\u61c9\u7528\u7a0b\u5f0f\u300d\u7684\u6b0a\u9650\u624d\u5f97\u4ee5\u9032\u5230\u8a2d\u5b9a\u9801\u67e5\u770b\u3001\u65b0\u589e\u3001\u7de8\u8f2f\u300c\u81ea\u8a02\u61c9\u7528\u7a0b\u5f0f\u300d<BR>\n<a href=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook10.png\"><img decoding=\"async\" class=\"box-shadow1\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/uploads\/\u81ea\u8a02\u64f4\u5145\u670d\u52d9-\u4e32\u63a5-API-Webhook10.png\" style=\"\" alt=\"\u6b0a\u9650\"><\/a>\n\n\n<\/span>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n<div class=\"pvc_clear\"><\/div><p id=\"pvc_stats_20739\" class=\"pvc_stats all  \" data-element-id=\"20739\" style=\"\"><i class=\"pvc-stats-icon small\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p><div class=\"pvc_clear\"><\/div>","protected":false},"excerpt":{"rendered":"<p>\u529f\u80fd\u8aaa\u660e\uff1a \u96fb\u5546\u7cfb\u7d71\u5546\u5f8c\u53f0\u63d0\u4f9b\u5546\u5bb6\u81ea\u8a02\u64f4\u5145\u670d\u52d9\uff0c\u652f\u63f4 API \u8207 Webhook \u4e32\u63a5\u529f\u80fd\uff0c\u8b93\u4f7f\u7528\u8005\u8f15\u9b06\u6574\u5408\u5916 [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_20739\" class=\"pvc_stats all  \" data-element-id=\"20739\" style=\"\"><i class=\"pvc-stats-icon small\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/www.cyberbiz.io\/support\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":41,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ub_ctt_via":"","footnotes":""},"categories":[1,120],"tags":[],"class_list":["post-20739","post","type-post","status-publish","format-standard","hentry","category-qa","category-api"],"featured_image_src":null,"author_info":{"display_name":"Ann","author_link":"https:\/\/www.cyberbiz.io\/support\/?author=41"},"_links":{"self":[{"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=\/wp\/v2\/posts\/20739"}],"collection":[{"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=\/wp\/v2\/users\/41"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=20739"}],"version-history":[{"count":79,"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=\/wp\/v2\/posts\/20739\/revisions"}],"predecessor-version":[{"id":52312,"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=\/wp\/v2\/posts\/20739\/revisions\/52312"}],"wp:attachment":[{"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberbiz.io\/support\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}