Integrating SugarCRM with website. Question about urls

Hello,

After almost finishing up the integration of SugarCRM with our website, I'm back to square one due to some doubts.

For the site_url given in the endpoints, I'm currently using the url for the trial account that I created. I'm guessing that when calling the API endpoints on behalf of a user, I'm supposed to be using their site_url for SugarCRM. Is that right? And if so, how am I supposed to get it? I'm using Java here.

Or, am I supposed to use the site_url of my own account. Am I supposed to sign up for a paid account just to integrate the product into our website?

  • To use the SugarCRM installation of a customer in any website you surely need the URL of this installation.

    All the API calls must be made to this endpoint which start with the URL followed by the /rest/v10 path and the API function path like /Accounts.

    It is not a kind of WDSL path for interface typing ans mapping, but a real entry point you call to get the data.

    The first call must be the /rest/v10/oauth2/token with the credentials the customer handed over to you.

    You can test that with any other installation like your own demo, but in the end you need the real credentials.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • So I don't need an account of my own. I need to get the site url of the user.

    But the problem is that the very first endpoint I need to authorize a user starts like this:

    https://pijszc5463.trial.sugarcrm.eu/rest/v11_4/oauth2/token

    It needs the site url. How am I supposed to authorize a user with his credentials if I don't have any site url?

    For example, Salesforce has a common endpoint to authorize the user.

    https://login.salesforce.com/services/oauth2/authorize 

    And when the user gets authorized, we get the instance url in the response, which I use for other endpoints.

  • Yes, that's the difference to SF. Sugar has one site URL per customer.

    So you need the site URL, a user and a password to use the API.

    Harald Kuske
    Principal Solution Architect – Professional Services, EMEA
    hkuske@sugarcrm.com
    SugarCRM Deutschland GmbH

  • Thanks! I will get the url from the user.