API中心

  1. 销售管理
  2. 销售价格
返回

销售询价

接口所在U8C版本:U8 cloud2.7以及更高版本
详细描述:用于销售询价
API视频讲解API详情补丁列表常见问题参考
接口地址
请求方式
请求参数header
请求参数body
返回类型参数
代码示例
请求参数示例
正确返回示例
错误返回示例
接口地址:http://ip:port/u8cloud/api/soprice/findprice

参数填写指南

请求方式:POST

请求参数(header):

参数填写指南
参数名必填描述默认值
Content-Type请求体数据类型application/json
usercode用户
password密码
trantype翻译类型,按编码为code,不需要翻译为pkcode
system系统参数

请求参数(body):

参数名类型是否数组必填描述默认值
findpriceparams询价条件
businesstypestring业务流程
customerclassstring客户分类
departmentstring部门
free1string存货自由项1
free2string存货自由项2
free3string存货自由项3
free4string存货自由项4
free5string存货自由项5
inventoryclassstring存货分类
numberstring数量
pk_corpstring公司
pk_cumandocstring客户
pk_currencystring币种CNY
pk_invmandocstring存货
pk_measdocstring计量单位
pricepolicystring价格策略
pricetariffstring价目表
pricetypestring价格项
querypricedatestring询价日期
receiptareastring收货地区
saleorgstring销售组织

返回类型参数:

参数名类型是否数组必填描述默认值
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": "客户不能为空"}