授權項目和 tool 的對照

權杖能呼叫的 tool,看它勾的授權項目(也要發權杖的人自己有)。這張表從系統實際的 tool 產生。

每個授權項目的 tool

授權項目名稱tool
customers:read查客戶customer_getcustomer_search
customers:manage新增、修改、刪除客戶customer_createcustomer_update
products:read查商品product_getproduct_search
products:manage新增、修改、刪除商品product_createproduct_deleteproduct_update
quotes:read查報價單quote_getquote_search
quotes:write建立和修改報價單quote_createquote_set_statusquote_updatequote_update_agent_data
quotes:convert報價單轉訂單quote_convert
quotes:send寄報價單quote_send
orders:read查訂單、試算order_getorder_search
orders:create成立訂單order_create
orders:update修改訂單order_updateorder_update_agent_data
orders:cancel取消訂單order_cancel
orders:send寄訂單確認信order_send
bills:read查請款單bill_getbill_search
bills:create開請款單bill_create
bills:update改到期日、重產分享連結bill_regenerate_share_linkbill_update_due_date
bills:cancel取消請款單bill_cancel
bills:send寄請款信bill_sendemail_resend
payments:read查付款和金流交易gateway_transaction_searchpayment_searchunmatched_payment_search
payments:record記錄付款、對款項gateway_transaction_querypayment_recordunmatched_payment_resolve
payments:void作廢付款payment_void
refunds:read查退款refund_search
refunds:create記錄退款refund_create
refunds:void作廢退款refund_void
einvoices:read查發票einvoice_search
einvoices:issue開立發票einvoice_issueeinvoice_sync
einvoices:void作廢發票和折讓einvoice_allowance_voideinvoice_void
einvoices:allowance開折讓einvoice_allowance_issue
emails:read查寄信紀錄email_log_search
reminders:read看催收預定reminder_forecast
reminders:send馬上催收reminder_sendreminder_set_auto
reports:read看儀表板和報表report_get
settings:read看設定provider_setting_listsettings_get
pii:read看買方個資bill_regenerate_share_linkcustomer_updateorder_updatequote_update
audit:read查稽核紀錄audit_log_search

不用授權項目的 tool

approval_getplan_getworkspace_get_context

有條件另要授權項目的

  • bill_search:keyword 像 Email 或電話時,另外要 pii:read。
  • customer_search:keyword 像 Email 或電話時,另外要 pii:read。
  • einvoice_search:keyword 像 Email 或電話時,另外要 pii:read。
  • email_log_search:keyword 像 Email 或電話時,另外要 pii:read。
  • order_create:issue_bill 是 true(沒帶也是)時,另外要 bills:create;帶 customer_id 從客戶帶入資料時,另外要 customers:read。
  • order_search:keyword 像 Email 或電話時,另外要 pii:read。
  • quote_convert:issue_bill 是 true(沒帶也是)時,另外要 bills:create。
  • quote_create:帶 customer_id 從客戶帶入資料時,另外要 customers:read。
  • quote_search:keyword 像 Email 或電話時,另外要 pii:read。
  • refund_create:issue_allowance 是 true 時,另外要 einvoices:allowance。