cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

3CX PBX Integration - C4C REST API

Former Member
0 Likes
1,864

Hi All,
First time user of C4C.

I am a 3CX (PBX) partner and we are looking to integrate a customers PBX to their C4C instance.

3CX have a CRM Template generator tool. This allows you to build the XML file to allow the 2 systems speak to each other.
The problem I'm having now is that I'm not familiar enough with C4C to know where to find and configure certain elements of what is required. (Authorisation Endpoint/Token Endpoint etc)
You can see the screenshot below gives details of what is required (https://www.3cx.com/docs/crm-integration/).
I have sandbox access to our customers instance. Can anyone advice how we would go about getting the information required configured to make this work?
Thanks,
Paul

Accepted Solutions (0)

Answers (2)

Answers (2)

monica_cotes
Product and Topic Expert
Product and Topic Expert
0 Likes

Good day Paul,

Did you integrate 3CX with C4C?Could you please give us a feedback?

Best regards,

VishnAndr
Active Contributor
0 Likes

Hi Paul,

SAP C4C OData API supports the following authentication methods:

  1. Basic authentication
  2. OAuth SAML bearer flow
  3. SAML Based frontend SSO
  4. Technical/Integration User

Please refer https://github.com/SAP/C4CODATAAPIDEVGUIDE#authentication

I understand that you're trying to use OAuth2.0 from 3CX side. And I think it is OAuth2.0 client credentials grant type. But SAP C4C alone is not able to support it. A separate IDP (identity provider) is required and C4C doesn't have IDP in-build. In other words, it requires something else to act as IDP. For example, this blog has some explanation, however, UI screenshots are outdated: https://blogs.sap.com/2017/11/14/configuring-oauth-2.0-between-sap-hybris-cloud-for-customer-and-sap...

In general, not all customers have external IDP set up. If you still want to proceed with OAuth setup from 3CX end, I would advise you to get in touch with your customer and take the required information from their responsible people.

However, I also can see from 3CX documentation, that it supports Basic authentication with user id and password. This would be very straight forward to set up. You would need either technical user ( https://blogs.sap.com/2019/12/03/integration-user-for-odata-services-in-sap-cloud-for-customer/ ) or business user set up with the access to the required OData service.

The important thing to know and remember: all OData APIs in C4C are protected with CSRF token. So you need to make sure 3CX does the required call to fetch it before doing the POST call.

https://github.com/SAP/C4CODATAAPIDEVGUIDE#csrf-token

Hoping it helps.