Integrating API with suitecrm

Hi, I want to integrate an API with suitecrm. I just created field named “carrier” and I want, when ever user adds his contact number. The Carrier field should show it carrier name like T mobile, Verizon etc. I have code of API but I do not know how to do it ?

You probably want to create an after_save logic hook on the Contacts module. The API lookup will happen when the record is saved.

If you want it to happen immediately on the screen, while the number is being written, then you’ll have to override the Edit View’s Display function, and inject some javascript to do the lookup for you.