Check a Peppol ID
check_peppol_idChecks the Peppol ID of a company before create_company: the scheme must exist, be active, belong to the company country (or be international), and the identifier must have the right format and check digit. A VAT scheme (99xx) needs the country prefix and the VAT number, not a register number; with tax_id, it must be the VAT number in the tax ID. Pass peppol_id to check one, or registration_id (VAT or registration number) to get the suggested Peppol ID. Free, needs no API key, makes no network call. To see if an ID can receive invoices, use lookup_participant.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"country": "<country>"
},
"name": "check_peppol_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax_id | No | The tax ID (VAT number) of the company, for example DE240712418. With peppol_id, a VAT-scheme Peppol ID must be this VAT number. | |
| country | Yes | ISO 3166-1 alpha-2 country of the company, for example BE. | |
| peppol_id | No | The Peppol ID to check, as scheme:id, for example 0208:0123456749. | |
| registration_id | No | A VAT or registration number to derive the Peppol ID from, for example BE0123456749. With peppol_id, the registration number of the company, to name a register number in a VAT scheme. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when peppol_id passes every check. | |
| message | Yes | What is wrong and what to use. | |
| peppol_id | Yes | The normalized or suggested Peppol ID, or null. | |
| suggested | Yes | True when peppol_id was derived from registration_id. | |
| error_code | Yes |