列出 Portfolios
GET
/v1/business-portfolios列出目前 API Key 可存取的 Business Portfolios。
驗證
請求標頭攜帶 Authorization: Bearer <API_KEY>。API Key 的可存取資源由目前授權範圍決定。
請求
Base URL:https://api.bluehola.com
參數
| 名稱 | 位置 | 必填 | 類型/限制 | 說明 |
|---|---|---|---|---|
customerEntityId | query | 客戶 Key 必填 | string | 使用 GET /whoami 回傳的自身 cust_...;其他 API Key 可選。 |
回應
| 狀態碼 | 說明 |
|---|---|
200 | OK |
4xx | 用戶端錯誤 |
200 回應 Schema
{
"type": "array",
"items": {
"$ref": "#/components/schemas/BusinessPortfolio"
}
}
通用錯誤信封及處理建議見錯誤代碼。
補充說明
只回傳目前 API Key 授權範圍內的 Business Portfolio。呼叫端不能透過查詢參數擴大可見範圍;無權存取或不存在的資源不會透過本介面洩露。
客戶 Key 必須傳 customerEntityId,且須等於 GET /whoami 回傳的值;省略或指定其他客戶回傳 403。首次導入前回傳 HTTP 200 與 [] 屬於正常情況,請僅傳 name 建立 Portfolio,再依客戶導入完成後續步驟。