spv_sync_prepare
Prepares SPV inbox sync by returning the ANAF message list URL for authenticated retrieval and any pending PDFs for download.
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. Relay the ANAF response with spv_sync_agent_result.
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) |