发票 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
Release history Release notifications | RSS feed
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed333c767d3110bdb52039bed9a061bf51707456e88a49ff247c8b4ee3340387
|
|
| MD5 |
9f311e2e601fec9711401c33c34be88d
|
|
| BLAKE2b-256 |
2790ff5aafd3aa74d629d17d7267acc33a00c709ef5877e45c6680cd9fa35609
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b3eb977e35783bdca1c060fd5cd53d62404ae1f8d7a7a9d586a2c4b21f3558e
|
|
| MD5 |
67821ef1feae6fb431b8b18092b0e66c
|
|
| BLAKE2b-256 |
f53934b129ce68fd6fa377abcd9bca340fa04a2557e34f429eba56efbfdbf0c0
|