Install
pip install listoapi
Documentation
Complete documentation can be found at https://apidocs.listo.mx/.
Start
from listoapi import ListoApi
api = ListoApi("your_listo_token")
Search invoices
invoice = next(api.Invoices.search(uuid="00112233-4455-6677-8899-AABBCCDDEEFF"))
or
for invoice in api.Invoices.search(issued_on="m:2018-05-01T00:00:00"):
# Your code
Full details of invoice
api.Invoices.details(invoice['id'])
Add or delete payments
api.Invoices.add_payment(invoice['id'], bank_account=1234, amount=200, amount_mxn=200,
effective_on=""2018-07-24T00:00:00)
api.Invoices.delete_payments(invoice['id'])
Generate invoice
api = ListoApi("your_listo_token", "path/to/cer/file.cer", "path/to/key/file.key", "key_password")
generation_data = [{...}]
res, certification_data, original_chain = next(api.Invoicing.generate(generation_data, staging=False, certify=True))
Release files for listoapi 0.1.78
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| listoapi-0.1.78.tar.gz | 784.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| listoapi-0.1.78-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.6 MB
Release files / listoapi-0.1.78.tar.gz
| Download URL | listoapi-0.1.78.tar.gz |
|---|---|
| Size | 784.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fac601aa0d2ee03fa98d7f9d6e3e918a4500fdda44408d484f34fd4d0673781
|
|
BLAKE2b-256 checksum How to use checksums |
129710ba9528d0edb24a9d6cdeadd7a09d064319474bd12446ce7e76da7129e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / listoapi-0.1.78-py3-none-any.whl
| Download URL | listoapi-0.1.78-py3-none-any.whl |
|---|---|
| Size | 792.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9778fc3c2cf131e175c6e6506051c2afcf61702f2e06db69497d3aba7bc1ec4c
|
|
BLAKE2b-256 checksum How to use checksums |
d2970665fabf34142097cbab73cb426ce40ac2f86b0ddc41b120503a277a55e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|