Verify a Spanish company by CIF
verify_company_by_cifValidate a Spanish company by CIF to get registry data, BORME status, recent acts, and an explainable 0-100 risk score via an x402-paid MCP call.
Instructions
Verify a Spanish company by its CIF and get its registry data, status in the BORME, recent published acts and an explainable 0-100 risk score.
This is an x402-paid endpoint. The first call returns ok=false with error.code='payment_required' and a complete payment challenge (price, network, asset, receiving address). Settle that challenge with a wallet you control and call again with the resulting base64 payload in x_payment; the same call then returns the company.
Errors are typed: 'not_found' (valid CIF, no record — you are not charged), 'source_unavailable' (upstream registry down — not charged, safe to retry), 'invalid_request' (malformed CIF), 'rate_limited' (quota), 'transport_error' (the API was unreachable). Do not retry a 402 without changing the payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cif | Yes | ||
| x_payment | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| cif | No | The CIF as requested. | |
| mock | No | True when the facts are synthetic, never true for a real source. | |
| risk | No | ||
| error | No | ||
| company | No | ||
| payment | No | ||
| guidance | No | What to do next, in one sentence, for the calling agent. | |
| provenance | No | ||
| recent_acts | No |