# 其他应付单

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

# 创建其他应付单

curl 示例请求:

curl --request POST \
  --url 'http://${yourhost}/${yourpath}?businessType=CREATE_OTHER_PAYABLE_DOC' \
  --header 'content-type: application/json' \
  --data '{"requestId":"37158dac-d368-46a9-9973-257ef2f193b6","businessType":5016,"data":{"其他应付单":{"税额":130,"币别":{"code":"CNY","field_7bf2h":"人民币"},"供应商名称":{"code":"RV0433","name":"上海明殷贸易有限公司"},"币别汇率(关联字段)":1,"付款状态":"NOT_STARTED","未税金额本位币":1000,"价税合计本位币":1130,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"单据类型":"其他应付单","未税金额":1000,"关联应付金额":0,"应付单编号":"00000003","到期日":1700829722505,"已付款金额":0,"未付款金额本位币":1130,"单据状态":"NOT_STARTED","应付金额本位币":1130,"业务日期":1700829722505,"未关联应付金额":1130,"价税合计":1130,"汇率":1,"已付款金额本位币":0,"是否生产凭证":true,"税额本位币":130,"页面创建标志":0,"创建时间":1700829906052,"未付款金额":1130,"审核状态":"待提交"},"应付明细":[{"税额":130,"税率%":13,"发票类型":"普通发票","未税合计":1000,"物料名称":"物料001","价税合计":1130,"费用项目名称":"其他","未税合计本位币":1000,"物料分类":"分类1","费用项目编码":"00000003","价税合计本位币":1130,"物料编号":{"name":"物料001","code":"Test-001"}}]}}'

请求报文说明

{
  "requestId": "37158dac-d368-46a9-9973-257ef2f193b6",
      "businessType": 5016,
      "data": {
        "其他应付单": {
          "税额": 130,
              "币别": {
                "code": "CNY",
                "field_7bf2h": "人民币"
          },
          "供应商名称": {
                "code": "RV0433",
                "name": "上海明殷贸易有限公司"
          },
          "币别汇率(关联字段)": 1,
              "付款状态": "NOT_STARTED",
              "未税金额本位币": 1000,
              "价税合计本位币": 1130,
              "本位币": {
                "code": "CNY",
                "field_7bf2h": "人民币"
          },
          "单据类型": "其他应付单",
          "未税金额": 1000,
          "关联应付金额": 0,
          "应付单编号": "00000003",
          "到期日": 1700829722505,
          "已付款金额": 0,
          "未付款金额本位币": 1130,
          "单据状态": "NOT_STARTED",
          "应付金额本位币": 1130,
          "业务日期": 1700829722505,
          "未关联应付金额": 1130,
          "价税合计": 1130,
          "汇率": 1,
          "已付款金额本位币": 0,
          "是否生产凭证": true,
          "税额本位币": 130,
          "页面创建标志": 0,
          "创建时间": 1700829906052,
          "未付款金额": 1130,
          "审核状态": "待提交"
        },
        "应付明细": [{
          "税额": 130,
          "税率%": 13,
          "发票类型": "普通发票",
          "未税合计": 1000,
          "物料名称": "物料001",
          "价税合计": 1130,
          "费用项目名称": "其他",
          "未税合计本位币": 1000,
          "物料分类": "分类1",
          "费用项目编码": "00000003",
          "价税合计本位币": 1130,
          "物料编号": {
            "name": "物料001",
            "code": "Test-001"
          }
        }]
      }
}

# 作废其他应付单

curl --request POST \
--url 'http://${yourhost}/${yourpath}?businessType=ABANDON_OTHER_PAYABLE_DOC' \
--header 'content-type: application/json' \
--data '{"requestId":"37158dac-d368-46a9-9973-257ef2f193b6","businessType":5018,"data":{"其他应付单":{"税额":130,"币别":{"code":"CNY","field_7bf2h":"人民币"},"供应商名称":{"code":"RV0433","name":"上海明殷贸易有限公司"},"币别汇率(关联字段)":1,"付款状态":"NOT_STARTED","未税金额本位币":1000,"价税合计本位币":1130,"本位币":{"code":"CNY","field_7bf2h":"人民币"},"单据类型":"其他应付单","未税金额":1000,"关联应付金额":0,"应付单编号":"00000003","到期日":1700829722505,"已付款金额":0,"未付款金额本位币":1130,"单据状态":"NOT_STARTED","应付金额本位币":1130,"业务日期":1700829722505,"未关联应付金额":1130,"价税合计":1130,"汇率":1,"已付款金额本位币":0,"是否生产凭证":true,"税额本位币":130,"页面创建标志":0,"创建时间":1700829906052,"未付款金额":1130,"审核状态":"待提交"},"应付明细":[{"税额":130,"税率%":13,"发票类型":"普通发票","未税合计":1000,"物料名称":"物料001","价税合计":1130,"费用项目名称":"其他","未税合计本位币":1000,"物料分类":"分类1","费用项目编码":"00000003","价税合计本位币":1130,"物料编号":{"name":"物料001","code":"Test-001"}}]}}'

请求报文说明


{
  "requestId": "37158dac-d368-46a9-9973-257ef2f193b6",
    "businessType": 5018,
    "data": {
      "其他应付单": {
        "税额": 130,
            "币别": {
              "code": "CNY",
              "field_7bf2h": "人民币"
        },
        "供应商名称": {
              "code": "RV0433",
              "name": "上海明殷贸易有限公司"
        },
        "币别汇率(关联字段)": 1,
        "付款状态": "NOT_STARTED",
        "未税金额本位币": 1000,
        "价税合计本位币": 1130,
        "本位币": {
          "code": "CNY",
          "field_7bf2h": "人民币"
        },
        "单据类型": "其他应付单",
        "未税金额": 1000,
        "关联应付金额": 0,
        "应付单编号": "00000003",
        "到期日": 1700829722505,
        "已付款金额": 0,
        "未付款金额本位币": 1130,
        "单据状态": "NOT_STARTED",
        "应付金额本位币": 1130,
        "业务日期": 1700829722505,
        "未关联应付金额": 1130,
        "价税合计": 1130,
        "汇率": 1,
        "已付款金额本位币": 0,
        "是否生产凭证": true,
        "税额本位币": 130,
        "页面创建标志": 0,
        "创建时间": 1700829906052,
        "未付款金额": 1130,
        "审核状态": "待提交"
      },
      "应付明细": [{
        "税额": 130,
        "税率%": 13,
        "发票类型": "普通发票",
        "未税合计": 1000,
        "物料名称": "物料001",
        "价税合计": 1130,
        "费用项目名称": "其他",
        "未税合计本位币": 1000,
        "物料分类": "分类1",
        "费用项目编码": "00000003",
        "价税合计本位币": 1130,
        "物料编号": {
          "name": "物料001",
          "code": "Test-001"
        }
      }]
    }
}