集成项目
  1. 库存查询
集成项目
  • SRM
    • SupReqPOrder
      • 新建请购单(外部调用)
    • SupReqPOrderAttach
      • 多文件上传(外部调用)
    • SupOrder
      • 上传订单执行情况(外部服务调用)
      • 上传订单
    • SupOrderAttach
      • 多文件上传(外部调用)
  • 数据中心、产品网站
    • 库存查询
      • 新增
        POST
      • 预留ic_reserve
        POST
    • 项目进度跟踪
      • 新增
    • 销售订单执行情况
      • 推送销售订单执行情况(OrderPregress值)
    • 主数据推送
      • 新增
  1. 库存查询

预留ic_reserve

POST
http://172.16.18.160:9000/masterapi/api/v1/BatchStock/PostReserve
BatchStock

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Basic 之后拼接空格,以及经过 Base64 编码的 username:password
示例:
Authorization: Basic *****************
Body 参数application/json
pk_reserve
string  | null 
预留
可选
pk_prereserve
string  | null 
预计入预留明细
可选
pk_handreserve
string  | null 
现存量预留明细
可选
vrescode
string  | null 
预留记录号
可选
vreqbillcode
string  | null 
需求单据号
可选
creqbillrowno
string  | null 
需求单据行号
可选
creqbillid
string  | null 
需求单据头
可选
creqbillbid
string  | null 
需求单据明细
可选
creqbilltype
string  | null 
需求单据类型
可选
creqtranstype
string  | null 
需求单据交易类型
可选
dreqdate
string  | null 
需求日期
可选
pk_group
string  | null 
集团
可选
pk_org_v
string  | null 
库存组织
可选
pk_org
string  | null 
库存组织最新版本
可选
cwarehouseid
string  | null 
仓库
可选
clocationid
string  | null 
货位
可选
cmaterialvid
string  | null 
物料编码
可选
cmaterialoid
string  | null 
物料
可选
cunitid
string  | null 
主单位
可选
pk_batchcode
string  | null 
批次
可选
vbatchcode
string  | null 
批次号
可选
ctplcustomerid
string  | null 
货主客户
可选
cvendorid
string  | null 
供应商
可选
cprojectid
string  | null 
项目
可选
casscustid
string  | null 
客户属性
可选
cproductorid
string  | null 
生产厂商
可选
vhashcode
string  | null 
散列码
可选
nreqnum
number <double>
需求主数量
可选
ntaloutnum
number <double>
累计出库主数量
可选
ntalrsinnum
number <double>
累计预留入库数量
可选
ntalrsoutnum
number <double>
累计预留出库数量
可选
ntalrsnum
number <double>
累计预留数量
可选
csourcetype
string  | null 
来源单据类型
可选
csourcebillid
string  | null 
来源单据头
可选
csourcebillbid
string  | null 
来源单据明细
可选
freservetype
integer <int32>
预留类型
可选
ccustomerid
string  | null 
客户
可选
cbizid
string  | null 
业务员
可选
billmaker
string  | null 
预留人
可选
reqbillrowts
string  | null 
需求单据行时间戳
可选
fresstate
integer <int32>
预留状态
可选
bsysflag
boolean 
是否系统生成
可选
nrsnum
number <double>
本次预留主数量
可选
nlacknum
number <double>
缺货量
可选
nreqrsnum
number <double>
需求行累计预留数量
可选
saga_gtxid
string  | null 
全局事务ID
可选
saga_btxid
string  | null 
事务分支ID
可选
saga_frozen
integer <int32>
冻结状态
可选
saga_status
integer <int32>
可选
saga事务成功标志
ctplcustomervid
string  | null 
货主客户
可选
cvendorvid
string  | null 
供应商
可选
casscustvid
string  | null 
客户属性
可选
ccustomervid
string  | null 
客户
可选
vfree1
string  | null 
物料自由属性1
可选
vfree2
string  | null 
物料自由属性2
可选
vfree3
string  | null 
物料自由属性3
可选
vfree4
string  | null 
物料自由属性4
可选
vfree5
string  | null 
物料自由属性5
可选
vfree6
string  | null 
物料自由属性6
可选
vfree7
string  | null 
物料自由属性7
可选
vfree8
string  | null 
物料自由属性8
可选
vfree9
string  | null 
物料自由属性9
可选
vfree10
string  | null 
物料自由属性10
可选
creator
string  | null 
创建人
可选
creationtime
string <date-time>
预留时间
可选
modifier
string  | null 
最后修改人
可选
modifiedtime
string <date-time>
最后修改时间
可选
示例
{
    "pk_reserve": "string",
    "pk_prereserve": "string",
    "pk_handreserve": "string",
    "vrescode": "string",
    "vreqbillcode": "string",
    "creqbillrowno": "string",
    "creqbillid": "string",
    "creqbillbid": "string",
    "creqbilltype": "string",
    "creqtranstype": "string",
    "dreqdate": "string",
    "pk_group": "string",
    "pk_org_v": "string",
    "pk_org": "string",
    "cwarehouseid": "string",
    "clocationid": "string",
    "cmaterialvid": "string",
    "cmaterialoid": "string",
    "cunitid": "string",
    "pk_batchcode": "string",
    "vbatchcode": "string",
    "ctplcustomerid": "string",
    "cvendorid": "string",
    "cprojectid": "string",
    "casscustid": "string",
    "cproductorid": "string",
    "vhashcode": "string",
    "nreqnum": 0,
    "ntaloutnum": 0,
    "ntalrsinnum": 0,
    "ntalrsoutnum": 0,
    "ntalrsnum": 0,
    "csourcetype": "string",
    "csourcebillid": "string",
    "csourcebillbid": "string",
    "freservetype": 0,
    "ccustomerid": "string",
    "cbizid": "string",
    "billmaker": "string",
    "reqbillrowts": "string",
    "fresstate": 0,
    "bsysflag": true,
    "nrsnum": 0,
    "nlacknum": 0,
    "nreqrsnum": 0,
    "saga_gtxid": "string",
    "saga_btxid": "string",
    "saga_frozen": 0,
    "saga_status": 0,
    "ctplcustomervid": "string",
    "cvendorvid": "string",
    "casscustvid": "string",
    "ccustomervid": "string",
    "vfree1": "string",
    "vfree2": "string",
    "vfree3": "string",
    "vfree4": "string",
    "vfree5": "string",
    "vfree6": "string",
    "vfree7": "string",
    "vfree8": "string",
    "vfree9": "string",
    "vfree10": "string",
    "creator": "string",
    "creationtime": "2019-08-24T14:15:22Z",
    "modifier": "string",
    "modifiedtime": "2019-08-24T14:15:22Z"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://172.16.18.160:9000/masterapi/api/v1/BatchStock/PostReserve' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
    "pk_reserve": "string",
    "pk_prereserve": "string",
    "pk_handreserve": "string",
    "vrescode": "string",
    "vreqbillcode": "string",
    "creqbillrowno": "string",
    "creqbillid": "string",
    "creqbillbid": "string",
    "creqbilltype": "string",
    "creqtranstype": "string",
    "dreqdate": "string",
    "pk_group": "string",
    "pk_org_v": "string",
    "pk_org": "string",
    "cwarehouseid": "string",
    "clocationid": "string",
    "cmaterialvid": "string",
    "cmaterialoid": "string",
    "cunitid": "string",
    "pk_batchcode": "string",
    "vbatchcode": "string",
    "ctplcustomerid": "string",
    "cvendorid": "string",
    "cprojectid": "string",
    "casscustid": "string",
    "cproductorid": "string",
    "vhashcode": "string",
    "nreqnum": 0,
    "ntaloutnum": 0,
    "ntalrsinnum": 0,
    "ntalrsoutnum": 0,
    "ntalrsnum": 0,
    "csourcetype": "string",
    "csourcebillid": "string",
    "csourcebillbid": "string",
    "freservetype": 0,
    "ccustomerid": "string",
    "cbizid": "string",
    "billmaker": "string",
    "reqbillrowts": "string",
    "fresstate": 0,
    "bsysflag": true,
    "nrsnum": 0,
    "nlacknum": 0,
    "nreqrsnum": 0,
    "saga_gtxid": "string",
    "saga_btxid": "string",
    "saga_frozen": 0,
    "saga_status": 0,
    "ctplcustomervid": "string",
    "cvendorvid": "string",
    "casscustvid": "string",
    "ccustomervid": "string",
    "vfree1": "string",
    "vfree2": "string",
    "vfree3": "string",
    "vfree4": "string",
    "vfree5": "string",
    "vfree6": "string",
    "vfree7": "string",
    "vfree8": "string",
    "vfree9": "string",
    "vfree10": "string",
    "creator": "string",
    "creationtime": "2019-08-24T14:15:22Z",
    "modifier": "string",
    "modifiedtime": "2019-08-24T14:15:22Z"
}'

返回响应

🟢200Success
application/json
Body
code
integer <int32>
返回码
可选
message
string  | null 
返回消息
可选
success
boolean 
是否成功
可选
示例
{
    "code": 0,
    "message": "string",
    "success": true
}
上一页
新增
下一页
新增
Built with