e-invoicing

Retrieve the invoice document

Decoding the Application Response gives you the download URIs for an inbound invoice. Download the format your system needs, then route the document with the ERP System ID.

After a notification arrives, decode the ApplicationResponse to get the download URIs, then use those URIs to download the invoice in your preferred format.

  1. Decode the ApplicationResponse.

    The ApplicationResponse in your notification is Base64-encoded. Decode it to extract the download URIs.

    CODE
    Base64.decode(notification.ApplicationResponse)

    The decoded content contains URIs for downloading the invoice in each supported format.

  2. Download the invoice.

    Use the URI from the decoded ApplicationResponse to download the document:

    JSON
    GET {downloadUri}
    Authorization: Bearer {token}

    Slovakia inbound invoices are available in the following formats:

    Table 1. Invoice download formats
    Format Description Use when
    Integration format (PEPPOL BIS Billing 3.0 UBL). The invoice as transmitted on the PEPPOL network. Processing in your ERP system.
    Legal format The invoice in the format required for archiving compliance. Archival and legal retention.
    PDF Human-readable version of the invoice. Review and approval workflows.
  3. Route the document in your system.

    Use the erpSystemId from the notification to route the document to the correct internal system. This matches the ERP System ID you configured in ERP System Communications during Configure network.