接口描述
提供给cw的询价接口inquiry
| HTTP Verb | URL |
|---|---|
| POST | /api/supplier-service/v1/aggregator/supplierSaveInfo |
...
| 代码块 |
|---|
POST /api/supplier-service/v1/b2b/inquiry HTTP/1.1 Content-Type: application/json Accept: application/json Host: http://cfs-qa.etowertech.com/ X-WallTech-Date: Thu, 06 Aug 2020 06:44:25 GMT Authorization: WallTech testLvs2jdug2qIoRsJyuxs:F714XG5EBjslUUdx5xJrTCVb9Xs= |
请求样例
| 代码块 |
|---|
{
"name": "嘉兴1",
"nameEn": "XD-JXSY1",
"supplierType": 100,
"clearingType": 3,
"contactName": "王1",
"phone": "111",
"contactInformation": "王11",
"country": "CN",
"state": "aa1",
"city": "bb1",
"district": "cc1",
"postCode": "aaa1",
"addressLine1": "dd1",
"business": 63142,
"financial": 63134,
"remark": "beizhu1",
"attachment": [],
"invoiceInfoList": [
{
"account": "账号1",
"accountOpeningBank": "开户行1",
"address": "地址1",
"billingType": 1,
"currency": "USD",
"invoice": "开票信息抬头1",
"phone": "电话1",
"status": 1,
"supplierId": "2508181559231000007",
"swiftCode": "swiftcode1",
"taxpayerNo": "纳税人识别号1",
"type": 1,
"useDefault": 1
}
]
} |
请求字段描述
字段名 | 是否必填项 | 类型 | 描述 |
| name | M | String | 中文名 |
| nameEn | M | String | 英文名 |
| supplierType | M | Integer | 类型:⏺ 10-订舱 20-海外代理 30-船运公司 40-航空公司 45-快递公司 50-报关 55-保险 60-仓储 65-包装和标记 67-结算代理 70-车辆运输 75-铁路公司 80-其他 85-物流集成商 90-货代 95-船代 100-打单代 |
| clearingType | M | Integer | 结算方式 0-月结 1-周结 2-日结 3-票结 |
| contactName | O | String | 联系人 |
| phone | O | String | 电话 |
| contactInformation | O | String | 其他联系方式 |
| contactInformation | O | String | 其他联系方式 |
| country | O | String | 国家 |
| state | O | String | 省/州 |
| city | O | String | 城市 |
| district | O | String | 区 |
| addressLine1 | O | String | 地址 |
| postCode | O | String | 邮编 |
| business | O | Integer | 业务对接人userId (17.获取用户列表) 返回的userId |
| financial | O | Integer | 财务对接人userId((17.获取用户列表) 返回的userId |
| remark | O | String | 备注 |
| invoiceInfoList | O | List | 开票信息 |
| invoiceInfoList[0].invoice | C | String | 开票抬头 |
| invoiceInfoList[0].billingType | C | Integer | 账单类型:1-国内 2-国外 |
| invoiceInfoList[0].currency | C | String | 币种 |
| invoiceInfoList[0].taxpayerNo | O | String | 纳税人识别号 |
| invoiceInfoList[0].phone | O | String | 电话 |
| invoiceInfoList[0].accountOpeningBank | O | String | 开户行 |
| invoiceInfoList[0].account | O | String | 账号 |
| invoiceInfoList[0].swiftCode | O | String | swiftCode |
| invoiceInfoList[0].address | O | String | 地址 |
| invoiceInfoList[0].status | C | Integer | 1-启用 0-禁用 |
| invoiceInfoList[0].useDefault | C | Integer | 1-默认 0-非默认 |
返回内容如下
| 代码块 |
|---|
{
"code": "0",
"data": {
"name": "嘉兴1",
"nameEn": "XD-JXSY1",
"supplierType": 100,
"clearingType": 3,
"contactName": "王1",
"phone": "111",
"contactInformation": "王11",
"country": "CN",
"state": "aa1",
"city": "bb1",
"district": "cc1",
"postCode": "aaa1",
"addressLine1": "dd1",
"business": 63142,
"financial": 63134,
"remark": "beizhu1",
"id": "2508181559231000007",
"attachment": [],
"invoiceInfoList": [
{
"account": "账号1",
"accountOpeningBank": "开户行1",
"address": "地址1",
"billingType": 1,
"currency": "USD",
"id": "2512241832381000001",
"invoice": "开票信息抬头1",
"phone": "电话1",
"status": 1,
"supplierId": "2508181559231000007",
"swiftCode": "swiftcode1",
"taxpayerNo": "纳税人识别号1",
"type": 1,
"useDefault": 1
}
]
},
"errors": "",
"message": "",
"messageId": "",
"success": true,
"warnList": ""
}
|
返回字段描述:
| 字段名 | 类型 | 描述 |
|---|---|---|
| data.name | String | 中文名 |
| data.id | Long | id |
| data.nameEn | String | 英文名 |
| data.supplierType | Integer | 类型 (参考请求类型的supplierTypes) |
| data.supplierTypeMsg | String | 类型中文 |
| data.clearingType | Integer | 结算方式(参考请求类型的clearingTypes) |
| data.contactName | String | 联系人 |
| data.phone | String | 电话 |
| data.contactInformation | String | 其他联系方式 |
| data.country | String | 国家 |
| data.state | String | 省/州 |
| data.city | String | 城市 |
| data.district | String | 区 |
| data.addressLine1 | String | 地址 |
| data.postCode | String | 邮编 |
| data.businessEmail | String | 业务对接人名称 |
| data.financialEmail | String | 财务对接人名称 |
| data.remark | String | 备注 |
| data.invoiceInfoList | List | 开票信息 |
| data.invoiceInfoList[0].id | Long | id |
| data.invoiceInfoList[0].invoice | String | 开票抬头 |
| data.invoiceInfoList[0].billingType | Integer | 账单类型:1-国内 2-国外 |
| data.invoiceInfoList[0].currency | String | 币种 |
| data.invoiceInfoList[0].taxpayerNo | String | 纳税人识别号 |
| data.invoiceInfoList[0].phone | String | 电话 |
| data.invoiceInfoList[0].accountOpeningBank | String | 开户行 |
| data.invoiceInfoList[0].account | String | 账号 |
| data.invoiceInfoList[0].swiftCode | String | swiftCode |
| data.invoiceInfoList[0].address | String | 地址 |
| data.invoiceInfoList[0].status | Integer | 1-启用 0-禁用 |
| data.invoiceInfoList[0].useDefault | Integer | 1-默认 0-非默认 |
...