vies 2.0.0 copy "vies: ^2.0.0" to clipboard
vies: ^2.0.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(
      countryCode: 'BE',
      vatNumber: '1000341796',
      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
0
points
361
downloads

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

unknown (license)

Dependencies

http

More

Packages that depend on vies