e-SLOG
e-SLOG
e-SLOG 2.0 (Slovenian electronic invoice) operations.
Documents can be validated and exported as native e-SLOG XML in the official urn:eslog:2.00 format.
Only available for Slovenian entities (country_code = 'SI').
Validate document for e-SLOG
/eslog/{documentId}/validateManually trigger e-SLOG 2.0 validation for a document.
Updates the document's eslog field with validation status.
Only available for Slovenian entities.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Document ID (invoice, estimate, credit note, or advance invoice)
Query parameters
Document type
Possible values: "invoice", "estimate", "credit_note", "advance_invoice"
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
const response = await sdk.eSlog.validate("inv_clx1234567890", {
type: "invoice"
});
console.log(response);Returns
{
"document_id": "inv_clx1234567890",
"document_type": "invoice",
"eslog": {
"validation_enabled": true,
"validation_status": "valid",
"validation_errors": [],
"validated_at": "2025-01-15T10:30:00.000Z"
}
}Download e-SLOG XML
/eslog/{documentId}/downloadDownload a validated document as native e-SLOG 2.0 XML.
Header parameters
Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.
Path parameters
Document ID (invoice, estimate, credit note, or advance invoice)
Query parameters
Document type
Possible values: "invoice", "estimate", "credit_note", "advance_invoice"
import SpaceInvoices from '@spaceinvoices/js-sdk';
const sdk = new SpaceInvoices('YOUR_API_KEY');
const response = await sdk.eSlog.download("inv_clx1234567890", {
type: "invoice"
});
console.log(response);