Skip to content

Get SRI Responses

Returns the raw SRI SOAP call outcomes recorded for a document — one row per reception (POST /:accessKey/send) or authorization (GET /:accessKey/authorize) attempt, in reverse chronological order (newest first).

GET /v1/documents/:accessKey/sri-responses

Authentication

Authorization: Bearer <api-key> and X-Issuer-Id: <issuer-id> (UUID from GET /v1/issuers)

Path parameters

ParameterDescription
accessKeyThe 49-digit access key of the document

Response

200 OK

json
{
  "ok": true,
  "sriResponses": [
    {
      "operationType": "AUTHORIZATION",
      "status": "NO_AUTORIZADO",
      "messages": [
        { "identifier": "45", "message": "RUC no existe", "additionalInfo": null, "type": "ERROR" }
      ],
      "createdAt": "2026-07-05T14:22:00.000Z"
    },
    {
      "operationType": "RECEPTION",
      "status": "RECIBIDA",
      "messages": null,
      "createdAt": "2026-07-05T14:21:00.000Z"
    },
    {
      "operationType": "RECEPTION",
      "status": "HTTP_500",
      "messages": null,
      "createdAt": "2026-07-05T14:20:00.000Z"
    }
  ]
}
FieldDescription
operationTypeRECEPTION (from POST /:accessKey/send) or AUTHORIZATION (from GET /:accessKey/authorize)
statusEither the estado SRI returned for that call (e.g. RECIBIDA, DEVUELTA, AUTORIZADO, NO_AUTORIZADO), or HTTP_<code> (e.g. HTTP_500) when SRI's own service failed at the transport level and never returned a business-level estado at all — a different kind of failure than a rejected document, and typically a transient issue on SRI's side rather than something wrong with the submitted document
messagesArray of SRI observation/error messages for that call, or null if SRI returned none (always null for an HTTP_<code> status, since no business-level response was ever parsed)
createdAtWhen this call's response was recorded

The raw SOAP response body is intentionally not included — it's internal diagnostic data, not part of the API contract.

Errors

CodeStatusWhen
VALIDATION_FAILED400accessKey is not exactly 49 digits
BAD_REQUEST400X-Issuer-Id header missing or malformed
UNAUTHORIZED401Missing or invalid API key, or environment mismatch
FORBIDDEN403X-Issuer-Id issuer belongs to a different tenant
NOT_FOUND404X-Issuer-Id issuer does not exist
NOT_FOUND404Document not found

Comprobify API Documentation