Listo SDK module for web API integration
Project description
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))
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
listoapi-0.1.11.tar.gz
(778.1 kB
view hashes)
Built Distribution
listoapi-0.1.11-py3-none-any.whl
(783.8 kB
view hashes)
Close
Hashes for listoapi-0.1.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3724579577b3fe9e9b1df4b753667668b0f340d411d39d860e8c755d20ca6e7f |
|
MD5 | 13278c32fd75c4eb463c5d6bbd52c1bd |
|
BLAKE2b-256 | c78e79238c2a359ee3f4948934f0dcdfd97ff25765b71c8c03e8a8d44ead5d0b |