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.6.tar.gz (6.3 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.6-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tax_invoice-1.0.6.tar.gz
  • Upload date:
  • Size: 6.3 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.6.tar.gz
Algorithm Hash digest
SHA256 ed333c767d3110bdb52039bed9a061bf51707456e88a49ff247c8b4ee3340387
MD5 9f311e2e601fec9711401c33c34be88d
BLAKE2b-256 2790ff5aafd3aa74d629d17d7267acc33a00c709ef5877e45c6680cd9fa35609

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tax_invoice-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2b3eb977e35783bdca1c060fd5cd53d62404ae1f8d7a7a9d586a2c4b21f3558e
MD5 67821ef1feae6fb431b8b18092b0e66c
BLAKE2b-256 f53934b129ce68fd6fa377abcd9bca340fa04a2557e34f429eba56efbfdbf0c0

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