右边的内容如下:1、请求参数:
{\"Creator\":\"String\",\"NeedUpDateFields\":[\"String\"],\"Model\":{\"FID\":0,\"FBillNo\":\"String\",\"FBillTypeID\":{\"FBILLTYPEID\":\"String\",\"FNumber\":\"String\",\"FName\":\"String\"},\"FDATE\":\"\/Date(-62135596800000+0800)\/\",\"FCONTACTUNITTYPE\":\"String\",\"FCONTACTUNIT\":{\"FItemID\":0,\"FNumber\":\"String\",\"FName\":\"String\"},\"FRECTUNITTYPE\":\"String\",\"FRECTUNIT\":{\"FItemID\":0,\"FNumber\":\"String\",\"FName\":\"String\"},\"FISINIT\":false,\"FDepartment\":{\"FDEPTID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FCURRENCYID\":{\"FCURRENCYID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FMAINBOOKID\":{\"FCURRENCYID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FPAYTOTALAMOUNTFOR_H\":0,\"FSETTLERATE\":0,\"FPAYAMOUNTFOR\":0,\"FEXCHANGETYPE\":{\"FRATETYPEID\":0,\"FNumber\":\"String\",\"FName\":\"String\",\"FDIGITS\":0,\"FREVERSEDIGITS\":0},\"FEXCHANGERATE\":0,\"FREALPAYAMOUNTFOR_H\":0,\"FPAYTOTALAMOUNT_H\":0,\"FSETTLEORGID\":{\"FOrgID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FPAYAMOUNT\":0,\"FREALPAYAMOUNT_H\":0,\"FPURCHASEORGID\":{\"FOrgID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FPURCHASEDEPTID\":{\"FDEPTID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FPURCHASERGROUPID\":{\"FEntryId\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FPURCHASERID\":{\"FID\":0,\"FNumber\":\"String\",\"FName\":\"String\",\"FDEPTID\":{\"FDEPTID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"}},\"FSOURCESYSTEM\":\"String\",\"FWRITTENOFFSTATUS\":\"String\",\"FACCOUNTSYSTEM\":{\"FACCTSYSTEMID\":0,\"FNumber\":\"String\",\"FName\":\"String\"},\"FDOCUMENTSTATUS\":\"String\",\"FCreatorId\":{\"FUserID\":0,\"FUserAccount\":\"String\",\"FName\":\"String\"},\"FModifierId\":{\"FUserID\":0,\"FUserAccount\":\"String\",\"FName\":\"String\"},\"FCreateDate\":\"\/Date(-62135596800000+0800)\/\",\"FModifyDate\":\"\/Date(-62135596800000+0800)\/\",\"FApproveDate\":\"\/Date(-62135596800000+0800)\/\",\"FCancellerId\":{\"FUserID\":0,\"FUserAccount\":\"String\",\"FName\":\"String\"},\"FCancelDate\":\"\/Date(-62135596800000+0800)\/\",\"FBUSINESSTYPE\":\"String\",\"FAPPROVERID\":{\"FUserID\":0,\"FUserAccount\":\"String\",\"FName\":\"String\"},\"FCancelStatus\":\"String\",\"FPAYORGID\":{\"FOrgID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"},\"FISSAMEORG\":false,\"FIsCredit\":false,\"FSETTLECUR\":{\"FCURRENCYID\":0,\"FNUMBER\":\"String\",\"FNAME\":\"String\"}}}2、返回参数:
{"Result":{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","IsSuccess":false,"Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String"}]},"Id":"String"}}3、代码示例:
// 使用webapi引用组件Kingdee.BOS.WebApi.Client.dll
ApiClient client = new ApiClient("");
object[] loginInfo = new object [] {
"5652c9551cdd5e",//帐套Id
"Administrator",//用户名
"888888",//密码
2052}//语言id
var ret = client.Execute
var result = JObject.Parse(ret)["LoginResultType"].Value
// 登陆成功
if (result == 1)
{
client.Execute
}
城市:FCity
省:FProvince
地区:FDistrict
提交银行状态:FSubmitStatus
加急:FUrgent
开户行地址:FOpenAddressRec
付款用途:FPURPOSEID
收款类型:FRecType
收款银行:FBankTypeRec
联行号:FCNAPS
费用项目:FCOSTID
内部账户名称:FINNERACCOUNTNAME
退款关联金额:FRefundAmount
付款金额:FPAYAMOUNTFOR_E
现金账号:FCashAccount
提交/撤销银行时间:FSubmitBankTime
提交/撤销银行人:FSubmitUser
银行处理状态:FBankStatus
内部账号:FINNERACCOUNTID
银行状态码:FBankCode
勾对:FBLEND
对方账户名称:FOPPOSITECCOUNTNAME
备注:FCOMMENT
采购订单:FPAYITEM
手续费本位币:FHANDLINGCHARGE
手续费:FHANDLINGCHARGEFOR
表体-应付金额本位币:FPAYTOTALAMOUNT
现金折扣本位币:FSETTLEDISTAMOUNT
表体明细-核销状态:FWRITTENOFFSTATUS_D
对方银行账号:FOPPOSITEBANKACCOUNT
表体明细-已核销金额:FWRITTENOFFAMOUNTFOR_D
我方账户名称:FPAYACCOUNTNAME
我方银行账号:FACCOUNTID
我方开户行:FPAYBANKID
结算号:FSETTLENO
对方开户行:FOPPOSITEBANKNAME
表体-实付金额本位币:FREALPAYAMOUNT_D
表体-实付金额:FREALPAYAMOUNTFOR_D
关联金额:FASSTOTALAMOUNTFOR
采购订单ID:FPURCHASEORDERID
预付项目类型:FPAYITEMTYPE
付款金额本位币:FPAYAMOUNT_E
可用余额:FPARLEFTAMOUNTFOR
结算状态:FKDBPSETTLESTATUS
当前占用金额:FUSEDAMOUNTFOR
票据组织(临时用的):FTempOrgId
内部账户:FINNERACCOUNTID_B
票据类型:FKDBPBILLTYPE
票据流水号:FBILLID
票据号:FKDBPBILLNO
到期日:FKDBPDUEDATE
票面金额:FKDBPPARAMOUNT
客户:FKDBPCUSTOMER
票据号:FKDBPARBILLNO
票面金额:FParAmount
往来单位:FBCONTACTUNIT
往来单位类型:FBCONTACTUNITTYPE
票据流水号:FReceivebleBillId
内部账户:FInnerActId
付款用途:FPayPurse
票据类型:FKDBPARBILLTYPE
背书金额:FReturnAmount
预付预收已核销金额:FPREMATCHAMOUNTFOR
源单行号:FSRCSEQ
源单行内码:FSRCROWID
到期日:FEXPIRY
源单币别:FSRCCURRENCYID
计划付款金额:FPLANPAYAMOUNT
立账日期:FOPENACCOUNTDATE
应付金额:FAFTTAXTOTALAMOUNT
本次付款金额:FREALPAYAMOUNT_S
源单内码:FSRCBILLID
结算方式:FSRCSETTLETYPEID
费用项目:FSRCCOSTID
本次付利息金额:FRealInstAmount
关联单据ID:FASSBILLID
关联金额:FASSAMOUNTFOR
关联单据编号:FASSBILLNO
源单编号:FSRCBILLNO
源单类型:FSOURCETYPE
付款用途:FPAYPURPOSEID
本次还本金额:FRealPclAmount
计划付利息金额:FPlanInstAmount
折后金额本位币:FSETTLEPAYAMOUNT
采购员:FPURCHASERID
单据类型:FBillTypeID
采购组:FPURCHASERGROUPID
表头-实付金额:FREALPAYAMOUNTFOR_H
采购部门:FPURCHASEDEPTID
修改人:FModifierId
核销状态:FWRITTENOFFSTATUS
作废状态:FCancelStatus
作废人:FCancellerId
作废日期:FCancelDate
往来单位:FCONTACTUNIT
往来单位类型:FCONTACTUNITTYPE
会计核算体系:FACCOUNTSYSTEM
修改日期:FModifyDate
单据状态:FDOCUMENTSTATUS
单据编号:FBillNo
采购组织:FPURCHASEORGID
审核日期:FApproveDate
表头-应付金额:FPAYTOTALAMOUNTFOR_H
业务日期:FDATE
币别:FCURRENCYID
创建人:FCreatorId
审核人:FAPPROVERID
结算组织:FSETTLEORGID
创建日期:FCreateDate
收款单位类型:FRECTUNITTYPE
本位币:FMAINBOOKID
汇率类型:FEXCHANGETYPE
结算币别:FSETTLECUR
表头-应付金额本位币:FPAYTOTALAMOUNT_H
是否信贷业务:FIsCredit
是否相同组织:FISSAMEORG
付款金额:FPAYAMOUNTFOR
结算汇率:FSETTLERATE
结算方式:FSETTLETYPEID
折后金额:FSETTLEPAYAMOUNTFOR
表体-应付金额:FPAYTOTALAMOUNTFOR
现金折扣:FSETTLEDISTAMOUNTFOR
表头-付款金额本位币:FPAYAMOUNT
表头-实付金额本位币:FREALPAYAMOUNT_H
汇率:FEXCHANGERATE
是否期初单据:FISINIT
来源系统:FSOURCESYSTEM
收款单位:FRECTUNIT
业务类型:FBUSINESSTYPE
付款组织:FPAYORGID
部门:FDepartment
json里少很多字段,比如系统提示必填的“付款单明细”分录都没有。
推荐阅读