# 付款单
本文档将详细列举当前系统支持付款单相关的 webhook
# 创建付款单
curl 示例请求:
curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=CREATE_PAYMENT_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"c9060d7f-c9cd-4e82-966b-9027c47c194a","businessType":5010,"data":{"付款明细":[{"应付金额":1050,"付款金额":1050,"现金折扣":0,"付款用途":"采购付款","编号":"00000001","长短款":0,"手续费":0,"未核销金额":1050,"实付金额":1050,"已核销金额":0,"折后金额":1050}],"付款单":{"结算汇率":1,"币别":{"code":"CNY","field_7bf2h":"人民币"},"付款单编号":"00000001","应付金额":1050.0,"结算币别汇率":1,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"核销状态":"未核销","单据类型":"采购付款","币别汇率":1,"已核销金额":0.0,"单据状态":"未开始","应付金额本位币":1050.0,"业务日期":1700828432497,"币种代码":"人民币","实付金额本位币":1050,"结算币别":{"code":"CNY","field_7bf2h":"人民币"},"汇率":1,"付款跳转标志":1,"是否生产凭证":true,"未核销金额":1050.0,"实付金额":1050.0,"创建时间":1700828530941,"供应商":{"code":"Test-001","name":"新核云001"},"审核状态":"待提交"},"源单明细":[{"应付金额":1050,"源单币别":{"code":"CNY","field_7bf2h":"人民币"},"备注":"","源单编号":"00000004","编号":"00000001","计划应付金额":1050,"到期日":1700827842963,"源单供应商名称":{"code":"Test-001","name":"新核云001"},"本次应付金额":1050,"源单类型":"标准应付单"}]}}'
请求报文说明
{
"requestId": "c9060d7f-c9cd-4e82-966b-9027c47c194a",
"businessType": 5010,
"data": {
"付款明细": [{
"应付金额": 1050,
"付款金额": 1050,
"现金折扣": 0,
"付款用途": "采购付款",
"编号": "00000001",
"长短款": 0,
"手续费": 0,
"未核销金额": 1050,
"实付金额": 1050,
"已核销金额": 0,
"折后金额": 1050
}],
"付款单": {
"结算汇率": 1,
"币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"付款单编号": "00000001",
"应付金额": 1050.0,
"结算币别汇率": 1,
"本位币": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"核销状态": "未核销",
"单据类型": "采购付款",
"币别汇率": 1,
"已核销金额": 0.0,
"单据状态": "未开始",
"应付金额本位币": 1050.0,
"业务日期": 1700828432497,
"币种代码": "人民币",
"实付金额本位币": 1050,
"结算币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"汇率": 1,
"是否生产凭证": true,
"未核销金额": 1050.0,
"实付金额": 1050.0,
"创建时间": 1700828530941,
"供应商": {
"code": "Test-001",
"name": "新核云001"
},
"审核状态": "待提交"
},
"源单明细": [{
"应付金额": 1050,
"源单币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"备注": "",
"源单编号": "00000004",
"编号": "00000001",
"计划应付金额": 1050,
"到期日": 1700827842963,
"源单供应商名称": {
"code": "Test-001",
"name": "新核云001"
},
"本次应付金额": 1050,
"源单类型": "标准应付单"
}]
}
}
# 作废付款单
curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=ABANDON_PAYMNET_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"c9060d7f-c9cd-4e82-966b-9027c47c194a","businessType":5012,"data":{"付款明细":[{"应付金额":1050,"付款金额":1050,"现金折扣":0,"付款用途":"采购付款","编号":"00000001","长短款":0,"手续费":0,"未核销金额":1050,"实付金额":1050,"已核销金额":0,"折后金额":1050}],"付款单":{"结算汇率":1,"币别":{"code":"CNY","field_7bf2h":"人民币"},"付款单编号":"00000001","应付金额":1050.0,"结算币别汇率":1,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"核销状态":"未核销","单据类型":"采购付款","币别汇率":1,"已核销金额":0.0,"单据状态":"未开始","应付金额本位币":1050.0,"业务日期":1700828432497,"币种代码":"人民币","实付金额本位币":1050,"结算币别":{"code":"CNY","field_7bf2h":"人民币"},"汇率":1,"付款跳转标志":1,"是否生产凭证":true,"未核销金额":1050.0,"实付金额":1050.0,"创建时间":1700828530941,"供应商":{"code":"Test-001","name":"新核云001"},"审核状态":"待提交"},"源单明细":[{"应付金额":1050,"源单币别":{"code":"CNY","field_7bf2h":"人民币"},"备注":"","源单编号":"00000004","编号":"00000001","计划应付金额":1050,"到期日":1700827842963,"源单供应商名称":{"code":"Test-001","name":"新核云001"},"本次应付金额":1050,"源单类型":"标准应付单"}]}}'
请求报文说明
{
"requestId": "c9060d7f-c9cd-4e82-966b-9027c47c194a",
"businessType": 5012,
"data": {
"付款明细": [{
"应付金额": 1050,
"付款金额": 1050,
"现金折扣": 0,
"付款用途": "采购付款",
"编号": "00000001",
"长短款": 0,
"手续费": 0,
"未核销金额": 1050,
"实付金额": 1050,
"已核销金额": 0,
"折后金额": 1050
}],
"付款单": {
"结算汇率": 1,
"币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"付款单编号": "00000001",
"应付金额": 1050.0,
"结算币别汇率": 1,
"本位币": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"核销状态": "未核销",
"单据类型": "采购付款",
"币别汇率": 1,
"已核销金额": 0.0,
"单据状态": "未开始",
"应付金额本位币": 1050.0,
"业务日期": 1700828432497,
"币种代码": "人民币",
"实付金额本位币": 1050,
"结算币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"汇率": 1,
"是否生产凭证": true,
"未核销金额": 1050.0,
"实付金额": 1050.0,
"创建时间": 1700828530941,
"供应商": {
"code": "Test-001",
"name": "新核云001"
},
"审核状态": "待提交"
},
"源单明细": [{
"应付金额": 1050,
"源单币别": {
"code": "CNY",
"field_7bf2h": "人民币"
},
"备注": "",
"源单编号": "00000004",
"编号": "00000001",
"计划应付金额": 1050,
"到期日": 1700827842963,
"源单供应商名称": {
"code": "Test-001",
"name": "新核云001"
},
"本次应付金额": 1050,
"源单类型": "标准应付单"
}]
}
}