Fac-360
S I R E

Download what SUNAT proposes for the period, and stop

The read half of the cycle, and a SEPARATE ROUTE from the write half rather than a flag on one route. SUNAT builds the proposal from what other people issued against this RUC — for RVIE, what this taxpayer issued — and downloading it changes nothing: it is harmless against a real RUC, which is why sire:read admits it. The difference between looking and committing must not live in a JSON field. The day somebody leaves that field set, a period is closed and there is no inverse operation. Same argument that made POST /api/v2/documents/validations a route and not a dry-run flag. Answers 202: a SUNAT round trip can take longer than a request, so the work is handed to a durable Workflow and the period is polled at statusPath.

POST
/api/v2/sire/periods/{book}/{period}/proposal

The read half of the cycle, and a SEPARATE ROUTE from the write half rather than a flag on one route. SUNAT builds the proposal from what other people issued against this RUC — for RVIE, what this taxpayer issued — and downloading it changes nothing: it is harmless against a real RUC, which is why sire:read admits it.

The difference between looking and committing must not live in a JSON field. The day somebody leaves that field set, a period is closed and there is no inverse operation. Same argument that made POST /api/v2/documents/validations a route and not a dry-run flag.

Answers 202: a SUNAT round trip can take longer than a request, so the work is handed to a durable Workflow and the period is polled at statusPath.

Authorization

bearerAuth
AuthorizationBearer <token>

Tenant-bound, scoped and expiring Apifact credential. Migrated legacy credentials are accepted only on deprecated v1 writes and tenant-scoped v2 read, poll and download routes. Each operation names the single scope it requires in x-required-scope; the scope array of the security requirement itself is empty because OpenAPI 3.0 requires it to be for a non-oauth2 scheme.

In: header

Path Parameters

book*string

Value in

  • "rvie"
  • "rce"
period*string
Match^[0-9]{4}(0[1-9]|1[0-2])$

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v2/sire/periods/rvie/string/proposal" \  -H "Authorization: Bearer apf_v2_tu_credencial"
{  "schemaVersion": "2.0",  "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6",  "book": "rvie",  "period": "string",  "status": "RUNNING",  "statusPath": "string"}