{
"billCode": "YSD2022001",
"cuserid": "yy01",
"pk_bill": "100000110004",
"pk_org": "0101101",
"ts": 1615692890643,
"voType": "GlVoucherAdd",
"head": {
"attachment": "1",
"explanation": "接口测试凭证",
"prepareddate": "2022-05-31 11:16:52",
"year": "2022",
"period": "05",
"pk_vouchertype": "01",
"pk_accountingbook": "0101101-01"
},
"bodys": {
"BODY": [
{
"localdebitamount": "1000.00",
"explanation": "接口测试凭证",
"pk_accasoa": "64010101",
"excrate2": "1.00",
"debitamount": "1000.00",
"oppositesubj": "1002,22020101",
"direction": "D",
"ass": [
{
"checktypecode": "0001",
"checkvaluecode": "002"
},
{
"checktypecode": "0017",
"checkvaluecode": "A001"
},
{
"checktypecode": "0019",
"checkvaluecode": "020002"
},
{
"checktypecode": "0020",
"checkvaluecode": "01"
},
{
"checktypecode": "1002",
"checkvaluecode": "01"
},
{
"checktypecode": "1003",
"checkvaluecode": "0301"
}
]
},
{
"explanation": "接口测试凭证",
"creditamount": "1000.00",
"pk_accasoa": "22020101",
"excrate2": "1.00",
"oppositesubj": "64010101,660208",
"localcreditamount": "1000.00",
"direction": "C",
"ass": [
{
"checktypecode": "0019",
"checkvaluecode": "020002"
},
{
"checktypecode": "fesco002",
"checkvaluecode": "01"
}
]
},
{
"localdebitamount": "50.00",
"explanation": "接口测试凭证",
"pk_accasoa": "660208",
"excrate2": "1.00",
"globaldebitamount": "0.00000000",
"debitamount": "50.00",
"oppositesubj": "1002,22020101",
"direction": "D",
"cashFlow": [
{
"pk_cashflow": "1124",
"money": "50",
"moneymain": "50"
}
],
"ass": [
{
"checktypecode": "0001",
"checkvaluecode": "001"
},
{
"checktypecode": "0010",
"checkvaluecode": ""
},
{
"checktypecode": "0019",
"checkvaluecode": "~"
}
]
},
{
"explanation": "接口测试凭证",
"creditamount": "50.00",
"pk_accasoa": "1002",
"excrate2": "1.00",
"oppositesubj": "64010101,660208",
"localcreditamount": "50.00",
"direction": "C",
"ass": [
{
"checktypecode": "0011",
"checkvaluecode": "1111222233334444555"
}
]
}
]
}
}
curl --location --request POST '/service/recivemsg?type=GlVoucherAdd' \
--header 'Content-Type: application/json' \
--data-raw '{
"billCode": "YSD2022001",
"cuserid": "yy01",
"pk_bill": "100000110004",
"pk_org": "0101101",
"ts": 1615692890643,
"voType": "GlVoucherAdd",
"head": {
"attachment": "1",
"explanation": "接口测试凭证",
"prepareddate": "2022-05-31 11:16:52",
"year": "2022",
"period": "05",
"pk_vouchertype": "01",
"pk_accountingbook": "0101101-01"
},
"bodys": {
"BODY": [
{
"localdebitamount": "1000.00",
"explanation": "接口测试凭证",
"pk_accasoa": "64010101",
"excrate2": "1.00",
"debitamount": "1000.00",
"oppositesubj": "1002,22020101",
"direction": "D",
"ass": [
{
"checktypecode": "0001",
"checkvaluecode": "002"
},
{
"checktypecode": "0017",
"checkvaluecode": "A001"
},
{
"checktypecode": "0019",
"checkvaluecode": "020002"
},
{
"checktypecode": "0020",
"checkvaluecode": "01"
},
{
"checktypecode": "1002",
"checkvaluecode": "01"
},
{
"checktypecode": "1003",
"checkvaluecode": "0301"
}
]
},
{
"explanation": "接口测试凭证",
"creditamount": "1000.00",
"pk_accasoa": "22020101",
"excrate2": "1.00",
"oppositesubj": "64010101,660208",
"localcreditamount": "1000.00",
"direction": "C",
"ass": [
{
"checktypecode": "0019",
"checkvaluecode": "020002"
},
{
"checktypecode": "fesco002",
"checkvaluecode": "01"
}
]
},
{
"localdebitamount": "50.00",
"explanation": "接口测试凭证",
"pk_accasoa": "660208",
"excrate2": "1.00",
"globaldebitamount": "0.00000000",
"debitamount": "50.00",
"oppositesubj": "1002,22020101",
"direction": "D",
"cashFlow": [
{
"pk_cashflow": "1124",
"money": "50",
"moneymain": "50"
}
],
"ass": [
{
"checktypecode": "0001",
"checkvaluecode": "001"
},
{
"checktypecode": "0010",
"checkvaluecode": ""
},
{
"checktypecode": "0019",
"checkvaluecode": "~"
}
]
},
{
"explanation": "接口测试凭证",
"creditamount": "50.00",
"pk_accasoa": "1002",
"excrate2": "1.00",
"oppositesubj": "64010101,660208",
"localcreditamount": "50.00",
"direction": "C",
"ass": [
{
"checktypecode": "0011",
"checkvaluecode": "1111222233334444555"
}
]
}
]
}
}'
{
"code": 200,
"datas": {
"billno": 44,
"headId": "1001K51000000000B5BV"
},
"msg": "",
"opType": "http://127.0.0.1:14611/service/recivemsg?type=GlVoucherAdd",
"page": 1,
"pageSize": 0,
"pk_bill": "100000110004",
"pk_group": "1001A11000000000086X",
"requstId": "唯一请求识别码,非必填",
"success": true,
"total": 0,
"ts": 1654048413618
}