Electronic Invoicing System API v1
Developers Guide
×
Menu
Index

4.3.1.1.1. Invoice Number Generation

The invoice number is generated using the following components:
 
Example implementation of the method that combines encoded values into the final invoice number:
 
private string GenerateCombinedString(long taxpayerId, int position, long julianDate, long transactionCount)
{
    var base64TaxpayerNumber = Base10ToBase64(taxpayerId);
    var base64Position = Base10ToBase64(position);
    var julianDateBase64 = Base10ToBase64(julianDate);
    var serialNumberBase64 = Base10ToBase64(transactionCount);
 
    return $"{base64TaxpayerNumber}-{base64Position}-{julianDateBase64}-{serialNumberBase64}";
}