参数填写指南
请求参数(header):
参数填写指南| 参数名 | 必填 | 描述 | 默认值 |
|---|---|---|---|
| Content-Type | 是 | 请求体数据类型 | application/json |
| usercode | 是 | 用户 | |
| password | 是 | 密码 | |
| trantype | 是 | 翻译类型,按编码为code,不需要翻译为pk | code |
| system | 是 | 系统参数 |
请求参数(body):
| 参数名 | 类型 | 是否数组 | 必填 | 描述 | 默认值 |
|---|---|---|---|---|---|
| findpriceparams | 是 | 是 | 询价条件 | ||
| businesstype | string | 否 | 否 | 业务流程 | |
| customerclass | string | 否 | 否 | 客户分类 | |
| department | string | 否 | 否 | 部门 | |
| free1 | string | 否 | 否 | 存货自由项1 | |
| free2 | string | 否 | 否 | 存货自由项2 | |
| free3 | string | 否 | 否 | 存货自由项3 | |
| free4 | string | 否 | 否 | 存货自由项4 | |
| free5 | string | 否 | 否 | 存货自由项5 | |
| inventoryclass | string | 否 | 否 | 存货分类 | |
| number | string | 否 | 是 | 数量 | |
| pk_corp | string | 否 | 是 | 公司 | |
| pk_cumandoc | string | 否 | 否 | 客户 | |
| pk_currency | string | 否 | 是 | 币种 | CNY |
| pk_invmandoc | string | 否 | 是 | 存货 | |
| pk_measdoc | string | 否 | 是 | 计量单位 | |
| pricepolicy | string | 否 | 否 | 价格策略 | |
| pricetariff | string | 否 | 否 | 价目表 | |
| pricetype | string | 否 | 否 | 价格项 | |
| querypricedate | string | 否 | 是 | 询价日期 | |
| receiptarea | string | 否 | 否 | 收货地区 | |
| saleorg | string | 否 | 是 | 销售组织 |
返回类型参数:
| 参数名 | 类型 | 是否数组 | 必填 | 描述 | 默认值 |
|---|---|---|---|---|---|
| custclassname | 客户分类名称 | ||||
| pk_cubasdoc | 客户基本档案 | ||||
| pricetypename | 价格项名称 | ||||
| pk_invbasdoc | 存货基本档案 | ||||
| pk_pricetype | 价格项 | ||||
| custcode | 客户编码 | ||||
| customerclass | 客户分类 | ||||
| baseprice | 基础价格 | ||||
| errmessage | 询价错误描述 | ||||
| pk_pricepolicy | 询价策略 | ||||
| findprocessstring | 询价过程字符串 | ||||
| breturnmoney | 价格项是否返利 | ||||
| invname | 存货名称 | ||||
| invcode | 存货编码 | ||||
| priceprotect | 价格项是否价保 | ||||
| ierrflag | 错误标志 | ||||
| pk_pricetariff | 价目表 | ||||
| custname | 客户名称 |
代码示例:
请求参数示例:
复制代码
[{
"corporation": "01",
"inventoryclass": "",
"saleorg": "01",
"inventory": "180@@00005",
"businesstype": "",
"pricepolicy": "001",
"querypricedate": "2018-12-11",
"number": "1",
"pricetariff": "",
"unit": "01",
"free2": "",
"customerclass": "",
"free3": "",
"free1": "",
"pricetype": "",
"receiptarea": "",
"currency": "CNY",
"free4": "",
"free5": "",
"department": "",
"customer": "036"
},{
"corporation": "02",
"inventoryclass": "",
"saleorg": "01",
"inventory": "180@@10005",
"businesstype": "",
"pricepolicy": "001",
"querypricedate": "2018-12-11",
"number": "1",
"pricetariff": "",
"unit": "01",
"free2": "",
"customerclass": "",
"free3": "",
"free1": "",
"pricetype": "",
"receiptarea": "",
"currency": "CNY",
"free4": "",
"free5": "",
"department": "",
"customer": "036"
}]正确返回示例:
复制代码
{"status": "success",
"data": "[{\"pk_cubasdoc\":\"0001F8100000000007B4\",\"pk_invbasdoc\":\"0001ZZ10000000002UN4\",\"pk_pricetype\":\"1008ZZ100000000001K8\",\"pk_pricetariff\":\"1008ZZ100000000001JZ\",\"pk_pricepolice\":\"1008ZZ10000000001ISC\",\"buseBaseStrict\":\"false\",\"askSpecial\":true,\"basePrice\":12,\"findProcessString\":\"询基价:12.00000000-基准折扣:1.00000000\",\"priceProtect\":false,\"ierrFlag\":\"0\",\"relateNum\":true,\"fromSpecial\":false}]"
}错误返回示例:
复制代码
{"status": "falied","errorcode": "-32000","errormsg": "客户不能为空"}