Python connector for the Iopole e-invoicing platform.
pip install iopole-apifrom iopoleapi.client import IopoleAPI
api = IopoleAPI(
client_id="YOUR_CLIENT_ID",
client_secret="YOUR_CLIENT_SECRET",
base_url="IOPOLE_BASE_URL",
auth_url="IOPOLE_AUTH_URL",
)
api.auth()| Method | Description |
|---|---|
auth() |
Obtain / refresh the OAuth2 access token |
send_invoice(path) |
Upload an invoice PDF; returns the Iopole invoice ID |
get_invoice(invoice_id) |
Download the invoice file as bytes |
get_invoice_metadata(invoice_id) |
Retrieve invoice metadata as a list |
get_enrollment_link(siren) |
Return the onboarding URL for a company |
get_electronic_addresses(siren) |
Return Peppol identifiers for a company |