API not working after upgrading firmware to WIFI_SWITCH_V2 v5.2

I have been using Tinxy 16A switch for a couple of months now. I had used IFTTT to trigger the switch, however, after upgrading the firmware to WIFI_SWITCH_V2 v5.2, I cannot toggle the switch with the API. I was trying to figure out what was wrong and I was able to find out that the API POST request was sent successfully and it showed up in the Activity Logs however, the switch did not toggle. This seems really wired and looks like a bug. Can someone help me out?