mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-29 21:57:16 +02:00
2.5 KiB
2.5 KiB
sidebar_position |
---|
3 |
Get deal
Gets deal by ID
Function GetDeal(Val URL, Val DealID, Val Token = "") Export
Parameter | CLI option | Type | Description |
---|---|---|---|
URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
DealID | --deal | Number, String | Deal ID |
Token | --token | String | Access token, when app auth method used |
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
:::tip
Method at API documentation: crm.deal.get
:::
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
DealID = "596";
Result = OPI_Bitrix24.GetDeal(URL, DealID);
URL = "b24-ar17wx.bitrix24.by";
Token = "ae6af966006e9f06006b12e400000001000...";
DealID = "596";
Result = OPI_Bitrix24.GetDeal(URL, DealID, Token);
oint bitrix24 GetDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
{
"result": {
"ID": "72",
"TITLE": "Planned sale",
"TYPE_ID": "GOODS",
"STAGE_ID": "NEW",
"PROBABILITY": "30",
"CURRENCY_ID": "USD",
"OPPORTUNITY": "5000.00",
"IS_MANUAL_OPPORTUNITY": "N",
"TAX_VALUE": null,
"LEAD_ID": null,
"COMPANY_ID": "1",
"CONTACT_ID": "3",
"QUOTE_ID": null,
"BEGINDATE": "2024-01-01T00:00:00+00:00",
"CLOSEDATE": "2030-01-01T00:00:00+00:00",
"ASSIGNED_BY_ID": "1",
"CREATED_BY_ID": "1",
"MODIFY_BY_ID": "1",
"DATE_CREATE": "2024-08-25T11:07:23+00:00",
"DATE_MODIFY": "2024-08-25T11:07:23+00:00",
"OPENED": "Y",
"CLOSED": "N",
"COMMENTS": null,
"ADDITIONAL_INFO": null,
"LOCATION_ID": null,
"CATEGORY_ID": "0",
"STAGE_SEMANTIC_ID": "P",
"IS_NEW": "Y",
"IS_RECURRING": "N",
"IS_RETURN_CUSTOMER": "N",
"IS_REPEATED_APPROACH": "N",
"SOURCE_ID": null,
"SOURCE_DESCRIPTION": null,
"ORIGINATOR_ID": null,
"ORIGIN_ID": null,
"MOVED_BY_ID": "1",
"MOVED_TIME": "2024-08-25T11:07:23+00:00",
"LAST_ACTIVITY_TIME": "2024-08-25T11:07:23+00:00",
"UTM_SOURCE": null,
"UTM_MEDIUM": null,
"UTM_CAMPAIGN": null,
"UTM_CONTENT": null,
"UTM_TERM": null,
"LAST_ACTIVITY_BY": "1"
},
"time": {
"start": 1724584045.17096,
"finish": 1724584045.21572,
"duration": 0.04475998878479,
"processing": 0.0171570777893066,
"date_start": "2024-08-25T11:07:25+00:00",
"date_finish": "2024-08-25T11:07:25+00:00",
"operating_reset_at": 1724584645,
"operating": 0
}
}