Viex v0.2.0 Viex View Source

Look up and validate European VAT numbers.

Link to this section Summary

Functions

Look up a European VAT number. Accepts a binary, returns a Viex.Response struct. Optionally accepts a requester_vat options that needs the VAT number of the entity the request is made on behalf of. It returns a Viex.ApproxResponse in that case

Check the validity of a European VAT number. Accepts a binary, returns a boolean

Link to this section Functions

Link to this function lookup(vat_number, opts \\ []) View Source
lookup(String.t(), [{:requester_vat, String.t() | nil}]) ::
  map() | {:error, String.t()}

Look up a European VAT number. Accepts a binary, returns a Viex.Response struct. Optionally accepts a requester_vat options that needs the VAT number of the entity the request is made on behalf of. It returns a Viex.ApproxResponse in that case

Link to this function valid?(vat_number, opts \\ []) View Source
valid?(String.t(), [{:requester_vat, String.t() | nil}]) :: boolean()

Check the validity of a European VAT number. Accepts a binary, returns a boolean.