> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.orderupb2b.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.orderupb2b.com/_mcp/server.

# 2026 年 11 月 9 日

## 客戶可以用業務代碼指定負責業務

`POST /v1/companies`、`PUT /v1/companies/{id}` 與 `POST /v1/companies/batch` 新增選填欄位 `internalUserOuterSysCode`：用負責業務（內部使用者）的 `outerSysCode` 指定人選，不必先查出他的序號。

* 同時帶 `internalUserId` 與 `internalUserOuterSysCode` 時以 `internalUserId` 為準，代碼完全不會被比對。
* 代碼與貴租戶底下未刪除的內部使用者精準比對，前後空白會被忽略、大小寫敏感；只有空白視同省略。
* 代碼對不到任何人回傳 `400 internal_user_not_found`，對到兩位以上回傳 `400 internal_user_code_ambiguous`。兩種情況都**不會**退回預設業務，也不會寫入任何欄位；批次只有該筆失敗。
* 兩個欄位都省略時行為不變：新增套用預設業務，更新保留現有值。

欄位規則見「API 規格」的「客戶」，新增的錯誤字串見「錯誤碼」。