Postman 调试 Webapi
9人赞赏了该文章
5,558次浏览
编辑于2018年09月26日 12:31:34
1. 登录
在调用webapi之前需要先行登录系统:
- 输入POST请求
[http://<domain>/k3cloud/Kingdee.bos.webapi.ServicesStub.authservice.validateuser.common.kdsvc]
- Body内输入json格式的登录信息
{acctid:'5b1636f7553992', userName:'Administrator', password:'888888', lcid:2052 }
2. 举例
以调用预计可发量的查询接口为例。
输入POST请求
http://<domain>/k3cloud/Kingdee.K3.SCM.WebApi.ServicesStub.ExpectQtyQueryWebApi.GetExpectQty.common.kdsvc
Body内输入json格式的请求参数
{ queryExpectQtyArgs: [{ "Row":1, "StockOrgId": {"FNumber": "100"}, "MaterialId": {"FNumber":"0.018"}, "UnitId":{"FNumber":"Pcs"}, "StockId": {"FNumber":"01"}, "StockStatusId": {"FNumber":"KCZT01_SYS"}, "BomId":{"FNumber":"0.018_V1.0"}, "LotText":"Lot-01", "ProductDate":"2018-08-01", "ExpiryDate":"2021-08-01", "OwnerTypeId":"BD_OwnerOrg", "OwnerId":{"FNumber":"100"}, "KeeperTypeId":"BD_Supplier", "KeeperId":{"FNumber":"100"}, "ProjectNo":"P.No001", "MtoNo":"M.No001" }] }
其中库存组织(StockOrgId)和物料(MaterialId)必录!!!