# 送出 bizInquiry API > [name=JasonWu] ###### tags: `CP頁 API` ## 內容 ### 相關程式 ### Input JSON Path #### 規格 - path : ${TT-API網址}/product/contact/bizInquiryAdd/ - method : POST #### Input Column | Type | Require | Desc ---------------------|----------|---------|--------- ttLoginType | int | Y | 是否有登入,(0)否/(1)是 businessTypeMetaCode | String | Y | 類別,未來 api 若要共用,可以透過這個參數決定來源 bizCompanyId | int | Y | 廠商 id languageId | int | Y | 語系 id productId | int | Y | 型錄 id quantity | int | Y | 畫面中輸入的數量 quantityUnit | int | Y | 畫面中下拉選單的單位 id purchaseAmount | String | N | 畫面中輸入的金額 productDescription | String | Y | email 內容 userEmail | String | Y | 寄件人 email userTitleCode | int | N | 寄件人稱謂 id userName | String | N | 寄件人名稱 companyName | String | N | 寄件人公司名稱 officeNationCode | int | N | 寄件人國碼 officeStateCode | int | N | 寄件人城市代碼 officeOtherState | String | N | 寄件人區碼 officeAddress | String | N | 寄件人地址 companyWebsite | String | N | 寄件人公司首頁網址 officeTelCountry | String | N | 寄件人電話國碼 officeTel | String | N | 寄件人電話 officeTelExt | String | N | 寄件人分機 userMobileCountry | String | N | 寄件人手機國碼 userMobile | String | N | 寄件人手機號碼 keywords | String | N | tag 所輸入的 keyword,多個 tag 透過 "," 連結 bizAttachs | String | N | 附件 aid,多個檔案透過 "," 連結 #### 範例 ```=json https://tt-api.taiwantrade.com/product/contact/bizInquiryAdd ``` #### 邏輯 - 分析輸入的內容,將郵件資料寫入 db - 回傳結果 ### Output JSON Path #### 規格 ```=json { "code" : <code>, "errorMsg" : <errorMsg> } ``` #### 輸出參數說明 回傳寄送結果 |欄位名稱 | 欄位說明 | 型態 | 是否可為空值 | |---------------------|---------------|-----------|--------------| |code | 代碼 | int | 0表示ok | |errorMsg | 錯誤訊息 | String | | #### SQL