🏠地址
通用資料
此區為聯絡地址欄位對應資料。
類別 type
名稱 | 值 |
住家 | 0 |
通訊 | 1 |
帳單 | 2 |
郵寄 | 3 |
戶籍 | 4 |
其他 | 5 |
搜尋聯絡地址
Form Data
下表為可使用的過濾條件
PARAMETER | REQUIRED | DEFAULT | TYPE | DESCRIPTION |
contact_id | false | NULL | Number | 客戶的 id |
type | false | NULL | Number | 0:住家,1:通訊,2:帳單,3:郵寄,4:戶籍,5:其他 |
address | false | NULL | String | 地址 |
country_id | false | NULL | Number | 國家的id |
state_id | false | NULL | Number | 城市的id |
city_id | false | NULL | Number | 區域的id |
description | false | NULL | String | 地址描述 |
Response
PROPERTY | TYPE | DESCRIPTION |
data | Array of objects | |
meta | Object | Pagination meta |
取得指定客戶聯絡地址
取得指定聯絡地址
URL Parameters
PARAMETER | REQUIRED | DEFAULT | TYPE | DESCRIPTION |
address | True | Null | Number | 地址 的 id |
Response
請參考地址回應格式
PROPERTY | TYPE | DESCRIPTION |
data | Object |
新增指定客戶聯絡地址
Form Data
PARAMETER | REQUIRED | DEFAULT | TYPE | DESCRIPTION |
contact_id | true | NULL | Number | 客戶的 id |
type | true | NULL | Number | 0:住家,1:郵寄,2:帳單,3:快遞,4:現居,5:其他 |
address | true | NULL | String | 地址 |
country_id | false | NULL | Number | 國家的id |
state_id | false | NULL | Number | 城市的id |
city_id | false | NULL | Number | 區域的id |
description | false | NULL | String | 地址描述 |
Response
修改聯絡地址
URL Parameters
PARAMETER | REQUIRED | DEFAULT | TYPE | DESCRIPTION |
address | true | NULL | Number | 地址的id |
Form Data
PARAMETER | REQUIRED | DEFAULT | TYPE | DESCRIPTION |
contact_id | false | NULL | Number | 客戶的 id |
type | false | NULL | Number | 0:住家,1:郵寄,2:帳單,3:快遞,4:現居,5:其他 |
address | false | NULL | String | 地址 |
country_id | false | NULL | Number | 國家的id |
state_id | false | NULL | Number | 城市的id |
city_id | false | NULL | Number | 區域的id |
description | false | NULL | String | 地址描述 |
Response
請參考地址回應格式
刪除聯絡地址
Http status 為 204
URL Parameters
PARAMETER | REQUIRED | DEFAULT | TYPE | DESCRIPTION |
address | true | NULL | Number | 地址的id |
回傳 json 格式
Last updated