Tony Fan
URI-G
API規格
買主帳號註冊(寫入DB並透過SSO API 新增至SSO)
${TT-API網址}/domains/front/buyer-register
${TT-API網址}/domains/front/buyer-register
買主註冊欄位
欄位名稱 | 欄位說明 | 型態 | 是否必要欄位 |
---|---|---|---|
languageId | 語系代碼 | number | Y |
帳號Email | String | Y | |
password | 密碼 | String | Y |
titleCode | 代碼 | number | Y |
name | 姓名 | String | Y |
individualbuyer | 是否為買主個人 | number | Y |
companyName | 姓名 | String | Y |
websiteNotAvaliable | 是否有公司網址 | number | Y |
companyWebsite | 公司網址 | String | Y |
location | 國家代碼 | number | Y |
officeStateCode | 一級行政區代碼 | number | N |
officeOtherState | 一級行政區其他名稱 | String | N |
officeAddress | 地址 | String | N |
telCountry | 電話國際區號 | String(數字) | N |
tel | 電話號碼 | String(數字) | N |
telExt | 電話分機號碼 | String(數字) | N |
mobileCountry | 行動電話國際區號 | String(數字) | N |
mobile | 行動電話號碼 | String(數字) | N |
acceptAgreement | 同意服務條款 | number | Y |
newShowInfo | 公開Email給供應商 | number | Y |
newsLetter | 接受相關的產品和活動信息 | number | Y |
registerIp | 註冊IP | String | N |
individualbuyer
=1,這裡會強制改成Individual buyer
來儲存websiteNotAvaliable
=1,這裏會強制改成 Not Available
來儲存telcode
,查出 location對應的區碼。X-FORWARDED-FOR
或 CLIENT-IP
作為註冊來源IP。追溯到註冊的來源IP就會只到Server Side。標準I/O結果輸出
欄位名稱 | 欄位說明 | 型態 | 是否可為空值 |
---|---|---|---|
code | 代碼 | number | N |
errorMsg | 錯誤訊息 | String | Y |
參考 URI-G-02 API邏輯 (需有權限才能瀏覽)