票据拆分接口

接口说明

  • url: /common/invoice/split
  • method: POST
  • 数据格式: JSON
  • 描述: 拆分接口按照标准产品的拆分规则做校验,支持全拆和部分拆票据.

请求参数

参数名 类型 必填 说明
bizId String Y
timestamp Long Y 十五位时间戳
expense_id List Y 需要拆分的消费记录id
receipt_id List N 需要单独拆分的票据id

响应参数

字段名称 字段类型 字段描述
bizId String 业务唯一识别码
resCode Integer 响应码 (200000代表处理成功)
resMsg String 错误信息 (响应码不为200000时返回错误信息)
data Object 拆分成功后的消费记录数据票据信息批量查询 (响应码为200000时返回)

请求参数示例

{
  "bizId": "adc40wde-2fb6-49a8-9a91-9fz69fd0z578",
  "timestamp" : 1597910515274,
  "expense_id": [387252788]
}

响应参数示例

拆分成功时响应参数

{
  "resCode": 200000,
  "resMsg": "SUCCESS",
  "bizId": "adc40wde-2fb6-49a8-9a91-9fz69fd0z578",
  "data": [
    {
      "receipt_id": 5174356,
      "source_file": "Y",
      "invoice_type": "21",
      "invoice_status": "Y",
      "company_id": 21774,
      "expense_id": 387252794,
      "invoice_num": "25372000000083995263",
      "invoice_serial": "",
      "amount": 140.00,
      "net_amount": 138.61,
      "currency": "CNY",
      "tax_amount": 1.39,
      "receipt_date": 1743350400000,
      "buyer_name": "江苏科信医药销售有限公司",
      "buyer_tax_code": "9132070076512585XH",
      "seller_name": "济南槐荫渝典老火锅店(个体工商户)",
      "seller_tax_code": "92370104MADC36PA52",
      "submit_user": "yrhch500",
      "created_by": "yrhch500",
      "status": 0,
      "creation_date": 1747710708000,
      "last_update_date": 1747994871000,
      "digital_attachments_status": "N",
      "digital_attachments_message": "税号未开通此能力,请开通后重试"
    },
    {
      "receipt_id": 5174369,
      "source_file": "Y",
      "invoice_type": "21",
      "invoice_status": "Y",
      "company_id": 21774,
      "expense_id": 387252795,
      "invoice_num": "25112000000067911671",
      "invoice_serial": "",
      "amount": 60.00,
      "net_amount": -56.6,
      "currency": "CNY",
      "accumulation_type_id": -1,
      "tax_amount": -3.4,
      "receipt_date": 1743696000000,
      "buyer_name": "康希诺生物股份公司",
      "buyer_tax_code": "91120116681888972M",
      "seller_name": "北京数字认证股份有限公司",
      "seller_tax_code": "91110108722619411A",
      "submit_user": "yrhch500",
      "created_by": "yrhch500",
      "status": 0,
      "creation_date": 1747893721000,
      "last_update_date": 1747994871000,
      "digital_attachments_status": "N",
      "digital_attachments_message": "税号未开通此能力,请开通后重试"
    },
    {
      "receipt_id": 5174370,
      "source_file": "Y",
      "invoice_type": "21",
      "invoice_status": "Y",
      "company_id": 21774,
      "expense_id": 387252796,
      "invoice_num": "25117000000597058545",
      "invoice_serial": "",
      "amount": 300.00,
      "net_amount": 265.48,
      "currency": "CNY",
      "tax_amount": 34.52,
      "receipt_date": 1745337600000,
      "buyer_name": "北京北斗星通导航技术股份有限公司 ",
      "buyer_tax_code": "91110000802017541K",
      "seller_name": "北京盒马网络科技有限公司",
      "seller_tax_code": "91110000MA005C760W",
      "submit_user": "yrhch500",
      "created_by": "yrhch500",
      "status": 0,
      "creation_date": 1747894564000,
      "last_update_date": 1747994871000,
      "digital_attachments_status": "N",
      "digital_attachments_message": "税号未开通此能力,请开通后重试"
    }
  ]
}

拆分合失败时响应参数

{
    "resCode": 500000,
    "resMsg": "expenseId与receiptId集合不能全部为空;"
}

results matching ""

    No results matching ""