View Source VatchexGreece (VatchexGreece v0.6.0)

Documentation for VatchexGreece.

Link to this section Summary

Functions

Arity-2 version of get/4 that takes a keyword list or map as the second parameter.

Pull information from the web service for the target VAT ID afm_called_for. 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.

Unsafe version of get/2.

Link to this section Functions

Link to this function

get(afm_called_for, auth_settings)

View Source

Arity-2 version of get/4 that takes a keyword list or map as the second parameter.

Link to this function

get(afm_called_for, username, password, afm_called_by)

View Source

Pull information from the web service for the target VAT ID afm_called_for. 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.

You need to pass authentication parameters username, password and the source VAT ID afm_called_by as parameters.

examples

Examples

Typically, you will pass a valid 9-digit VAT ID, with or without the "EL" prefix:

get("123456783", ...) # valid (dummy) 9-digit VAT ID
get("EL123456783", ...) # ditto, with "EL" prefix that will get stripped

Older VAT IDs only have 8 digits, and will get leading-zero-padded to 9 digits:

get("11111067", ...) # valid (dummy) 8-digit VAT ID
Link to this function

get!(afm_called_for, auth_settings)

View Source

Unsafe version of get/2.

Link to this function

get!(afm_called_for, username, password, afm_called_by)

View Source

Unsafe version of get/4.