Get XML
Downloads the document XML.
GET /v1/documents/:accessKey/xml- For
AUTHORIZEDdocuments: returns the SRI authorization XML (includes the authorization number and timestamp wrapped around the signed document). - For all other statuses: returns the signed XML as submitted to SRI.
Authentication
Authorization: Bearer <api-key> and X-Issuer-Id: <issuer-id> (UUID from GET /v1/issuers)
Path parameters
| Parameter | Description |
|---|---|
accessKey | The 49-digit access key of the document |
Response
200 OK — XML file download.
Content-Type: application/xml
Content-Disposition: attachment; filename="<accessKey>.xml"Errors
| Code | Status | When |
|---|---|---|
BAD_REQUEST | 400 | X-Issuer-Id header missing or malformed |
UNAUTHORIZED | 401 | Missing or invalid API key, or environment mismatch (sandbox key targeting a production tenant or vice versa) |
FORBIDDEN | 403 | X-Issuer-Id issuer belongs to a different tenant |
NOT_FOUND | 404 | X-Issuer-Id issuer does not exist |
NOT_FOUND | 404 | Document not found |