Set Net Suite Customer
Description
寫入客戶資料。
Resource
POST /v1/net_suite/customer
Authorization
採用 OAuth 2.0 Bearer Token,詳細使用流程請參考 Auth Login。
Request Body Parameters
| Name | Type | Description |
|---|---|---|
| id | string | 任務編號,不同任務需有不同編號 |
| customers | Customer[] | 客戶列表 |
Request Body Parameters - Customer
| Name | Type | Description |
|---|---|---|
| CUSTOMER_ID | string | 客戶ID |
| NAME | string | 客戶名稱 |
| TYPE | string (enum) |
類型 ALLOWED VALUES:
|
| COMPANY_NAME | string | 公司名稱 |
| STATUS | string | 狀態 |
| SALES_REP | string | 銷售代表:八方同仁姓名 |
| PARTNER | string | 合作夥伴 |
| CATEGORY | string | 種類:會員種類,例:一般或vip |
| DEFAULT_ORDER_PRIORITY | string | 預設訂單優先順序 |
| COMMENTS | string | 附註 |
| string | 電子郵件 | |
| PHONE | string | 電話 |
| ALT_PHONE | string | 替代電話 |
| FAX | string | 傳真 |
| PRIMARY_SUBSIDARY | string (enum) |
主要公司別 |
| INTERNALID | string | Netsuite內部ID |
| Inactive | string | 非作用中 ALLOWED VALUES:
|
| SUBSIDIARY | string | 主要公司別 |
| SUBSIDIARY_ID | string | 子公司編號 |
| SHOP_ID | string | 門市代號 |
| OPR_STATUS | string (enum) |
狀態ALLOWED VALUES:
|
Request Body Example
{
"id": "230721094511",
"customers": [
{
"CUSTOMER_ID": "US030C23060001",
"NAME": "Bafang",
"TYPE": "COMPANY",
"COMPANY_NAME": "Bafang Dumpling",
"STATUS": "CUSTOMER-Closed Won",
"SALES_REP": "Tony",
"PARTNER": "",
"CATEGORY": "General membership",
"DEFAULT_ORDER_PRIORITY": "",
"COMMENTS": "",
"EMAIL": "[email protected]",
"PHONE": "02-8809-8898",
"ALT_PHONE": "02-2623-4588",
"FAX": "02-8809-8858",
"PRIMARY_SUBSIDARY": "US03 BFYJ Restaurant",
"INTERNALID": "102",
"Inactive": "N",
"SUBSIDIARY": "US03 BFYJ Restaurant",
"SUBSIDIARY_ID": "5",
"SHOP_ID": "000030",
"OPR_STATUS": "N"
}
]
}
Response
Status-Code: 204 No Content