Kumusoft Solutions
EFRIS API
EFRIS API
  1. Return Codes
  • ๐Ÿš€ Getting started
  • ๐Ÿ” Authentication
    • Getting started
    • Calling Kumusoft APIs
    • API Keys
    • Generate auth Token
      POST
  • ๐Ÿงพ Invoicing
    • How to generate a Fiscal invoice
    • Generate fiscal invoice
      POST
    • Preview fiscal invoice
      POST
    • Search invoices
      POST
    • Invoice detils
      GET
  • ๐Ÿ“ฆ Stock Management
    • All stock items
      GET
    • Search stock items
      POST
    • Reduce stock
      POST
    • Increase stock
      POST
    • Register stock item
      POST
  • ๐Ÿ“ƒ Credit Notes
    • Issue credit note
  • โš™๏ธ Masterdata
    • Registration details
    • Get Masterdata
  • ๐Ÿ“‹ Reference
    • Overview
    • Data Sources
    • Invoice Types
    • Tax Rules
    • Return Codes
      • Overview
      • General system return codes
      • Taxpayer return codes
      • Invoice return codes
      • Credit note return codes
      • Stock management return codes
      • Device return codes
      • Invoice industry codes
  1. Return Codes

Invoice return codes

Invoice Return Codes are returned during invoice creation, validation, submission, approval, and retrieval operations.
These codes indicate issues with seller information, buyer information, invoice details, tax calculations, product information, or invoice processing.
Kumusoft Validation Layer
The Kumusoft EFRIS API performs extensive validation before submitting requests to EFRIS. As a result, many invoice validation errors documented in this section may never be encountered during normal API usage.
This reference is provided primarily for troubleshooting, diagnostics, support investigations, and understanding responses returned directly by the underlying EFRIS platform.
Whenever possible, validation errors are detected and reported by the Kumusoft platform before the request is submitted to EFRIS.

Invoice Codes Summary#

Code RangeDescription
1040Duplicate invoice errors
1100 - 1121Seller validation errors
1122 - 1141Invoice header validation errors
1142 - 1169Buyer validation errors
1170 - 1299Invoice item validation errors

Duplicate Invoice Errors#

Code 1040#

CodeDescriptionExplanation
1040Invoice number already existsThe invoice number has already been submitted to EFRIS.

Resolution#

Ensure invoice numbers are unique.
Avoid resubmitting previously successful invoices.
Implement duplicate submission checks in your application.

Example#

{
  "returnCode": "1040",
  "returnMessage": "Invoice number already exists"
}

Seller Validation Errors#

These errors occur when validating seller details.
CodeDescription
1100Seller TIN cannot be empty
1101Invalid seller TIN length
1102Seller TIN does not match outer packet TIN
1103Seller NIN/BRN cannot be empty
1104Seller NIN/BRN exceeds maximum length
1105Seller legal name cannot be empty
1106Seller legal name exceeds maximum length
1107Seller business name cannot be empty
1108Seller business name exceeds maximum length
1109Seller address cannot be empty
1110Seller address exceeds maximum length
1111Seller mobile phone cannot be empty
1112Seller mobile phone exceeds maximum length
1113Seller telephone cannot be empty
1114Seller telephone exceeds maximum length
1115Seller email address cannot be empty
1116Invalid seller email length
1117Seller email address is invalid
1118Place of business cannot be empty
1119Place of business exceeds maximum length
1120Seller reference number cannot be empty
1121Seller reference number exceeds maximum length

Invoice Header Validation Errors#

These errors relate to invoice-level information.
CodeDescription
1122Invoice number cannot be empty
1123Invoice number exceeds maximum length
1124Anti-fake code cannot be empty
1125Invalid anti-fake code length
1126Invalid anti-fake code value
1127Device number mismatch
1129Issue date cannot be empty
1130Invalid issue date format
1131Operator cannot be empty
1132Operator exceeds maximum length
1133Currency cannot be empty
1134Currency exceeds maximum length
1135Invalid invoice type
1136Original invoice ID required
1137Original invoice ID cannot be empty
1138Original invoice ID exceeds maximum length
1139Invalid invoice kind
1140Invalid data source
1141Invalid payment method

Buyer Validation Errors#

These errors occur when validating buyer details.
CodeDescription
1142Buyer TIN cannot be empty
1143Invalid buyer TIN length
1144Buyer NIN/BRN cannot be empty
1145Buyer NIN/BRN exceeds maximum length
1146Buyer passport number cannot be empty
1147Buyer passport number exceeds maximum length
1148Buyer legal name cannot be empty
1149Buyer legal name exceeds maximum length
1150Buyer business name cannot be empty
1151Buyer business name exceeds maximum length
1152Buyer address cannot be empty
1153Buyer address exceeds maximum length
1154Buyer email cannot be empty
1155Invalid buyer email length
1156Invalid buyer email address
1157Buyer mobile phone cannot be empty
1158Buyer mobile phone exceeds maximum length
1159Buyer telephone cannot be empty
1160Buyer telephone exceeds maximum length
1161Buyer place of business cannot be empty
1162Buyer place of business exceeds maximum length
1163Invalid buyer type
1164Buyer citizenship cannot be empty
1165Buyer citizenship exceeds maximum length
1166Buyer sector cannot be empty
1167Buyer sector exceeds maximum length
1168Buyer reference number cannot be empty
1169Buyer reference number exceeds maximum length

Invoice Item Validation Errors#

These errors occur when validating invoice line items.
Code RangeDescription
1170 - 1299Product and invoice line validation errors
Common examples include:
CodeDescription
1175Item name cannot be empty
1179Item code cannot be empty
1182Quantity cannot be empty
1188Unit price cannot be empty
1194Total amount cannot be empty
1200Tax amount cannot be empty
The full list of invoice item validation codes is defined by EFRIS and may evolve over time.

Best Practices#

Generate unique invoice numbers.
Validate seller information before invoice creation.
Validate buyer information before invoice creation.
Use supported currency codes and payment methods.
Ensure all invoice line items contain valid quantities and prices.
Avoid resubmitting previously successful invoices.

Related Documentation#

Invoicing
Tax Rules
Currency Codes
Data Sources
Payment Methods
General System Return Codes
Taxpayer Return Codes
Note: This page documents return codes exposed by the underlying EFRIS platform. Although many of these codes are unlikely to occur when using the Kumusoft EFRIS API, they are included here as a reference for troubleshooting and support purposes.
Previous
Taxpayer return codes
Next
Credit note return codes
Built with