diff --git a/india_compliance/gst_india/api_classes/e_invoice.py b/india_compliance/gst_india/api_classes/e_invoice.py index 933f741e4..c59b6c754 100644 --- a/india_compliance/gst_india/api_classes/e_invoice.py +++ b/india_compliance/gst_india/api_classes/e_invoice.py @@ -24,6 +24,7 @@ class EInvoiceAPI(BaseAPI): # Invalid GSTIN error "3028": "GSTIN is invalid", "3029": "GSTIN is not active", + "3001": "Requested data is not available", } def setup(self, doc=None, *, company_gstin=None): diff --git a/india_compliance/gst_india/utils/e_invoice.py b/india_compliance/gst_india/utils/e_invoice.py index 223cf48d1..b66065103 100644 --- a/india_compliance/gst_india/utils/e_invoice.py +++ b/india_compliance/gst_india/utils/e_invoice.py @@ -147,7 +147,7 @@ def generate_e_invoice(docname, throw=True, force=False): ) # Handle Invalid GSTIN Error - if result.error_code in ("3028", "3029"): + if result.error_code in ("3028", "3029", "3001"): gstin = data.get("BuyerDtls").get("Gstin") response = api.sync_gstin_info(gstin)