spv_request_prepare
Validates SPV request type and parameters, returning a request ID and the channel (WS or web) for submitting the actual request.
Instructions
Step 1 of an SPV request: validate the type and parameters (see spv_request_types). Returns requestId and channel: "ws" with the ANAF cerere URL the local storno-agent must GET with the certificate, or "web" with a form the agent submits to the SPV website (POST /spv-web-request on the agent) for types the web service lacks (C168, certificates, decisions). Relay the answer with spv_request_agent_result. The answer document itself arrives later in listaMesaje with the same id_solicitare and is archived by the inbox sync.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Exact ANAF request type, e.g. "Fisa Rol", "D300", "Duplicat Recipisa", "Adeverinte Venit" | |
| params | No | Parameters by name: an, luna, motiv, numar_inregistrare, cui_pui, lunai, lunas | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) |