spv_sync_prepare
Prepares an SPV inbox sync by returning the ANAF listaMesaje URL the local agent must GET with a qualified certificate, plus pending PDFs and optional report requests.
Instructions
Step 1 of an SPV inbox sync. Returns the ANAF listaMesaje URL the local storno-agent must GET with the qualified certificate (mTLS; the OAuth token is not accepted by SPVWS2), plus any PDFs still pending download. With includeRequests, also returns the periodic reports to place (the fisa rol once every 28 days): GET each anafUrl with the certificate and relay the answer with spv_request_agent_result; the balance is read when the answer is archived and an unpaid amount notifies the users. Relay the listing with spv_sync_agent_result.
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": "spv_sync_prepare"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | How many days back to list (default and max: 60) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| includeRequests | No | Also return the periodic ANAF reports due now (fisa rol every 28 days) as requests[] to place through the agent |