Margin Issue while squaring off existing position via API's

I have been trading via API’s for more than a month now and it was working fine. Today, i faced one issue.
I had an open position(purchased yesterday- 31/07/2023) in option(FINNIFTY 01 AUG 20350 CALL), But when placing SELL order around 15:05 today (01/08/2023)via API the order failed asking for more margin which should not be the case as i am squaring off my position. Can you please investigate as it could derail my trading strategies.

This can happen when you have hedged another trade to get margin benefit. We can check this out for you, please share your registered email id/ contact number on openapi.care@paytmmoney.com

This has happened today as well. I have mailed again with the screenshot