Skip to content

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

POST/eslog/{documentId}/validate

Manually 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_idstringoptional

Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.

Path parameters

documentIdstringrequired

Document ID (invoice, estimate, credit note, or advance invoice)

Query parameters

typestringrequired

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_idstring
document_typestring
eslogobject
json
{
  "document_id": "inv_clx1234567890",
  "document_type": "invoice",
  "eslog": {
    "validation_enabled": true,
    "validation_status": "valid",
    "validation_errors": [],
    "validated_at": "2025-01-15T10:30:00.000Z"
  }
}
Example:

Download e-SLOG XML

GET/eslog/{documentId}/download

Download a validated document as native e-SLOG 2.0 XML.

Header parameters

entity_idstringoptional

Entity ID on which the request is made. Auto-selected when only one entity exists, required when multiple entities exist.

Path parameters

documentIdstringrequired

Document ID (invoice, estimate, credit note, or advance invoice)

Query parameters

typestringrequired

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);