Skip to content

Send to SRI

Submits the signed XML document to the SRI SOAP service.

POST /v1/documents/:accessKey/send

The document must be in SIGNED status. After a successful call the document moves to RECEIVED (SRI accepted it for processing) or RETURNED (SRI rejected it — rebuild required).

Authentication

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

Path parameters

ParameterDescription
accessKeyThe 49-digit access key of the document to send

Response

200 OK

json
{
  "ok": true,
  "document": {
    "accessKey": "1503202601179234567800110010010000000011234567810",
    "documentType": "01",
    "sequential": "000000001",
    "status": "RECEIVED",
    "issueDate": "15/03/2026",
    "total": "115.00",
    "email": {
      "status": "PENDING"
    }
  }
}

If SRI returns RETURNED, the response still has 200 OK but status will be "RETURNED". The document must be corrected with Rebuild Invoice before resending.

Errors

CodeStatusWhen
UNAUTHORIZED401Missing or invalid API key
NOT_FOUND404Document not found
BAD_REQUEST400Document is not in SIGNED status
SRI_SUBMISSION_FAILED502Network error communicating with SRI

Comprobify API Documentation