View Source VatchexGreece (VatchexGreece v0.8.1)
Main module of VatchexGreece
that contains high-level functions that the
user typically will interact with.
Link to this section Summary
Functions
Pull information from the web service for the target VAT ID :afm_called_for
, by the source VAT ID :afm_called_by
, with authentication parameters :username
and :password
.
Same as VatchexGreece.fetch/1
, but the resulting tuple is unwrapped. Returns nil
if there were errors, otherwise it returns the resulting data.
Define a new struct that will be manipulated from containing only the minimal information required to query the SOAP API, to containing the complete request, the SOAP API response, and the parsed information thereof into the corresponding structs.
Link to this section Functions
Pull information from the web service for the target VAT ID :afm_called_for
, by the source VAT ID :afm_called_by
, with authentication parameters :username
and :password
.
To create the authentication credentials:
- Sign up to the "wspublicreg" service using your TAXISnet credentials.
- Create "special access codes" through the "Διαχείριση Ειδικών Κωδικών" application on TAXISnet.
Regarding the target and source VAT IDs, you will typically pass a valid 9-digit VAT ID, with or without the "EL" prefix. The "EL" prefix will get stripped. Older VAT IDs only have 8 digits, and will get leading-zero-padded to 9 digits.
Note: the function minimizes and checks the source and target VAT IDs, and only sends the request to the API if both minimized VAT IDs are valid.
Same as VatchexGreece.fetch/1
, but the resulting tuple is unwrapped. Returns nil
if there were errors, otherwise it returns the resulting data.
Pull information from the web service for the target VAT ID afm_called_for
defined in the Results
struct that has first been created with new/4
.
Note: the function minimizes and checks the source and target VAT IDs, and only sends the request to the API if both minimized VAT IDs are valid.
new(afm_called_for, username, password, afm_called_by)
View Source (since 0.8.0)Define a new struct that will be manipulated from containing only the minimal information required to query the SOAP API, to containing the complete request, the SOAP API response, and the parsed information thereof into the corresponding structs.