You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
721 B
38 lines
721 B
# 宿主客户同步 API
|
|
|
|
`POST /api/host/customers/sync`
|
|
|
|
鉴权:`Authorization: Bearer <Service API Key>` + `X-Customer-Id: CUST_004`
|
|
|
|
```json
|
|
{
|
|
"customers": [
|
|
{
|
|
"business_customer_id": "guid",
|
|
"name": "简称或名称",
|
|
"external_code": "客户代码",
|
|
"remark": null,
|
|
"markup_percent": 5
|
|
}
|
|
],
|
|
"users": [
|
|
{
|
|
"business_customer_id": "guid",
|
|
"external_user_id": "userGuid",
|
|
"account": "login_account",
|
|
"display_name": "张三",
|
|
"status": "active"
|
|
}
|
|
]
|
|
}
|
|
```
|
|
|
|
本地导入:
|
|
|
|
```bash
|
|
npm run import:ccnew-customers:users
|
|
npm run verify:ccnew-sync -- --account <账号>
|
|
```
|
|
|
|
详见:`X:/work/ccnew/new/docs/私卡询价联调验收.md`
|