# 收款单

本文档将详细列举当前系统支持收款单相关的 webhook

# 创建收款单

curl 示例请求:

curl --request POST \
  --url 'http://${yourhost}/${yourpath}?businessType=CREATE_RECEIVABLE_DOC' \
  --header 'content-type: application/json' \
  --data '{"requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39","businessType":5007,"data":{"收款单":{"结算汇率":1,"币别":{"code":"CNY","field_7bf2h":"人民币"},"应收金额":718000,"应收金额本位币":718000,"结算币别汇率":1,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"核销状态":"未核销","单据类型":"销售收款","收款跳转标志":1,"币别汇率":1,"已核销金额":0,"单据状态":"未开始","业务日期":1700805466960,"币种代码":"人民币","收款单编号":"00000001","结算币别":{"code":"CNY","field_7bf2h":"人民币"},"汇率":1,"是否生产凭证":true,"实收金额":718000,"未核销金额":718000,"客户名称":{"code":"C-231008-001","name":"新核云销售有限公司"},"审核状态":"待提交","实收金额本位币":718000},"收款明细":[{"应收金额":718000,"现金折扣":0,"编号":"00000001","长短款":0,"收款金额":718000,"已核销金额本位币-隐":0,"应收金额本位币-隐":"718000.00","实收金额":718000,"手续费":0,"收款用途":"销售收款","未核销金额":718000,"已核销金额":0,"折后金额":718000}],"源单明细":[{"未核销金额-隐":718000,"应收金额":718000,"源单币别":{"code":"CNY","field_7bf2h":"人民币"},"备注":"","源单编号":"00000001","本次应收金额":718000,"编号":"00000001","计划应收金额":718000,"到期日":1700804866279,"源单客户":{"code":"C-231008-001","name":"新核云销售有限公司"},"源单类型":"标准应收单"}]}}'

请求报文说明

{
    "requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39",//请求id
    "businessType":5007,//业务类型
    "data":{
      "收款单": {
          "结算汇率": 1,
          "币别": {
            "code": "CNY",
            "field_7bf2h": "人民币"
          },
          "应收金额": 718000,
          "应收金额本位币": 718000,
          "结算币别汇率": 1,
          "本位币": {
            "code": "CNY",
            "field_7bf2h": "人民币"
          },
          "核销状态": "未核销",
          "单据类型": "销售收款",
          "币别汇率": 1,
          "已核销金额": 0,
          "单据状态": "未开始",
          "业务日期": 1700805466960,
          "币种代码": "人民币",
          "收款单编号": "00000001",
          "结算币别": {
            "code": "CNY",
            "field_7bf2h": "人民币"
          },
          "汇率": 1,
          "是否生产凭证": true,
          "实收金额": 718000,
          "未核销金额": 718000,
          "客户名称": {
            "code": "C-231008-001",
            "name": "新核云销售有限公司"
          },
          "审核状态": "待提交", 
          "实收金额本位币": 718000
    },
    "收款明细": [{
      "应收金额": 718000,
      "现金折扣": 0,
      "编号": "00000001",
      "长短款": 0,
      "收款金额": 718000,
      "实收金额": 718000,
      "手续费": 0,
      "收款用途": "销售收款",
      "未核销金额": 718000,
      "已核销金额": 0,
      "折后金额": 718000
    }], 
    "源单明细": [{
      "应收金额": 718000,
      "源单币别": {
        "code": "CNY",
        "field_7bf2h": "人民币"
      },
      "备注": "",
      "源单编号": "00000001",
      "本次应收金额": 718000,
      "编号": "00000001",
      "计划应收金额": 718000,
      "到期日": 1700804866279,
      "源单客户": {
        "code": "C-231008-001",
        "name": "新核云销售有限公司"
      },
      "源单类型": "标准应收单"
    }]
  }
}

# 作废收款单

curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=ABANDON_RECEIVABLE_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39","businessType":5009,"data":{"收款单":{"结算汇率":1,"币别":{"code":"CNY","field_7bf2h":"人民币"},"应收金额":718000,"应收金额本位币":718000,"结算币别汇率":1,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"核销状态":"未核销","单据类型":"销售收款","收款跳转标志":1,"币别汇率":1,"已核销金额":0,"单据状态":"未开始","业务日期":1700805466960,"币种代码":"人民币","收款单编号":"00000001","结算币别":{"code":"CNY","field_7bf2h":"人民币"},"汇率":1,"是否生产凭证":true,"实收金额":718000,"未核销金额":718000,"客户名称":{"code":"C-231008-001","name":"新核云销售有限公司"},"审核状态":"待提交","实收金额本位币":718000},"收款明细":[{"应收金额":718000,"现金折扣":0,"编号":"00000001","长短款":0,"收款金额":718000,"已核销金额本位币-隐":0,"应收金额本位币-隐":"718000.00","实收金额":718000,"手续费":0,"收款用途":"销售收款","未核销金额":718000,"已核销金额":0,"折后金额":718000}],"源单明细":[{"未核销金额-隐":718000,"应收金额":718000,"源单币别":{"code":"CNY","field_7bf2h":"人民币"},"备注":"","源单编号":"00000001","本次应收金额":718000,"编号":"00000001","计划应收金额":718000,"到期日":1700804866279,"源单客户":{"code":"C-231008-001","name":"新核云销售有限公司"},"源单类型":"标准应收单"}]}}'

请求报文说明


{
  "requestId":"244c229c-4f5f-48e9-b938-2a80217bdf39",//请求id
      "businessType":5009,//业务类型
      "data":{
        "收款单": {
          "结算汇率": 1,
          "币别": {
            "code": "CNY",
            "field_7bf2h": "人民币"
          },
          "应收金额": 718000,
          "应收金额本位币": 718000,
          "结算币别汇率": 1,
          "本位币": {
            "code": "CNY",
            "field_7bf2h": "人民币"
          },
          "核销状态": "未核销",
          "单据类型": "销售收款",
          "币别汇率": 1,
          "已核销金额": 0,
          "单据状态": "未开始",
          "业务日期": 1700805466960,
          "币种代码": "人民币",
          "收款单编号": "00000001",
          "结算币别": {
            "code": "CNY",
            "field_7bf2h": "人民币"
          },
          "汇率": 1,
          "是否生产凭证": true,
          "实收金额": 718000,
          "未核销金额": 718000,
          "客户名称": {
            "code": "C-231008-001",
            "name": "新核云销售有限公司"

          },
          "审核状态": "待提交",
          "实收金额本位币": 718000
    },
    "收款明细": [{
      "应收金额": 718000,
      "现金折扣": 0,
      "编号": "00000001",
      "长短款": 0,
      "收款金额": 718000,
      "实收金额": 718000,
      "手续费": 0,
      "收款用途": "销售收款",
      "未核销金额": 718000,
      "已核销金额": 0,
      "折后金额": 718000
    }],
    "源单明细": [{
      "应收金额": 718000,
      "源单币别": {
        "code": "CNY",
        "field_7bf2h": "人民币"
      },
      "备注": "",
      "源单编号": "00000001",
      "本次应收金额": 718000,
      "编号": "00000001",
      "计划应收金额": 718000,
      "到期日": 1700804866279,
      "源单客户": {
        "code": "C-231008-001",
        "name": "新核云销售有限公司"
      },
      "源单类型": "标准应收单"
    }]
  }
}