Skip to main content

uv Ruff Checked with mypy pypi Downloads

img

iopole-api

Python connector for the Iopole e-invoicing platform.

Installation

pip install iopole-api

Quick start 🔧

from iopole_api.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()

Available methods

Authentication

Method Description
auth() Obtain / refresh the OAuth2 access token

Invoices

Method Description
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_invoice_status_history(invoice_id) Full status history of an invoice (low rate limit)
send_invoice_payment_status(uuid_presta, amount, …) Notify Iopole that an invoice has been paid

Companies

Method Description
get_enrollment_link(siren) Return the onboarding URL for a company
get_electronic_addresses(siren) Return Peppol identifiers for a company

E-reporting

Method Description
send_report_flux_10_1(report, siren) Flux 10.1: one B2B international invoice / credit note
send_report_flux_10_3(report, siren) Flux 10.3: daily summary of B2C transactions

report is built with the ReportFlux10_1 / ReportFlux10_3 dataclasses of iopole_api.models.dataclasses and passed as report.to_dict(). Both methods return the transactionId given by Iopole. The transaction is then validated asynchronously, through the EREPORTING_TRANSACTION_ATTACHED / EREPORTING_ERROR webhook events.

from iopole_api import IopoleApiException, IopoleMissingIdException

try:
    transaction_id = api.send_report_flux_10_3(report.to_dict(), siren="123456789")
except IopoleMissingIdException:
    ...  # accepted by Iopole but no transactionId returned: do NOT send it again
except IopoleApiException:
    ...  # refused by Iopole: can be sent again once fixed

Errors

Exception Raised when
IopoleApiException Iopole returns an HTTP error (status_code holds the HTTP code)
IopoleMissingIdException Iopole accepts an e-reporting transaction without returning its id

Metadata

Release files for iopole-api 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iopole-api 1.0.2
File Size Uploaded Provenance Actions
iopole_api-1.0.2.tar.gz 10.8 kB Without provenance Details for iopole_api-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for iopole-api 1.0.2
File Interpreter ABI Platform Actions
iopole_api-1.0.2-py3-none-any.whl Python 3 none any Details for iopole_api-1.0.2-py3-none-any.whl

Total release size: 26.9 kB

Release files / iopole_api-1.0.2.tar.gz

Download URL iopole_api-1.0.2.tar.gz
Size 10.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f6479c5badcbb6b3d980658fd09433ca0038ac438bac0b0a9d73a6d6d58cf4b5
BLAKE2b-256 checksum
How to use checksums
14dc6cb478e6ddcf82d5be5cb038e8e255a987e0e1f7294efcc37e9c619cf659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / iopole_api-1.0.2-py3-none-any.whl

Download URL iopole_api-1.0.2-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b7cbaa3640c05317f2d391ea362c071cb38e3d890613d2ccf73ab588b848068
BLAKE2b-256 checksum
How to use checksums
62722321361dcc8652ab81e3c3a15dbe5e65e2f86c0e07972b53bb1d88cb2334
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for iopole-api 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page