# 标准应付单

本文档将详细列举当前系统支持其他应付单相关的 webhook

# 创建标准应付单

curl 示例请求:

curl --request POST \
  --url 'http://${yourhost}/${yourpath}?businessType=CREATE_PAYABLE_DOC' \
  --header 'content-type: application/json' \
  --data '{"requestId":"e1bfdc46-c566-44db-9d56-d03559f19b5c","businessType":5013,"data":{"标准应付单":{"税额":120.8,"币别":{"code":"CNY","field_7bf2h":"人民币"},"供应商名称":{"code":"Test-001","name":"新核云-001"},"付款状态":"NOT_STARTED","未税金额本位币":929.2,"价税合计本位币":1050,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"单据类型":"标准应付单","未税金额":929.2,"关联应付金额":1050,"应付单编号":"00000001","是否生成凭证":true,"已付款金额":0,"单据状态":"NOT_STARTED","汇率(隐藏)":1,"业务日期":1700496000000,"关联开票数量":0,"已开票数量":0,"未关联应付金额":0,"价税合计":1050,"汇率":1,"税额本位币":120.8,"开票状态":"NOT_STARTED","创建时间":1700827865413,"未开票数量":7,"未关联开票数量":7,"未付款金额":1050,"审核状态":"已审核"},"付款计划":[{"关联付款金额":1050,"应付金额本位币":1050,"父应付单编号-隐":"00000004","未关联应付金额":0,"应付比例%":100,"到期日":1700827842963,"未核销金额":1050,"应付金额":1050,"已核销金额":0,"应付金额本位币-隐":1050,"编号":"00000001","未核销金额本位币-隐":1050}],"应付明细":[{"税额":120.8,"业务单据":"L-231124-001","计价数量(选单)":7,"未税合计":929.2,"未税合计本位币":929.2,"物料分类":"物料分类","折扣额":1049,"价税合计本位币":1050,"含税单价":150,"税率%":13,"物料规格":"规格: AAA","物料名称":"物料001","折扣率%":100,"开票金额":0,"未税单价":132.743363,"选单类型(隐藏)":1,"关联开票数量":0,"计价单位":{"name":"PCS"},"已开票数量":0,"价税合计":1050,"编号":"00000002","采购订单编号":"P-231110-001","未开票数量":7,"未关联开票数量":7,"计价数量":7,"物料编号":{"code":"code-001","name":"物料001"}}]}}'

请求报文说明

{
  "requestId": "e1bfdc46-c566-44db-9d56-d03559f19b5c",
      "businessType": 5013,
      "data": {
        "标准应付单": {
          "税额": 120.8,
              "币别": {
                "code": "CNY",
                "field_7bf2h": "人民币"
          },
          "供应商名称": {
                "code": "Test-001",
                "name": "新核云-001"
          },
          "付款状态": "NOT_STARTED",
              "未税金额本位币": 929.2,
              "价税合计本位币": 1050,
              "本位币": {
                "code": "CNY",
                "field_7bf2h": "人民币"
          },
          "单据类型": "标准应付单",
          "未税金额": 929.2,
          "关联应付金额": 1050,
          "应付单编号": "00000001",
          "是否生成凭证": true,
          "已付款金额": 0,
          "单据状态": "NOT_STARTED",
          "汇率(隐藏)": 1,
          "业务日期": 1700496000000,
          "关联开票数量": 0,
          "已开票数量": 0,
          "未关联应付金额": 0,
          "价税合计": 1050,
          "汇率": 1,
          "税额本位币": 120.8,
          "开票状态": "NOT_STARTED",
          "创建时间": 1700827865413,
          "未开票数量": 7,
          "未关联开票数量": 7,
          "未付款金额": 1050,
          "审核状态": "已审核"
        },
        "付款计划": [{
          "关联付款金额": 1050,
          "应付金额本位币": 1050,
          "父应付单编号-隐": "00000004",
          "未关联应付金额": 0,
          "应付比例%": 100,
          "到期日": 1700827842963,
          "未核销金额": 1050,
          "应付金额": 1050,
          "已核销金额": 0,
          "编号": "00000001"
        }],
        "应付明细": [{
          "税额": 120.8,
          "业务单据": "L-231124-001",
          "计价数量(选单)": 7,
          "未税合计": 929.2,
          "未税合计本位币": 929.2,
          "物料分类": "物料分类",
          "折扣额": 1049,
          "价税合计本位币": 1050,
          "含税单价": 150,
          "税率%": 13,
          "物料规格": "规格: AAA",
          "物料名称": "物料001",
          "折扣率%": 100,
          "开票金额": 0,
          "未税单价": 132.743363,
          "关联开票数量": 0,
          "计价单位": {
            "name": "PCS"
          },
          "已开票数量": 0,
          "价税合计": 1050,
          "编号": "00000002",
          "采购订单编号": "P-231110-001",
          "未开票数量": 7,
          "未关联开票数量": 7,
          "计价数量": 7,
          "物料编号": {
            "code": "code-001",
            "name": "物料001"
          }
        }]
      }
}

# 作废标准应付单

curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=ABANDON_PAYABLE_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"e1bfdc46-c566-44db-9d56-d03559f19b5c","businessType":5015,"data":{"标准应付单":{"税额":120.8,"币别":{"code":"CNY","field_7bf2h":"人民币"},"供应商名称":{"code":"Test-001","name":"新核云-001"},"付款状态":"NOT_STARTED","未税金额本位币":929.2,"价税合计本位币":1050,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"单据类型":"标准应付单","未税金额":929.2,"关联应付金额":1050,"应付单编号":"00000001","是否生成凭证":true,"已付款金额":0,"单据状态":"NOT_STARTED","汇率(隐藏)":1,"业务日期":1700496000000,"关联开票数量":0,"已开票数量":0,"未关联应付金额":0,"价税合计":1050,"汇率":1,"税额本位币":120.8,"开票状态":"NOT_STARTED","创建时间":1700827865413,"未开票数量":7,"未关联开票数量":7,"未付款金额":1050,"审核状态":"已审核"},"付款计划":[{"关联付款金额":1050,"应付金额本位币":1050,"父应付单编号-隐":"00000004","未关联应付金额":0,"应付比例%":100,"到期日":1700827842963,"未核销金额":1050,"应付金额":1050,"已核销金额":0,"应付金额本位币-隐":1050,"编号":"00000001","未核销金额本位币-隐":1050}],"应付明细":[{"税额":120.8,"业务单据":"L-231124-001","计价数量(选单)":7,"未税合计":929.2,"未税合计本位币":929.2,"物料分类":"物料分类","折扣额":1049,"价税合计本位币":1050,"含税单价":150,"税率%":13,"物料规格":"规格: AAA","物料名称":"物料001","折扣率%":100,"开票金额":0,"未税单价":132.743363,"选单类型(隐藏)":1,"关联开票数量":0,"计价单位":{"name":"PCS"},"已开票数量":0,"价税合计":1050,"编号":"00000002","采购订单编号":"P-231110-001","未开票数量":7,"未关联开票数量":7,"计价数量":7,"物料编号":{"code":"code-001","name":"物料001"}}]}}'

请求报文说明


{
  "requestId": "e1bfdc46-c566-44db-9d56-d03559f19b5c",
    "businessType": 5015,
    "data": {
      "标准应付单": {
        "税额": 120.8,
            "币别": {
              "code": "CNY",
              "field_7bf2h": "人民币"
        },
        "供应商名称": {
              "code": "Test-001",
              "name": "新核云-001"
        },
        "付款状态": "NOT_STARTED",
            "未税金额本位币": 929.2,
            "价税合计本位币": 1050,
            "本位币": {
              "code": "CNY",
              "field_7bf2h": "人民币"
        },
        "单据类型": "标准应付单",
        "未税金额": 929.2,
        "关联应付金额": 1050,
        "应付单编号": "00000001",
        "是否生成凭证": true,
        "已付款金额": 0,
        "单据状态": "NOT_STARTED",
        "汇率(隐藏)": 1,
        "业务日期": 1700496000000,
        "关联开票数量": 0,
        "已开票数量": 0,
        "未关联应付金额": 0,
        "价税合计": 1050,
        "汇率": 1,
        "税额本位币": 120.8,
        "开票状态": "NOT_STARTED",
        "创建时间": 1700827865413,
        "未开票数量": 7,
        "未关联开票数量": 7,
        "未付款金额": 1050,
        "审核状态": "已审核"
      },
      "付款计划": [{
        "关联付款金额": 1050,
        "应付金额本位币": 1050,
        "父应付单编号-隐": "00000004",
        "未关联应付金额": 0,
        "应付比例%": 100,
        "到期日": 1700827842963,
        "未核销金额": 1050,
        "应付金额": 1050,
        "已核销金额": 0,
        "编号": "00000001"
      }],
      "应付明细": [{
        "税额": 120.8,
        "业务单据": "L-231124-001",
        "计价数量(选单)": 7,
        "未税合计": 929.2,
        "未税合计本位币": 929.2,
        "物料分类": "物料分类",
        "折扣额": 1049,
        "价税合计本位币": 1050,
        "含税单价": 150,
        "税率%": 13,
        "物料规格": "规格: AAA",
        "物料名称": "物料001",
        "折扣率%": 100,
        "开票金额": 0,
        "未税单价": 132.743363,
        "关联开票数量": 0,
        "计价单位": {
          "name": "PCS"
        },
        "已开票数量": 0,
        "价税合计": 1050,
        "编号": "00000002",
        "采购订单编号": "P-231110-001",
        "未开票数量": 7,
        "未关联开票数量": 7,
        "计价数量": 7,
        "物料编号": {
          "code": "code-001",
          "name": "物料001"
        }
      }]
    }
}