Function returns all opportunities
https://rest.crmango.com/api/GetAllOpportunities
Bearer
varchar
Auth token
This endpoint takes no body parameters
Function returns all opportunities
opp_id
integer
Opportunity ID
opp_name
varchar
Opportunity name
creation_date
timestamp
Date of creation
last_updated
timestamp
Date of updated
close_date
timestamp
Date of close this opportunity
last_status_date
timestamp
Date of last status update
assum_date_of_sale
timestamp
Date of assumed sale
company_id
integer
Company id
sales_value_ont
integer|float
Sales disposable
sales_value_mon
integer|float
Sales month
sales_value_quar
integer|float
Sales quarterly
sales_value_half
integer|float
Sales semiannually
sales_value_annual
integer|float
Sales annual
profit_value_ont
integer|float
Profit disposable
profit_value_mon
integer|float
Profit month
profit_value_quar
integer|float
Profit quarterly
profit_value_half
integer|float
Profit semiannually
profit_value_annual
integer|float
Profit annual
currency_id
integer
Currency id
user_id
integer
User id
percentage_status
integer
Probability of success. 0-100%
status_id
integer
Status id
product_id
integer
Product id
opportunity_type
integer
Opportunity id
lost_reason
varchar
Lost opportunity reason
won_reason
varchar
Won opportunity reason
note
varchar
Note
connected_offer_id
integer
Offer id
connected_order_id
integer
Order id
own_
varchar
Own columns
curl --request GET \
--url 'https://rest.crmango.com/api/GetAllOpportunities' \
--header 'Authorization: Bearer auth_token'
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://rest.crmango.com/api/GetAllOpportunities',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer auth_token'
),
));
$response = curl_exec($curl);
echo $response;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function () {
if (this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://rest.crmango.com/api/GetAllOpportunities");
xhr.setRequestHeader("Authorization", "Bearer auth_token");
xhr.send();
import requests
url = "https://rest.crmango.com/api/GetAllOpportunities"
payload = {}
headers = {
'Authorization': 'Bearer auth_token'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
{
"code": 200,
"response": [
{
"opp_id": 62,
"opp_name": "Testovacia ponuka na opport",
"creation_date": "2023-01-02 18:15:34",
"last_updated": "2023-01-02 18:15:34",
"close_date": null,
"last_status_date": "2023-01-02 18:15:34",
"assum_date_of_sale": null,
"company_id": 3538,
"sales_value_ont": 1.28,
"sales_value_mon": 0,
"sales_value_quar": 0,
"sales_value_half": 0,
"sales_value_annual": 200,
"profit_value_ont": 0.7,
"profit_value_mon": 0,
"profit_value_quar": 0,
"profit_value_half": 0,
"profit_value_annual": 100,
"currency_id": 100,
"user_id": 3,
"percentage_status": 0,
"status_id": 1,
"product_id": 13,
"opportunity_type": 0,
"lost_reason": null,
"won_reason": null,
"note": null,
"connected_offer_id": 374,
"connected_order_id": 0,
"own_Test_text": null,
"own_Test_dlhy_text": null,
"own_Poucet_vozidlovych_jednotiek": null,
"own_test_checkbox": null,
"own_test_zoznam": null,
"own_test_datum": null
},
{
"opp_id": 63,
"opp_name": "Testovacia ponuka na opport",
"creation_date": "2023-01-02 18:44:40",
"last_updated": "2023-01-02 18:44:40",
"close_date": null,
"last_status_date": "2023-01-02 18:44:40",
"assum_date_of_sale": "2023-01-12 00:00:00",
"company_id": 3538,
"sales_value_ont": 1.28,
"sales_value_mon": 0,
"sales_value_quar": 0,
"sales_value_half": 0,
"sales_value_annual": 0,
"profit_value_ont": 0.7,
"profit_value_mon": 0,
"profit_value_quar": 0,
"profit_value_half": 0,
"profit_value_annual": 0,
"currency_id": 202,
"user_id": 3,
"percentage_status": 0,
"status_id": 1,
"product_id": 13,
"opportunity_type": 2,
"lost_reason": "",
"won_reason": "",
"note": "",
"connected_offer_id": null,
"connected_order_id": null,
"own_Test_text": "",
"own_Test_dlhy_text": "12",
"own_Pocet_vozidlovych_jednotiek": 10,
"own_test_checkbox": 1,
"own_test_zoznam": "0",
"own_test_datum": "2023-01-05 00:00:00"
}
]
}
{
"code": "int",
"message": "string"
}