View Source VatchexGreece (VatchexGreece v0.5.1)

Documentation for VatchexGreece.

Link to this section Summary

Functions

Pull information from the web service. Note: the function sanitizes the requested VAT ID using VatchexGreece.Validate.minimize(), checks it using VatchexGreece.Validate.is_valid?() and only sends the request to the API if the minimized VAT ID is valid.

Link to this section Functions

Pull information from the web service. Note: the function sanitizes the requested VAT ID using VatchexGreece.Validate.minimize(), checks it using VatchexGreece.Validate.is_valid?() and only sends the request to the API if the minimized VAT ID is valid.

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