This FAQ will guide you on how to set up revenue and on how to insert or update revenue through API.
From the Admin dashboard, click on API and Select Revenue.
If you received a message "This API requires LeadsPedia Integration!" these means that you need to set up LeadsPedia first by having a LeadsPedia API Key.
(You can setup the LeadsPedia Key by going here: How to setup LeadsPedia)
If you already have a LeadsPedia API Key, you need to add it to LeadsPedia under Apps.
Enter the LeadsPedia API Key and click on Save.
You will receive a message that the settings were saved. Click on the close button to close the window.
Once you added the LeadsPedia API Key, you can now go back to Revenue under API. You should be able to see the options and requirements to Insert or Update Revenue.
This section shows the information that you need to set up your API. Please note that you need to contact the support of your API to enter this information to your API system.
This section will also display an Example PHP Usage and an Example JSON Response.
To make a Test Request, you need to have an Authorization Token first. (Click this link on How to Manage or add an Authorization Token)
Note: Make sure that on your Authorization Token, Revenue Update/Insert is checked or enabled
Once the Authorization Token is created and configured, you can now go back to Revenue and if you would like to verify that update/insert works via API, click on the Test Request tab.
auth_token - select the generated authentication token.
url - pre-populated with the API Url String.
call_log_id - call log id of the lead
revenue - enter the revenue amount
return -
The Request Query String and the Example JSON Response is shown below: