vies 2.1.0 copy "vies: ^2.1.0" to clipboard
vies: ^2.1.0 copied to clipboard

VIES (VAT Information Exchange System) client for Dart. Validates European VAT numbers and retrieves the business information published by the EU service.

example/vies_example.dart

// ignore_for_file: avoid_print

import 'package:vies/vies.dart';

Future<void> main() async {
  try {
    final response = await ViesProvider.validateVat(
      vatNumber: 'BE1000341796',
      timeout: const Duration(seconds: 15),
      retries: 2,
    );
    print('Valid VAT for ${response.name}');
    print('Address: ${response.address}');
    print('Checked at: ${response.requestDateTime}');
  } on ViesClientError catch (e) {
    print('Client error [${e.code.wireName}]: ${e.message}');
  } on ViesServerError catch (e) {
    print('Server error [${e.code.wireName}]: ${e.message}');
  }
}
4
likes
160
points
314
downloads

Documentation

API reference

Publisher

verified publishercomapps.be

Weekly Downloads

VIES (VAT Information Exchange System) client for Dart. Validates European VAT numbers and retrieves the business information published by the EU service.

Homepage
Repository (GitHub)
View/report issues

Topics

#vat #vies #validation #tax #eu

License

MIT (license)

Dependencies

http

More

Packages that depend on vies