开放平台API
  1. 销项数据
开放平台API
  • 海关数据
    • 出口报关单获取接口
      POST
    • 进口报关单获取接口
      POST
    • 进口税单获取接口
      POST
    • 保证金获取接口
      POST
    • 海关编码获取接口
      POST
    • 退税商品编码获取接口
      POST
    • 下载任务状态查询
      POST
    • 导入xml出口报关单
      POST
  • 进项数据
    • 进项发票获取接口
      POST
    • 进项发票查验接口
      POST
    • 进项异常发票获取接口
      POST
    • 进项票据OCR识别接口
      POST
  • 销项数据
    • 销项发票申请接口
      POST
    • 销项发票获取接口
      POST
    • 销项发票红冲接口
      POST
    • 销项发票作废接口
      POST
    • 记账凭证回推接口-XINVOICE.DBACK
      POST
  • 退税数据
    • 生产企业
    • 外贸企业
      • 免退税申报-外贸
        • 自检申报
        • 正式申报
      • 退税申报批次-汇总数据申请下载接口
      • 退税申报批次-汇总数据查询(下载完成后调用)
      • 自检状态查询
    • 单证申报
      • 单证申报
      • 其他申报
    • 退税申报批次申请下载接口
      POST
    • 退税申报批次数据获取接口
      POST
    • 已申报批次基本信息获取接口
      POST
  • 企业数据
    • 企业信息获取接口
      POST
    • 是否一般纳税人查询接口
      POST
    • 税局违法企业获取接口
      POST
    • 企业财税数据获取接口
      POST
    • 企业开通申请接口
      POST
    • 企业开通申请结果获取接口
      POST
    • 企业备案信息申请下载接口
      POST
    • 企业备案信息结果获取接口
      POST
    • 企业开通申请接口WEB版
      POST
    • 渠道关联企业-续期接口WEB版
      POST
    • 添加/更新企业用户
      POST
  • 开票服务
    • 登录电票平台接口
    • 获取是否需要人脸识别接口
    • 获取人脸识别二维码接口
  • 其他数据服务
    • 汇率查询
    • 查询海关商品编码
    • 退税文库商品编码查询
  1. 销项数据

记账凭证回推接口-XINVOICE.DBACK

POST
/post/rest/xinvoice/dii
接口编码:XINVOICE.DBACK
推送销项发票信息及记账凭证, 记账日期等信息

请求参数

Body 参数application/json

示例
{
    "authorize": {
        "appSecId": "36",
        "appSec": "qui dolore"
    },
    "globalInfo": {
        "appId": "48",
        "version": "in consectetur",
        "interfaceCode": "91",
        "enterpriseCode": "35",
        "dataExchangeId": "15"
    },
    "data": "W3siZmhyIjoi5rWL6K+V5Lq65ZGYIiwiZG5vIjoiMTIzNDU2Nzg5MDEyMTIiLCJyZW1hcmsiOiLmtYvor5XlvIDnpagiLCJmcEx4IjoiMCIsInNrciI6Iua1i+ivleS6uuWRmCIsImRldGFpbExpc3QiOlt7InNsIjoiMC4wNiIsInVuaXQiOiLkuKoiLCJjbWdneGgiOiLmtYvor5Xop4TmoLzlnovlj7cxIiwiamUiOiIxMCIsInByaSI6IjEiLCJjbW5hbWUiOiLmtYvor5XllYblk4ExIiwiaE5vIjoiMSIsInFudCI6IjEwIiwiY21jb2RlIjoiMTExMTExMTEiLCJzZSI6IjAuNiJ9LHsic2wiOiIwLjA2IiwidW5pdCI6IuS4qiIsImNtZ2d4aCI6Iua1i+ivleinhOagvOWei+WPtzEiLCJqZSI6IjEwIiwicHJpIjoiMSIsImNtbmFtZSI6Iua1i+ivleWVhuWTgTEiLCJoTm8iOiIxIiwicW50IjoiMTAiLCJjbWNvZGUiOiIxMTExMTExMSIsInNlIjoiMC42In1dLCJnZmFjYyI6IjExMTExMTExMTExMTExMTEiLCJnZmFkZCI6IuWMl+S6rOa1t+a3gOe0q+eruemZoiIsInRheEZsYWciOiIxIiwia3ByIjoi5rWL6K+V5Lq65ZGYIiwiZ2ZtYyI6IuWMl+S6rOWuh+W3neenkeaKgOaciemZkOWFrOWPuCIsImdma2hoIjoi5YyX5Lqs5oub5ZWG6ZO26KGMIiwiZ2ZwaG9uZSI6IjEyMzQ1Njc4ODkiLCJzcXJxIjoiMjAxOC0wOC0wNCIsImdmc3dzYmgiOiIxMTExMTExMTExMTExIn1d"
}
//,
[
    {
        "fpLx": "0",
        "fhr": "测试人员",
        "dno": "12345678901212",
        "remark": "测试开票",
        "skr": "测试人员",
        "detailList": [
            {
                "sl": "0.06",
                "unit": "个",
                "cmggxh": "测试规格型号1",
                "je": "10",
                "pri": "1",
                "cmname": "测试商品1",
                "hNo": "1",
                "qnt": "10",
                "cmcode": "11111111",
                "se": "0.6"
            },
            {
                "sl": "0.06",
                "unit": "个",
                "cmggxh": "测试规格型号1",
                "je": "10",
                "pri": "1",
                "cmname": "测试商品1",
                "hNo": "1",
                "qnt": "10",
                "cmcode": "11111111",
                "se": "0.6"
            }
        ],
        "gfacc": "1111111111111111",
        "gfadd": "北京海淀紫竹院",
        "taxFlag": "1",
        "kpr": "测试人员",
        "gfmc": "北京宇川科技有限公司",
        "gfkhh": "北京招商银行",
        "gfphone": "1234567889",
        "sqrq": "2018-08-04",
        "gfswsbh": "1111111111111"
    }
]

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://117.78.0.163/51GP/post/rest/xinvoice/dii' \
--header 'Content-Type: application/json' \
--data-raw '{
    "authorize": {
        "appSecId": "36",
        "appSec": "qui dolore"
    },
    "globalInfo": {
        "appId": "48",
        "version": "in consectetur",
        "interfaceCode": "91",
        "enterpriseCode": "35",
        "dataExchangeId": "15"
    },
    "data": "W3siZmhyIjoi5rWL6K+V5Lq65ZGYIiwiZG5vIjoiMTIzNDU2Nzg5MDEyMTIiLCJyZW1hcmsiOiLmtYvor5XlvIDnpagiLCJmcEx4IjoiMCIsInNrciI6Iua1i+ivleS6uuWRmCIsImRldGFpbExpc3QiOlt7InNsIjoiMC4wNiIsInVuaXQiOiLkuKoiLCJjbWdneGgiOiLmtYvor5Xop4TmoLzlnovlj7cxIiwiamUiOiIxMCIsInByaSI6IjEiLCJjbW5hbWUiOiLmtYvor5XllYblk4ExIiwiaE5vIjoiMSIsInFudCI6IjEwIiwiY21jb2RlIjoiMTExMTExMTEiLCJzZSI6IjAuNiJ9LHsic2wiOiIwLjA2IiwidW5pdCI6IuS4qiIsImNtZ2d4aCI6Iua1i+ivleinhOagvOWei+WPtzEiLCJqZSI6IjEwIiwicHJpIjoiMSIsImNtbmFtZSI6Iua1i+ivleWVhuWTgTEiLCJoTm8iOiIxIiwicW50IjoiMTAiLCJjbWNvZGUiOiIxMTExMTExMSIsInNlIjoiMC42In1dLCJnZmFjYyI6IjExMTExMTExMTExMTExMTEiLCJnZmFkZCI6IuWMl+S6rOa1t+a3gOe0q+eruemZoiIsInRheEZsYWciOiIxIiwia3ByIjoi5rWL6K+V5Lq65ZGYIiwiZ2ZtYyI6IuWMl+S6rOWuh+W3neenkeaKgOaciemZkOWFrOWPuCIsImdma2hoIjoi5YyX5Lqs5oub5ZWG6ZO26KGMIiwiZ2ZwaG9uZSI6IjEyMzQ1Njc4ODkiLCJzcXJxIjoiMjAxOC0wOC0wNCIsImdmc3dzYmgiOiIxMTExMTExMTExMTExIn1d"
}
//,
[
    {
        "fpLx": "0",
        "fhr": "测试人员",
        "dno": "12345678901212",
        "remark": "测试开票",
        "skr": "测试人员",
        "detailList": [
            {
                "sl": "0.06",
                "unit": "个",
                "cmggxh": "测试规格型号1",
                "je": "10",
                "pri": "1",
                "cmname": "测试商品1",
                "hNo": "1",
                "qnt": "10",
                "cmcode": "11111111",
                "se": "0.6"
            },
            {
                "sl": "0.06",
                "unit": "个",
                "cmggxh": "测试规格型号1",
                "je": "10",
                "pri": "1",
                "cmname": "测试商品1",
                "hNo": "1",
                "qnt": "10",
                "cmcode": "11111111",
                "se": "0.6"
            }
        ],
        "gfacc": "1111111111111111",
        "gfadd": "北京海淀紫竹院",
        "taxFlag": "1",
        "kpr": "测试人员",
        "gfmc": "北京宇川科技有限公司",
        "gfkhh": "北京招商银行",
        "gfphone": "1234567889",
        "sqrq": "2018-08-04",
        "gfswsbh": "1111111111111"
    }
]'

返回响应

🟢200成功
application/json
Body

示例
{
    "returnStateInfo": {
        "returnCode": "0000",
        "returnMessage": "处理成功"
    }
}
修改于 2024-09-26 08:17:58
上一页
销项发票作废接口
下一页
自检申报
Built with