# 标准应收单
本文档将详细列举当前系统支持标准应收单相关的 webhook
# 创建标准应收单
curl 示例请求:
curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=CREATE_AR_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39","businessType":5004,"data":{"标准应收单":{"应收单编号":"00000001","税额":82601.77,"币别":{"code":"CNY","field_7bf2h":"人民币"},"未税金额本位币":635398.23,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"价税合计本位币":718000,"单据类型":"标准应收单","客户编号":"C-231008-001","未税金额":635398.23,"客户名称关联表单字段":"新核云-001","币别汇率":1,"单据状态":"NOT_STARTED","业务日期":1699342428000,"关联开票数量":0,"已收款金额":0,"已开票数量":0,"未关联应收金额":718000,"价税合计":718000,"汇率":1,"币别代码":"CNY","收款状态":"未收款","税额本位币":82601.77,"未收款金额":718000,"开票状态":"未开票","币别名称":"人民币","未开票数量":1,"未关联开票数量":1,"客户名称":{"code":"C-231008-001","name":"新核云-001"},"关联应收金额":0},"应收单明细":[{"编号":"00000001","税额":82601.77,"业务单据":"L-231107-004","计价数量(选单)":1,"未税合计":635398.23,"备注":"","物料分类":"Vclass","折扣额":0,"批次号":"Test-Number1","含税单价":718000,"税率%":13,"物料名称":"AY7E3","折扣率%":100,"开票金额":0,"未税单价":635398.230088,"关联开票数量":0,"计价单位":{"name":"台"},"已开票数量":0,"价税合计":718000,"销售订单编号":{"code":"Test-001"},"未开票数量":1,"未关联开票数量":1,"计价数量":1,"物料编号":{"code":"RV301050003","type":"产品","name":"AY7E3"}}],"收款计划":[{"应收金额":718000,"应收金额本位币":718000,"到期日":1699342436871,"未核销金额":718000,"未关联应收金额":718000,"已核销金额":0,"应收比例%":100,"关联收款金额":0,"编号":"00000001","销售订单编号":{"code":"Test-001"}}]}}'
请求报文说明
{
"requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39",//请求id
"businessType":5004,//业务类型
"data":{
"标准应收单": {
"应收单编号": "00000001",
"税额": 82601.77,
"币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"未税金额本位币": 635398.23,
"本位币": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"价税合计本位币": 718000,
"单据类型": "标准应收单",
"客户编号": "C-231008-001",
"未税金额": 635398.23,
"客户名称关联表单字段": "新核云-001",
"币别汇率": 1,
"单据状态": "NOT_STARTED",
"业务日期": 1699342428000,
"关联开票数量": 0,
"已收款金额": 0,
"已开票数量": 0,
"未关联应收金额": 718000,
"价税合计": 718000,
"汇率": 1,
"币别代码": "CNY",
"收款状态": "未收款",
"税额本位币": 82601.77,
"未收款金额": 718000,
"开票状态": "未开票",
"币别名称": "人民币",
"未开票数量": 1,
"未关联开票数量": 1,
"客户名称": {
"code": "C-231008-001",
"name": "新核云-001"
},
"关联应收金额": 0
},
"应收单明细": [{
"编号": "00000001",
"税额": 82601.77,
"业务单据": "L-231107-004",
"计价数量(选单)": 1,
"未税合计": 635398.23,
"备注": "",
"物料分类": "Vclass",
"折扣额": 0,
"批次号": "Test-Number1",
"含税单价": 718000,
"税率%": 13,
"物料名称": "AY7E3",
"折扣率%": 100,
"开票金额": 0,
"未税单价": 635398.230088,
"关联开票数量": 0,
"计价单位": {
"name": "台"
},
"已开票数量": 0,
"价税合计": 718000,
"销售订单编号": {
"code": "Test-001"
},
"未开票数量": 1,
"未关联开票数量": 1,
"计价数量": 1,
"物料编号": {
"code": "RV301050003",
"type": "产品",
"name": "AY7E3"
}
}],
"收款计划": [{
"应收金额": 718000,
"应收金额本位币": 718000,
"到期日": 1699342436871,
"未核销金额": 718000,
"未关联应收金额": 718000,
"已核销金额": 0,
"应收比例%": 100,
"关联收款金额": 0,
"编号": "00000001",
"销售订单编号": {
"code": "Test-001"
}
}]
}
}
# 作废标准应收单
curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=ABANDON_AR_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39","businessType":5006,"data":{"标准应收单":{"应收单编号":"00000001","税额":82601.77,"币别":{"code":"CNY","field_7bf2h":"人民币"},"未税金额本位币":635398.23,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"价税合计本位币":718000,"单据类型":"标准应收单","客户编号":"C-231008-001","未税金额":635398.23,"客户名称关联表单字段":"新核云-001","币别汇率":1,"单据状态":"NOT_STARTED","业务日期":1699342428000,"关联开票数量":0,"已收款金额":0,"已开票数量":0,"未关联应收金额":718000,"价税合计":718000,"汇率":1,"币别代码":"CNY","收款状态":"未收款","税额本位币":82601.77,"未收款金额":718000,"开票状态":"未开票","币别名称":"人民币","未开票数量":1,"未关联开票数量":1,"客户名称":{"code":"C-231008-001","name":"新核云-001"},"关联应收金额":0},"应收单明细":[{"编号":"00000001","税额":82601.77,"业务单据":"L-231107-004","计价数量(选单)":1,"未税合计":635398.23,"备注":"","物料分类":"Vclass","折扣额":0,"批次号":"Test-Number1","含税单价":718000,"税率%":13,"物料名称":"AY7E3","折扣率%":100,"开票金额":0,"未税单价":635398.230088,"关联开票数量":0,"计价单位":{"name":"台"},"已开票数量":0,"价税合计":718000,"销售订单编号":{"code":"Test-001"},"未开票数量":1,"未关联开票数量":1,"计价数量":1,"物料编号":{"code":"RV301050003","type":"产品","name":"AY7E3"}}],"收款计划":[{"应收金额":718000,"应收金额本位币":718000,"到期日":1699342436871,"未核销金额":718000,"未关联应收金额":718000,"已核销金额":0,"应收比例%":100,"关联收款金额":0,"编号":"00000001","销售订单编号":{"code":"Test-001"}}]}}'
请求报文说明
{
"requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39",//请求id
"businessType":5006,//业务类型
"data":{
"标准应收单": {
"应收单编号": "00000001",
"税额": 82601.77,
"币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"未税金额本位币": 635398.23,
"本位币": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"价税合计本位币": 718000,
"单据类型": "标准应收单",
"客户编号": "C-231008-001",
"未税金额": 635398.23,
"客户名称关联表单字段": "新核云-001",
"币别汇率": 1,
"单据状态": "NOT_STARTED",
"业务日期": 1699342428000,
"关联开票数量": 0,
"已收款金额": 0,
"已开票数量": 0,
"未关联应收金额": 718000,
"价税合计": 718000,
"汇率": 1,
"币别代码": "CNY",
"收款状态": "未收款",
"税额本位币": 82601.77,
"未收款金额": 718000,
"开票状态": "未开票",
"币别名称": "人民币",
"未开票数量": 1,
"未关联开票数量": 1,
"客户名称": {
"code": "C-23001-001",
"name": "新核云-001"
},
"关联应收金额": 0
},
"应收单明细": [{
"编号": "00000001",
"税额": 82601.77,
"业务单据": "L-231117-001",
"计价数量(选单)": 1,
"未税合计": 635398.23,
"备注": "",
"物料分类": "Vclass",
"折扣额": 0,
"批次号": "Test-Number1",
"含税单价": 718000,
"税率%": 13,
"物料名称": "TestItem",
"折扣率%": 100,
"开票金额": 0,
"未税单价": 635398.230088,
"关联开票数量": 0,
"计价单位": {
"name": "台"
},
"已开票数量": 0,
"价税合计": 718000,
"销售订单编号": {
"code": "Test-001"
},
"未开票数量": 1,
"未关联开票数量": 1,
"计价数量": 1,
"物料编号": {
"code": "TestItem",
"type": "产品",
"name": "物料"
}
}],
"收款计划": [{
"编号": "00000001",
"应收金额": 718000,
"应收金额本位币": 718000,
"到期日": 1699342436871,
"未核销金额": 718000,
"未关联应收金额": 718000,
"已核销金额": 0,
"应收比例%": 100,
"关联收款金额": 0,
"销售订单编号": {
"code": "Test-001"
}
}]
}
}