JSON 数组如下:
{
"Creator": "String",
"NeedUpDateFields": [],
"Model": {
"FID": 0,
"FBillTypeID": {
"FNumber": "YFD01_SYS"
},
"FBillNo": "",
"FDATE": "2015-10-08",
"FISINIT": false,
"FENDDATE_H": "2015/10/09",
"FDOCUMENTSTATUS": "C",
"FSUPPLIERID": {
"FNumber": "SU000031",
"FCorrespondOrgId": {
"FNUMBER": "100"
},
"AP_Payable_BD_Supplier__FFinanceInfo": {
"FPayCondition": {
"FNUMBER": "FKTJ01_SYS"
}
}
},
"FCURRENCYID": { //币别
"FNumber": "PRE001"
},
"FALLAMOUNTFOR": "14700.00",
"FPayConditon": {
"FNUMBER": "FKTJ01_SYS"
},
"FBUSINESSTYPE": "CG",
"FOWNERTYPE": "BD_Supplier",
"FOWNERID": {
"FNumber": "100"
},
"FSETTLEORGID": {
"FNUMBER": "100"
},
"FByVerify": false,
"FPURCHASEORGID": {
"FNUMBER": "100"
},
"FISTAX": false,
"FACCOUNTSYSTEM": {
"FName": "KJHSTX01_SYS"
},
"FRelateHadPayAmount": 0,
"FCreateDate": "2015/10/09",
"FCancelStatus": "A",
"FWRITTENOFFSTATUS": "A",
"FAPPROVEDATE": "2015/10/09",
"FPAYORGID": {
"FNUMBER": "100"
},
"FISBYIV": false,
"FISGENHSADJ": false,
"FISTAXINCOST": false,
"FMATCHMETHODID": 0,
"F_XFL_YWLX": {
"FNumber": 1
},
"F_XFL_CZLX": {
"FNumber": 3
},
"F_XFL_PT": {
"FNumber": 122
},
"F_XFL_YWBH": "D201510395012",
"AP_Payable__FsubHeadSuppiler": {
"FORDERID": {
"FNumber": "SU000031",
"FCorrespondOrgId": {
"FNUMBER": "100"
},
"AP_Payable_BD_Supplier__FFinanceInfo": {
"FPayCondition": {
"FNUMBER": "FKTJ01_SYS"
}
}
},
"FTRANSFERID": {
"FNumber": "SU000031",
"FCorrespondOrgId": {
"FNUMBER": "100"
}
},
"FChargeId": {
"FNumber": "SU000031",
"FCorrespondOrgId": {
"FNUMBER": "100"
}
}
},
"AP_Payable__FsubHeadFinc": {
"FSettleTypeID": {
"FNumber": "1"
},
"FMAINBOOKSTDCURRID": { //本位币
"FNumber": "PRE001"
},
"FEXCHANGETYPE": {
"FNumber": "HLTX01_SYS"
},
"FExchangeRate": 1,
"FTaxAmountFor": "49.92",
"FNoTaxAmountFor": "13867.92",
"FALLAMOUNT": 0,
"FTaxAmount": 0,
"FNoTaxAmount": 0
},
"AP_Payable__FEntityDetail": {
"FMATERIALID": {
"FNumber": "001"
},
"FPRICEUNITID": {
"FNumber": "Pcs"
},
"FPrice": "27.74",
"FPriceQty": 500,
"FTaxPrice": "29.40",
"FEntryTaxRate": 0.06,
"FEntryDiscountRate": 0,
"FNoTaxAmountFor_D": "13867.92",
"FTAXAMOUNTFOR_D": "49.92",
"FALLAMOUNTFOR_D": "14700.00",
"F_XFL_CPLX": {
"FNumber": 1
},
"FIsFree": false
}
}
}
错误提示如下:
金蝶原始返回
Array
(
[Result] => Array
(
[ResponseStatus] => Array
(
[ErrorCode] => 500
[IsSuccess] =>
[Errors] => Array
(
[0] => Array
(
[Message] => 字段“币别”是必填项
)
)
)
)
)
问题:使用PHP语言,调用K3 Cloud 服务接口 进行的对接。应该如何修改?
推荐阅读