Check e-invoicing reference
einvoicing_checkCheck an e-invoicing reference, or give the e-invoicing identifiers of a company. Two modes. (1) type and reference: an OFFLINE check of one reference, such as a party identifier (a VAT or tax number), a routing code (de_leitweg_id, it_sdi_code) or an invoice identifier (pl_ksef_number, br_nfe_key). The answer says whether it is well formed: basis check_digit means it has the form its publisher defines and its check characters match; basis format means only the form was checked; parts decodes a structured value as written in it. Neither basis means the reference was issued, is registered or active, or that a tax authority accepts an invoice that carries it; no live status from a national tax authority is served. type peppol_id also looks the participant up live in the Peppol network (registered at the time of the check; registered does not mean it receives invoices: receives_invoices, receives_credit_notes and document_types come from its SMP, and where the SMP is not read, for example when its robots.txt disallows it, they are null and document_types_unread says why). (2) country and company_number, or vat: for a company the API serves, its own e-invoicing identifiers (party_ids), its Peppol participant IDs looked up live (only those its company number and VAT number give: a company not found under them may be registered under another ID or receive e-invoices outside Peppol; the Peppol Directory is not read), and for Estonia the e-invoice recipients register (Contains data from the Estonian e-Business Register (RIK), CC BY 4.0). Prometiam is not a Peppol access point: it does not send, receive or validate invoices. 1 credit a call, errors free. The full list of types, by country, is on https://www.prometiam.com/risk-api/docs#einvoicing-check.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "einvoicing_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vat | No | Company mode: the VAT number of the company, with its country prefix. | |
| type | No | Reference mode: the reference type, for example de_leitweg_id, pl_ksef_number, it_sdi_code, fr_siren, br_nfe_key or peppol_id. The types are listed on the docs page; an unknown type is refused and the types of its country are named. | |
| country | No | Company mode: the country of company_number. | |
| reference | No | Reference mode: the value to check. Required with type. | |
| company_number | No | Company mode: the company number in its register, with country. |