Confluence server plugin not working in data center

I have made a plugin for Confluence v7.13.7. It is working absolutely fine in the Confluence server which is set up locally on my machine. But, when I tried installing the plugin in the client’s instance who is also using the same Confluence version 7.13.7 but using the data center version, the plugin got installed but not giving any result upon hitting the API endpoint.

Is this possible that a plugin can work in a server edition but cannot work in the data center? If this can happen, what are the possible reasons for this?

Essentially it should work on datacenter. Based on your description, I would recommend debugging the API further. As the actual data and tested data has lot of differences like clients instance and your local instance.