云苍穹-配置接口
原创约 1016 字大约 3 分钟...
云苍穹-配置接口
注意
本博文仅供学术研究和交流参考,严禁将其用于商业用途。如因违规使用产生的任何法律问题,使用者需自行负责。
苍穹自定义服务(又称接口或自定义API)实战
配置接口

/app/kdgz_op_srm_demo/opSaveData


opmq/adminadmin

测试接口
工具:postman

"appId": "opmq", "appSecuret": "adminadmin",

"tenantid": "cosmic-simple", "accountId": "679008189806542848",

Url地址
参数
{
"appId": "opmq",
"appSecuret": "adminadmin",
"tenantid": "cosmic-simple",
"accountId": "679008189806542848",
"language": "zh_CN"
}
返回
{
"data": {
"app_token": "e82e435f-64a2-4267-86cb-c510735ac36a",
"success": true,
"error_desc": "",
"expire_time": 1586940933265,
"error_code": "0"
},
"state": "success"
}

url地址
参数
{
"user": "15208304216",
"apptoken": "e82e435f-64a2-4267-86cb-c510735ac36a",//换成上面得到的值
"tenantid": "cosmic-simple",
"accountId": "679008189806542848",
"usertype": "Mobile"
}
返回
{
"data": {
"access_token": "D0N4aUBpbOvNpumi2M4r4zMCglJttF45R2e9WfY7tlBBk4YOq1YJXaUjL1I8Zs6sxabYdczNfbN7HmvTNIKfwhRvZxmfMapgkRi0NwYTVM8kCh4dESDEyr1UOR5KXtey",
"success": true,
"error_desc": "",
"expire_time": 1586944778375,
"error_code": "0"
},
"state": "success"
}
测试接口
http://localhost:8080/ierp/kapi/app/kdgz_op_srm_demo/opSaveData



{
"op_log": "kdgz_interlog",
"op_config": "kdgz_interconfig",
"op_columnConfig": "K3.bd_materialgroup",
"FSOURCEID":"1",
"fnumber":"2",
"fname":"3",
"Fdescription":"4",
"fparentid":"5"
}
{
"success": true,
"data": "物料分类----更新成功",
"errorCode": "success"
}
应收单传参
{
"op_log": "kdgz_interlog",
"op_config": "kdgz_interconfig",
"op_columnConfig": "K3.kdgz_ysd001",
"FSOURCEID":"A005",
"foperatetype":"A",
"billtypeid":"0",
"billno":"A004",
"bizdate":"2020-04-16 00:00:00",
"duedate":"2021-04-16 00:00:00",
"saleorgid":"999",
"org":"999",
"recorgid":"999",
"billstatus":"A",
"customer":"Cus-000001",
"currencyid":"CNY",
"pricetaxtotal2":"99999",
"paycondid":"001",
"saledeptid":"",
"salesmanid":"",
"setaccounttype":"0",
"ischeckaccounts":"0",
"bizpartner":"001",
"checkbillno":"001",
"remark":"111",
"ispriceexcludetax":"0",
"istaxprice":"",
"creator":"",
"auditor":"",
"entries":[{
"FSOURCEENTRYID":"001",
"materialid":"Item-00000001",
"fMaterialname":"软件",
"Fmaterialmodel":"1",
"auxpropid":"1",
"priceunitid":"1",
"price":"1",
"expenseitemid":"1",
"priceqty":"1",
"pricetax":"1",
"taxrate":"1",
"discountmode":"1",
"discountrate":"1",
"discountamount":"1",
"notaxamount":"1",
"tax":"1",
"pricetaxtotal":"1",
"stockunitid":"1",
"stockqty":"1",
"salunitid":"1",
"salqty":"1",
"salbaseqty":"1",
"basicunit":"1",
"quanofpricba":"1",
"unitconvertrate":"1",
"costamount":"1",
"orderentryseq":"1",
"lotid":"1",
"settledamt":"1",
"ispresent":"1"
}]
}
入退退货单
{
"op_log": "kdgz_interlog",
"op_config": "kdgz_interconfig",
"op_columnConfig": "K3.pur_return",
"foperatetype":"A",
"FSOURCEID":"A005",
"billno":"A005",
"billdate":"2020-04-16 00:00:00",
"org":"999",
"person":"YWY000002",
"purorg":"999",
"supplier":"JD",
"contacter":"",//协同业务员无法添加数据
"remark":"111",
"sumamount":"9999",
"sumtax":"999",
"sumtaxamount":"999",
"billstatus":"C",
"cfmstatus":"A",
"ischeck":"0",
"chkbillno":"",
"rettype":"1",
"replenishtype":"1",
"paycond":"FKTJ03",
"settletype":"JSFS01",
"curr":"CNY",
"taxtype":"1",
"loccurr":"CNY",
"sumqty":"999",
"exchtype":"1.2",
"biztype":"1",
"supaddr":"2222",
"delisup":"JD",
"invoicesup":"JD",
"payeesup":"JD",
"reqorg":"999",
"settleorg":"999",
"payorg":"999",
"bizpartner":"JD",
"entries":[{
"FSOURCEENTRYID":"001",
"pobillno":"001",
"material":"002",
"materialdesc":"111",
"materialap":"111",
"unit":"111",
"qty":"111",
"replenishqty":"111",
"materialnew":"002",
"retreason":"11",
"price":"11",
"taxprice":"11",
"dctrate":"11",
"dctamount":"11",
"amount":"11",
"taxrate":"11",
"tax":"11",
"taxamount":"11",
"ispresent":"1",
"lot":"",//批号无法添加数据
"suplot":"",
"proddate":"2020-04-16 00:00:00",
"duedate":"2020-04-16 00:00:00",
"warehouse":"",
"entrysettleorg":"999",
"note":"11",
"purtype":"PUR01_SYS",
"entrystatu":"A",
"entryreqorg":"999",
"entrypurorg":"999",
"invorg":"999",
"entrypayorg":"999",
"settlesup":"000",
"basicunit":"11",
"basicqty":"11",
"asstunit":"11",
"asstqty":"11",
"pobillid":"11",
"poentryid":"11"
}]
}
- 成功参数
{
"op_log": "kdgz_interlog",
"op_config": "kdgz_interconfig",
"op_columnConfig": "K3.pur_return",
"foperatetype":"A",
"FSOURCEID":"A006",
"billno":"A005",
"billdate":"2020-04-16 00:00:00",
"org":"999",
"person":"",
"purorg":"999",
"supplier":"JD",
"contacter":"",
"remark":"111",
"sumamount":"9999",
"sumtax":"999",
"sumtaxamount":"999",
"billstatus":"C",
"cfmstatus":"A",
"ischeck":"0",
"chkbillno":"",
"rettype":"1",
"replenishtype":"1",
"paycond":"",
"settletype":"JSFS01",
"curr":"CNY",
"taxtype":"1",
"loccurr":"CNY",
"sumqty":"999",
"exchtype":"",
"biztype":"1",
"supaddr":"2222",
"delisup":"JD",
"invoicesup":"JD",
"payeesup":"JD",
"reqorg":"999",
"settleorg":"999",
"payorg":"999",
"bizpartner":"JD",
"entries":[{
"FSOURCEENTRYID":"001",
"pobillno":"001",
"material":"",
"materialdesc":"111",
"materialap":"111",
"unit":"111",
"qty":"111",
"replenishqty":"111",
"materialnew":"",
"retreason":"11",
"price":"11",
"taxprice":"11",
"dctrate":"11",
"dctamount":"11",
"amount":"11",
"taxrate":"11",
"tax":"11",
"taxamount":"11",
"ispresent":"1",
"lot":"",
"suplot":"",
"proddate":"2020-04-16 00:00:00",
"duedate":"2020-04-16 00:00:00",
"warehouse":"",
"entrysettleorg":"999",
"note":"11",
"purtype":"",
"entrystatu":"A",
"entryreqorg":"999",
"entrypurorg":"999",
"invorg":"999",
"entrypayorg":"999",
"settlesup":"000",
"basicunit":"11",
"basicqty":"11",
"asstunit":"11",
"asstqty":"11",
"pobillid":"11",
"poentryid":"11"
}]
}
物料分类
{
"op_log": "kdgz_interlog",
"op_config": "kdgz_interconfig",
"op_columnConfig": "K3.bd_materialgroup",
"FSOURCEID":"A005",
"fnumber":"005",
"fname":"name001",
"Fdescription":"001",
"fparentid":"test001",
"fenable":"1",
"fstatus":"C",
"fstandardid":"730148448254487552",
"bizpartner":"JD"
}
收货通知(收料通知)
需关闭页面插件
{
"op_log": "kdgz_interlog",
"op_config": "kdgz_interconfig",
"op_columnConfig": "K3.PurReceiveBillMessage",
"Foperatetype": "A",
"xksourceid": "A006",
"billno": "A007",
"billdate": "2020-04-20 00:00:00",
"delidate": "2020-04-20 00:00:00",
"deliaddress":"",
"fsupplierid": "486095512240421888",
"contacter": "",
"org": "999",
"frcvorgid":"843381079359361024",
"person": "",
"Remark": " ",
"sumamount": "",
"sumtax": "",
"sumtaxamount": "",
"billstatus": "C",
"supplierdeliverycode":"",
"paycond":"",
"settletype":"",
"fcurrid":"1",
"taxtype":"",
"loccurr":"1",
"fexchtypeid":"",
"exchrate":"1",
"biztype":"1",
"sumqty":"345",
"delisup":"",
"invoicesup":"",
"payeesup":"",
"reqorg":"",
"settleorg":"",
"payorg":"",
"creator":"",
"createtime":"",
"modifier":"",
"modifytime":"",
"auditor":"",
"auditdate":"",
"cfm":"",
"cfmdate":"",
"fcfmstatus":"A",
"fbillstatus":"A",
"bizpartner":"",
"origin":"",
"entries": [{
"FSOURCEENTRYID":"001",
"pobillno":"CGDD100.0219081400021",
"material":"G10314947",
"materialdesc":"",
"unit":"",
"supmaterialid":"",
"supmaterialname":"",
"supmaterialmodel":"",
"materialap":"",
"orderqty":"",
"remainqty":"",
"qty":"",
"entrydelidate":"",
"deliaddr":"",
"warehouse":"",
"lot":"",
"suplot":"",
"proddate":"",
"duedate":"",
"price":"",
"taxprice":"",
"dctrate":"",
"dctamount":"",
"amount":"",
"taxrate":"",
"tax":"",
"taxamount":"",
"ispresent":"",
"note":"",
"entryreqorg":"",
"entrypurorg":"",
"entryrcvorg":"",
"entrysettleorg":"",
"entrypayorg":"",
"entrystatus":"",
"goods":"002",
"sumoutstockqty":"",
"sumreceiptqty":"",
"locamount":"",
"loctax":"",
"loctaxamount":"",
"actprice":"",
"acttaxprice":"",
"project":"",
"trace":"",
"basicunit":"",
"basicqty":"",
"asstunit":"",
"asstqty":"",
"pobillid":"",
"poentryid":"",
"pcbillno":"",
"pcbillid":"",
"pcentryid":"",
"srcbilltype":"",
"srcbillid":"",
"srcentryid":""
}]
}























分割线
相关信息
以上就是我关于 云苍穹-配置接口 知识点的整理与总结的全部内容,希望对你有帮助。。。。。。。
Powered by Waline v2.15.4