diff --git a/india_compliance/gst_india/api_classes/taxpayer_returns.py b/india_compliance/gst_india/api_classes/taxpayer_returns.py index df994ff176..0e76f0a176 100644 --- a/india_compliance/gst_india/api_classes/taxpayer_returns.py +++ b/india_compliance/gst_india/api_classes/taxpayer_returns.py @@ -123,3 +123,13 @@ def get_files(self, gstin, token, otp=None): return response return FilesAPI().get_all(response) + + def save_or_reset_action(self, action, gstin, data, otp=None): + gov_data = {"rtin": gstin, "reqtyp": action, "invdata": data} + + return self.get( + action="RESETIMS" if action == "RESET" else action, + endpoint=self.END_POINT, + json=gov_data, + otp=otp, + )