Invoicetronic API
Project description
Python SDK for the Invoicetronic API
The Invoicetronic API is a RESTful service that allows you to send and receive invoices through the Italian Servizio di Interscambio (SDI), or Interchange Service. The API is designed to be simple and easy to use, abstracting away SDI complexity while providing complete control over the invoice send/receive process. It provides advanced features as encryption at rest, multi-language pre-flight invoice validation, multiple upload formats, webhooks, event logging, client SDKs, and CLI tools.
For more information, see Invoicetronic website
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1
- Package version: 1.1.5
- Generator version: 7.18.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://invoicetronic.com
Requirements.
Python 3.9+
Installation & Usage
pip install
You can install our python package directly using:
pip install invoicetronic-sdk
(you may need to run pip with root permission: sudo pip install invoicetronic-sdk)
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/invoicetronic/python-sdk.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/invoicetronic/python-sdk.git)
Then import the package:
import invoicetronic_sdk
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import invoicetronic_sdk
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import invoicetronic_sdk
from invoicetronic_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.invoicetronic.com
# See configuration.py for a list of all supported configuration parameters.
configuration = invoicetronic_sdk.Configuration(
host = "https://api.invoicetronic.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure HTTP basic authorization: Basic
configuration = invoicetronic_sdk.Configuration(
username = os.environ["USERNAME"],
password = os.environ["PASSWORD"]
)
# Enter a context with an instance of the API client
with invoicetronic_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = invoicetronic_sdk.CompanyApi(api_client)
page = 1 # int | Page number. (optional) (default to 1)
page_size = 100 # int | Items per page. Cannot be greater than 200. (optional) (default to 100)
sort = 'sort_example' # str | Sort by field. Prefix with '-' for descending order. (optional)
try:
# List companies
api_response = api_instance.company_get(page=page, page_size=page_size, sort=sort)
print("The response of CompanyApi->company_get:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling CompanyApi->company_get: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| CompanyApi | company_get | GET /company | List companies |
| CompanyApi | company_id_delete | DELETE /company/{id} | Delete a company |
| CompanyApi | company_id_get | GET /company/{id} | Get a company by id |
| CompanyApi | company_post | POST /company | Add a company |
| CompanyApi | company_put | PUT /company | Update a company |
| LogApi | log_get | GET /log | List events |
| LogApi | log_id_get | GET /log/{id} | Get an event by id |
| ReceiveApi | receive_get | GET /receive | List incoming invoices |
| ReceiveApi | receive_id_delete | DELETE /receive/{id} | Delete an incoming invoice by id |
| ReceiveApi | receive_id_get | GET /receive/{id} | Get an incoming invoice by id |
| SendApi | send_file_post | POST /send/file | Add an invoice by file |
| SendApi | send_get | GET /send | List invoices |
| SendApi | send_id_get | GET /send/{id} | Get a invoice by id |
| SendApi | send_identifier_get | GET /send/{identifier} | Get a invoice by identifier |
| SendApi | send_json_post | POST /send/json | Add an invoice by json |
| SendApi | send_post | POST /send | Add an invoice |
| SendApi | send_validate_file_post | POST /send/validate/file | Validate an invoice file |
| SendApi | send_validate_json_post | POST /send/validate/json | Validate an invoice by json |
| SendApi | send_validate_post | POST /send/validate | Validate an invoice |
| SendApi | send_validate_xml_post | POST /send/validate/xml | Validate an invoice by xml |
| SendApi | send_xml_post | POST /send/xml | Add an invoice by xml |
| StatusApi | status_get | GET /status | Account status |
| UpdateApi | update_get | GET /update | List updates |
| UpdateApi | update_id_get | GET /update/{id} | Get an update by id |
| WebhookApi | webhook_get | GET /webhook | List webhooks |
| WebhookApi | webhook_id_delete | DELETE /webhook/{id} | Delete a webhook by id |
| WebhookApi | webhook_id_get | GET /webhook/{id} | Get a webhook by id |
| WebhookApi | webhook_post | POST /webhook | Add a webhook |
| WebhookApi | webhook_put | PUT /webhook | Update a webhook |
| WebhookApi | webhookhistory_get | GET /webhookhistory | List webhook history items |
| WebhookApi | webhookhistory_id_get | GET /webhookhistory/{id} | Get a webhook history item by id |
Documentation For Models
- Allegati
- AltriDatiGestionali
- Anagrafica
- CedentePrestatore
- CessionarioCommittente
- CodiceArticolo
- Company
- Contatti
- ContattiTrasmittente
- DatiAnagrafici
- DatiAnagraficiCedentePrestatore
- DatiAnagraficiCessionarioCommittente
- DatiAnagraficiVettore
- DatiBeniServizi
- DatiBollo
- DatiCassaPrevidenziale
- DatiContratto
- DatiConvenzione
- DatiDDT
- DatiFattureCollegate
- DatiGenerali
- DatiGeneraliDocumento
- DatiOrdineAcquisto
- DatiPagamento
- DatiRicezione
- DatiRiepilogo
- DatiRitenuta
- DatiSAL
- DatiTrasmissione
- DatiTrasporto
- DatiVeicoli
- DettaglioLinee
- DettaglioPagamento
- DocumentData
- Error
- Event
- FatturaElettronicaBody
- FatturaElettronicaHeader
- FatturaOrdinaria
- FatturaPrincipale
- IdFiscaleIVA
- IdTrasmittente
- IndirizzoResa
- IscrizioneREA
- ProblemDetails
- ProblemHttpResult
- RappresentanteFiscale
- RappresentanteFiscaleCessionarioCommittente
- Receive
- ScontoMaggiorazione
- SedeCedentePrestatore
- SedeCessionarioCommittente
- Send
- SendReduced
- StabileOrganizzazione
- Status
- TerzoIntermediarioOSoggettoEmittente
- Update
- WebHook
- WebHookHistory
Documentation For Authorization
Authentication schemes defined for the API:
Basic
- Type: HTTP basic authentication
Author
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
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 invoicetronic_sdk-1.1.5.tar.gz.
File metadata
- Download URL: invoicetronic_sdk-1.1.5.tar.gz
- Upload date:
- Size: 82.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9840eb374f9e4d78a78c1525130e450dd279596d63b20cfe09a89866f658317a
|
|
| MD5 |
1969934d1926b2d898a1f7e4b3b745f3
|
|
| BLAKE2b-256 |
2fda9a33192e9a0785cc42dcaeaf7429ea646cb18fea1bb0c4375da651b3d30e
|
Provenance
The following attestation bundles were made for invoicetronic_sdk-1.1.5.tar.gz:
Publisher:
release.yml on invoicetronic/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
invoicetronic_sdk-1.1.5.tar.gz -
Subject digest:
9840eb374f9e4d78a78c1525130e450dd279596d63b20cfe09a89866f658317a - Sigstore transparency entry: 799485304
- Sigstore integration time:
-
Permalink:
invoicetronic/python-sdk@613a69cf5e62a61ec169286658ab748e440b8bcb -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/invoicetronic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@613a69cf5e62a61ec169286658ab748e440b8bcb -
Trigger Event:
push
-
Statement type:
File details
Details for the file invoicetronic_sdk-1.1.5-py3-none-any.whl.
File metadata
- Download URL: invoicetronic_sdk-1.1.5-py3-none-any.whl
- Upload date:
- Size: 170.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab26d2c57fd74005cc573c1e3540fe9c9489e76a7497df767d02111c7c4fb174
|
|
| MD5 |
e7b61f918b8d36a2c2de55d96b778a86
|
|
| BLAKE2b-256 |
1c173a755880f32a176448a70eacb3f889b6673014b51655d28cce78c737419f
|
Provenance
The following attestation bundles were made for invoicetronic_sdk-1.1.5-py3-none-any.whl:
Publisher:
release.yml on invoicetronic/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
invoicetronic_sdk-1.1.5-py3-none-any.whl -
Subject digest:
ab26d2c57fd74005cc573c1e3540fe9c9489e76a7497df767d02111c7c4fb174 - Sigstore transparency entry: 799485361
- Sigstore integration time:
-
Permalink:
invoicetronic/python-sdk@613a69cf5e62a61ec169286658ab748e440b8bcb -
Branch / Tag:
refs/tags/v1.1.5 - Owner: https://github.com/invoicetronic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@613a69cf5e62a61ec169286658ab748e440b8bcb -
Trigger Event:
push
-
Statement type: