partner_verify
Verify a client or supplier against ANAF or VIES, store the VAT status snapshot, and alert on changes like lost VAT registration or inactivation.
Instructions
Check one client or supplier at ANAF (Romanian company with CUI) or VIES (EU partner with a VAT number) and store the snapshot on it: vatRegistered, vatOnCollection (+ vatOnCollectionFrom/To), inactive, efacturaRegistered, viesValid, verificationNotes, vatStatusCheckedAt. Returns the updated partner and result: checked (bool), source (anaf | vies), changes (became_inactive, reactivated, lost_vat_registration, vat_registered, vat_on_collection, vat_on_collection_ended, vies_invalid, vies_valid) and error (not_applicable for individuals / non-EU partners, registry_unavailable when the registry did not answer — the previous snapshot is kept, not_found when ANAF does not know the CUI). A degrading change also sends the partner.status_changed notification to the company members. Requires the client-edit permission; throttled per user like the registry lookups.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Partner kind | |
| uuid | Yes | Client or supplier UUID | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |