Veriport: EU VAT number, IBAN, VAT rates and e-invoice checks

v0.1.1
io.veriport/veriport Checked 9 hours ago Published 20 days ago

EU VAT numbers on VIES, IBANs, French companies, Peppol IDs, EU VAT rates and e-invoice validation.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

validate_vat Validate an EU VAT number on VIES

Checks the structure and the national check digit, then asks the European Commission’s VIES whether the number is registered for intra-EU trade. Returns valid, the registered name and address where published, the date, and the provenance (source.kind: live, cache or structure_only; source.stale true when the member state did not answer and a dated cached answer was served). With requester (your own VAT number) and a paid key, returns the VIES consultation number. Greece is EL, Northern Ireland XI; GB is not in VIES.

ParameterTypeDescription
number *stringThe VAT number, with or without the two-letter prefix, spaces or dots allowed (e.g. "DE136695976").
countrystringTwo-letter member-state code when the number has no prefix.
recordbooleanKeep this validation as a stored record on the account (paid tiers).
requesterstringYour own EU VAT number, to obtain a VIES consultation number (paid tiers).

validate_iban Validate an IBAN

Checks an IBAN the way a payment system does: characters, country, the length the ISO 13616 registry sets, the mod 97-10 check digits, the national BBAN structure. Returns the five checks, the failed rules, the bank and branch identifiers where the registry defines them, and whether the country is in the SEPA schemes. It does not say whether the account exists or who owns it.

ParameterTypeDescription
iban *stringThe IBAN, spaces allowed.

vat_rate EU VAT rates of a member state

The standard, reduced, super-reduced and parking VAT rates of one EU member state, the rate for seven usual categories (digital services, e-books, printed books, foodstuffs, hotel accommodation, restaurant, newspapers), the day the row was verified and the official sources it was read from. Without a country, the rate of one category across the 27 states.

ParameterTypeDescription
categorystringWith no country: one category for every member state.
countrystringTwo-letter member-state code (Greece is EL). Omit to get every state.

validate_einvoice Validate an e-invoice against the official rules

Checks an e-invoice (XRechnung 3.0 UBL or CII, Peppol BIS Billing 3.0, EN 16931 / Factur-X / ZUGFeRD CII, or a ZUGFeRD / Factur-X hybrid PDF) with the XML schema and the official schematron of its profile: CEN EN 16931 1.3.16, XRechnung 3.0.2, Peppol BIS 3.0.21. Returns valid, the profile and syntax, the errors and warnings with the published rule ids (BR-*, BR-DE-*, PEPPOL-*) and their XPath. Give the XML as text in `xml`, or a PDF as base64 in `pdf_base64`. 5 calls per check (4 a day without a key). Does not send the invoice anywhere and does not store it; not tax advice.

ParameterTypeDescription
pdf_base64stringA ZUGFeRD / Factur-X hybrid PDF, base64-encoded (the embedded XML is checked).
xmlstringThe e-invoice XML as text (UBL 2.1 Invoice or CreditNote, UN/CEFACT CII D16B).

french_company French company by SIREN or SIRET

Reads a French company from the official registries (the open Recherche d'entreprises API, INSEE Sirene as a fallback): legal name, legal form, NAF activity, status (active or ceased) and dates, head-office address, the establishment asked for when a SIRET is given, and the intra-community VAT number computed from the SIREN with the numbers VIES confirms. Give a SIREN (9 digits) or a SIRET (14 digits), spaces allowed. A ceased company is an answer, not an error. 1 call.

ParameterTypeDescription
id *stringA SIREN (9 digits) or SIRET (14 digits), e.g. "356000000" or "356 000 000 00048".

peppol_participant Can this company receive Peppol invoices?

Looks a company up on the Peppol network the way an access point does before it sends: whether its identifier is registered (Peppol SML), which documents it receives (its SMP: Peppol BIS Billing 3.0 invoices and credit notes, and others) and its registered name when its provider published one (Peppol Directory). Give a participant identifier (ICD:value, e.g. "0208:0202239951" or "9930:de136695976") or a Belgian enterprise or VAT number in any form ("BE 0202.239.951"), which is looked up under both 0208 and 9925. receives.invoice / receives.creditNote answer the sender's question. « Not regist…

ParameterTypeDescription
id *stringA Peppol participant identifier (ICD:value) or a Belgian enterprise or VAT number.