eboekhouden
e-boekhouden.nl API
this package is heavily inspired by the existing package "eboekhoudenapi", written by Roel van den Boom.
"get sessioncode" and "get mutaties" are, with slight adaptions, take from this package.
This code can be pulled from pypi.org by installing the package "eboekhoudennl_api"
pip install eboekhoudennl_api
example code how to use the package is shown below
from eboekhoudennl_api import eboek
import logging
# to swith of Soap logging messages: "Forcing soap:address location to HTTPS"
logging.getLogger('zeep.wsdl.bindings.soap').setLevel(logging.ERROR)
(where username is your "Gebruikersnaam" with e-boekhouden.nl. SecurityCode1 and SecurityCode2 are the Beveiligingscode 1 and -2 you can enter here as a string)
Username = "myusername"
SecurityCode1 = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
SecurityCode2 = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX"
generate the session code
sessie1 = eboek.Eboek(Username, SecurityCode1, SecurityCode2)
print(sessie1.session_id)
use this session code to fetch data
get saldi
saldi_fin = eboek.Saldi(0,"2022-01-01","2022-03-31","VW")
saldi = sessie1.get_saldi(saldi_fin)
print(saldi)
get saldo
saldo_fin = eboek.Saldo("1020",0,"2001-01-01", "2022-08-19")
saldo = sessie1.get_saldo(saldo_fin)
print(saldo)
get grootboekrekeningen
lijst_grootboekrekeningen = eboek.Grootboekrekeningen(0,"","VW")
grootboekrekeningen = sessie1.get_grootboekrekeningen(lijst_grootboekrekeningen)
print(grootboekrekeningen)
get relaties
lijst_relaties = eboek.Relaties("","",0)
relaties = sessie1.get_relaties(lijst_relaties)
print(relaties)
get open posten
lijst_openposten = sessie1.get_openposten("Crediteuren")
print(lijst_openposten)
get mutaties
lijst_mutaties = eboek.Mutaties(0,0,99999,"", "2022-01-01","2022-03-31")
mutaties = sessie1.get_mutaties(lijst_mutaties)
print(mutaties)
get kostenplaatsen
lijst_kostenplaatsen = eboek.Kostenplaatsen(0,0,"")
kostenpl = sessie1.get_kostenplaatsen(lijst_kostenplaatsen)
print(kostenpl)
get facturen
lijst_facturen = eboek.Facturen("","","2022-01-01", "2022-03-31")
fact = sessie1.get_facturen(lijst_facturen)
print(fact)
get administraties
administratie = sessie1.get_administraties()
print(administratie)
adding transactions and master data
Master data
add relatie
rel = eboek.Relatie(0,"2022-03-30","Test","Testbedrijf","","","Straat","Postcode","Plaats","Land","Straat2","Postcode2","Plaats2","Land2", "Tel", "Gsm","","info@raylan.nl","","", "", "", "Dhr", "", "", "B","0", 0, 0, 0)
nieuwerelatie = sessie1.add_relatie(rel)
print(nieuwerelatie)
add grootboekrekening
grb = eboek.Grootboekrekening(0,"100T","Test rekening","BAL","")
nieuwerekening = sessie1.add_grootboekrekening(grb)
print(nieuwerekening)
Transactions
add mutatie
mut_nummer = sessie1.add_mutatie(eboek.Mutatie("Memoriaal","2021-03-24","1000","","","Test","","IN", [eboek.MutatieRegel("1000", "1000", "0", "1000", "0", "0", "0140", 0 )]))
Release files for eboekhoudennl-api 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eboekhoudennl_api-0.0.4.tar.gz | 8.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| eboekhoudennl_api-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / eboekhoudennl_api-0.0.4.tar.gz
| Download URL | eboekhoudennl_api-0.0.4.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7f30db7a14c46fad8c7fb6b162b35a2df5f89217b6d53f1166519555e2b10556
|
|
BLAKE2b-256 checksum How to use checksums |
46f7752c493359a1ce7f2d60d1f9e638c8f5fd36551453660c8a3bac1951829d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / eboekhoudennl_api-0.0.4-py3-none-any.whl
| Download URL | eboekhoudennl_api-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b02cc38648adb96c0e1aadcad453700b0cd5170bb64acecb355bf0ef2ae1e497
|
|
BLAKE2b-256 checksum How to use checksums |
fd4096ed8d1f8df226fc581d2f3fa30ef00ca106cf6926894e69548be7083e57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|