Reference / SUNAT
SIRE proposal
The SIRE proposal for a period —sales (RVIE) or purchases (RCE)— as ZIP, TXT or Excel, using your SOL credentials.
POST
/api/sire/descargar-propuesta What it's for: Pull the monthly sales or purchases proposal and load it into your accounting system without logging into SUNAT's portal.
Authentication
-
X-API-Keystring header required -
X-API-Key: tu_token -
Authorizationstring header -
Authorization: Bearer tu_token
Either one works. The token is generated from the client dashboard. Go to the dashboard →
Body parameters
-
rucstring required - Part of your own SOL credentials, you provide it. Example:
20123456789 -
usuario_solstring required - Part of your own SOL credentials, you provide it. Example:
USUARIO01 -
clave_solstring required - Part of your own SOL credentials, you provide it. Example:
•••••••• -
client_idstring required - Credential of your own application registered with SUNAT, you provide it. Example:
00000000-0000-0000-0000-000000000000 -
client_secretstring required - Credential of your own application registered with SUNAT, you provide it. Example:
•••••••• -
periodostring required - Tax period, YYYYMM. Example:
202610 -
librostring required - compras (RCE, purchases) or ventas (RVIE, sales). Defaults to compras. Example:
ventas -
formatostring required - zip, txt or excel. Defaults to zip. Example:
zip
Response
Main fields this lookup returns:
archivo ZIP, TXT o Excel
Status codes
- 200 OK
- Lookup resolved. Counts one request against the plan.
- 401 Invalid or expired token
- The authentication header is missing or the token isn't valid.
- 403 No access
- The plan doesn't cover this service, or the subscription isn't active.
- 404 Not found
- The lookup ran but returned nothing. It still counts.
- 429 Limit reached
- The period's lookups have run out.
- 500 Service error
- The official source failed to answer. Nothing is cached.