Skip to main content

发票 Python SDK 电子发票/数电发票/全电发票/数电票/开票

Project description

发票SDK

这是一个用于对接发票接口(数电发票)的java SDK,支持发票开具、红冲、查询等功能。 发票 Java SDK 电子发票/数电发票/全电发票/数电票/开票 基础

中文文档

  • 获取授权
  • 登录数电发票平台
  • 获取人脸二维码
  • 获取人脸二维码认证状态
  • 获取认证状态

发票开具

  • 数电蓝票开具接口
  • 获取销项数电版式文件

发票红冲

  • 申请红字前查蓝票信息接口
  • 申请红字信息表
  • 开负数发票

安装

通过pypi安装: pypi地址

pip install tax-invoice
from tax.invoice import InvoiceClient

# 初始化客户端
client = InvoiceClient(
app_key="YOUR_APP_KEY",
app_secret="YOUR_APP_SECRET",
base_url="https://api.fa-piao.com"
)

# 获取授权
result = client.auth.get_authorization(nsrsbh="915101820724315989")
print(result)

# 开具蓝票
invoice_data = {
"fplxdm": "81",
"kplx": "0",
"xhdwsbh": "915101820724315989",
"xhdwmc": "测试企业",
# ... 其他参数
}
result = client.invoice.issue_blue_invoice(**invoice_data)
print(result)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tax_invoice-1.0.7.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tax_invoice-1.0.7-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file tax_invoice-1.0.7.tar.gz.

File metadata

  • Download URL: tax_invoice-1.0.7.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tax_invoice-1.0.7.tar.gz
Algorithm Hash digest
SHA256 e0f36d44e496a83d9927c8108397f1decc9d7164fbece6d3a0df091a9ca83f69
MD5 2530fb363d1c7f31975815b6e92c5802
BLAKE2b-256 37fb2cabff5faa1abf68715e1672e91520668699a48824272e99c05929ebccaf

See more details on using hashes here.

File details

Details for the file tax_invoice-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: tax_invoice-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tax_invoice-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ed00fa44e09773c1b4cd9eeaf5d7adac15c64810dc67aed8ccfebd0ffc659b6e
MD5 890f3f94edd5bed01d32039756f4177a
BLAKE2b-256 e3f5352b0faae9c743b7aed687b9da5bc2c9c26a0861d56ea9e38d696147318b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page