Appearance
新增供应商
Request
Url
text
[POST] : https://eapi.paiago.com/ZKGJ/Intercourse/Supplier/Add/?access_token={access_token}Rule
- 最多支持添加
100条客户数据
请求参数:
| 参数 | 类型 | 必填 | 描述 | 示例 |
|---|---|---|---|---|
| supplier_type | string | 是 | 供应商类型 | |
| supplier_definition | string | 是 | 供应商名称 | |
| supplier_number | string | 是 | 供应商编号 | |
| identification_code | string | 是 | 纳税人识别号 | |
| telephone | string | 否 | 联系方式 | |
| contacts | string | 否 | 联系人 | |
| remarks | string | 否 | 备注 | |
| leader | string | 否 | 负责人id集合 | |
| add_user | string | 否 | 创建人id | |
| child_list | array(object) | 否 | 收款账户信息 | |
| account_code | string | 是 | 账户 | |
| account_definaccount | string | 是 | 账户名称、户名 | |
| account_mechanism | string | 否 | 开户银行名称 |
请求示例:
json
[
{
"supplier_type":"PSxeNx0ag,PSSQQxCVV,PSxNzyas0,XJJQN0sjq,PSxNJzakC",
"supplier_definition":"WiiiJmSy02",
"supplier_number":"GYS198322",
"identification_code":"纳税人识别号",
"telephone":"13888888888",
"contacts":"联系人",
"remarks":"备注",
"leader":"lNzq7sqjC,lNmq7s0Va",
"add_user":"WiiiJmSy0",
"child_list":[
{
"account_code":"654321",
"account_definaccount":"账户名称1",
"account_mechanism":"开户机构1"
}
]
}
]Response
响应参数
| 参数 | 描述 | 类型 | 示例 |
|---|---|---|---|
| errcode | 错误码 | int | |
| errmsg | 错误信息 | string |
json
{
"errcode":21003,
"errmsg":"第1条数据录入失败:系统已有该供应商,请勿重复添加!",
"request_id":null,
"env":"zkgj-cs"
}