spv_document_upload
Store the base64-encoded PDF from ANAF for an SPV document, rejecting HTML responses as SPV_NOT_A_DOCUMENT to avoid saving expired session pages.
Instructions
Step 3 of an SPV inbox sync: store the PDF the agent fetched from ANAF descarcare for a document. Pass the body base64-encoded. HTML answers (expired SPV session) are rejected with SPV_NOT_A_DOCUMENT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | SPV document UUID (from spv_sync_agent_result documents[]) | |
| companyId | No | Company UUID (overrides STORNO_COMPANY_ID env var) | |
| bodyBase64 | Yes | Response body, base64-encoded | |
| statusCode | Yes | HTTP status ANAF returned for descarcare |