Non-restful API integration to CRM

Status
Not open for further replies.

eric-ftec

SOHO User
Joined
Dec 13, 2023
Messages
6
Reaction score
2
Hello.

I'm trying to figure out how to get name details from our CRM (WHMCS). All of the documentation I am reading is discussing REST integrations, but WHMCS does not have a RESTful API. Instead WHMCS API accepts POST requests to the API endpoint.

https://developers.whmcs.com/api/sample-code/

Does anyone have any examples on how to have 3CX query a API via a POST query? Seems simple enough, but not sure if 3CX is capable of doing this without putting a REST interface on top of WHMCS.

Thanks for any guidance.

-Eric
 
See attached file.

Not sure if the search will work as their docs doesn't specify that the search value also checks the phone number.
1709393595557.png

Also, make sure your phone numbers in WHMCS are entered as E164 or national format (10-digits most likely) without any spaces, dashes, parentheses, or anything else. Digits only. Otherwise, the API won't return the results.

You will need to adjust this line to whatever the URL should be for the WHMCS client's webpage:

XML:
<Output Type="ContactUrl" Passes="0" Value="[WhmcsUrl]/clients/[ContactID]" />
 

Attachments

See attached file.

Not sure if the search will work as their docs doesn't specify that the search value also checks the phone number.
View attachment 40050

Also, make sure your phone numbers in WHMCS are entered as E164 or national format (10-digits most likely) without any spaces, dashes, parentheses, or anything else. Digits only. Otherwise, the API won't return the results.

You will need to adjust this line to whatever the URL should be for the WHMCS client's webpage:

XML:
<Output Type="ContactUrl" Passes="0" Value="[WhmcsUrl]/clients/[ContactID]" />
This is a great start. I appreciate you replying so quickly. I'll see if I make any progress.
 
  • Like
Reactions: Evolute IT
Keep in mind that "REST" is nothing more than a recommendation for how to design your web APIs. Really, the requirement is simply that the CRM API allow you to "POST" requests to a web API.
 
Status
Not open for further replies.

Latest Posts

Forum statistics

Threads
111,973
Messages
590,075
Members
164,895
Latest member
jasonkkrause