mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-03-03 15:02:24 +02:00
B24: Перевод и тесты работы со сделками
This commit is contained in:
parent
9a18dc8a15
commit
c24460bd86
4
.github/workflows/oint_test_full_ru.yml
vendored
4
.github/workflows/oint_test_full_ru.yml
vendored
@ -1096,6 +1096,10 @@ jobs:
|
||||
if: ${{ cancelled() }} == false
|
||||
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os "Б24_РаботаСЛидами"
|
||||
|
||||
- name: Работа со сделками
|
||||
if: ${{ cancelled() }} == false
|
||||
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/ru/OInt/tests/Modules/internal/OPI_Тесты.os "Б24_РаботаСоСделками"
|
||||
|
||||
- name: Записать логи
|
||||
if: ${{ cancelled() }} == false
|
||||
uses: actions/cache/save@v3
|
||||
|
@ -153,6 +153,8 @@
|
||||
|
||||
ТекущаяСтрока = " " + ТекущаяСтрока;
|
||||
|
||||
ТекущаяСтрока = СтрЗаменить(ТекущаяСтрока, """<", "$");
|
||||
ТекущаяСтрока = СтрЗаменить(ТекущаяСтрока, ">""", "$");
|
||||
ТекущаяСтрока = СтрЗаменить(ТекущаяСтрока, """", "$");
|
||||
ТекущаяСтрока = СтрЗаменить(ТекущаяСтрока, "|", "$");
|
||||
ТекущаяСтрока = СтрЗаменить(ТекущаяСтрока, "<", "$");
|
||||
|
1
docs/en/cli/Bitrix24/CreateDeal.txt
Normal file
1
docs/en/cli/Bitrix24/CreateDeal.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 CreateDeal --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/en/cli/Bitrix24/DeleteDeal.txt
Normal file
1
docs/en/cli/Bitrix24/DeleteDeal.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 DeleteDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/en/cli/Bitrix24/GetDeal.txt
Normal file
1
docs/en/cli/Bitrix24/GetDeal.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 GetDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/en/cli/Bitrix24/GetDealStructure.txt
Normal file
1
docs/en/cli/Bitrix24/GetDealStructure.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 GetDealStructure --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/en/cli/Bitrix24/GetDealsFilterStructure.txt
Normal file
1
docs/en/cli/Bitrix24/GetDealsFilterStructure.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 GetDealsFilterStructure --empty %empty%
|
1
docs/en/cli/Bitrix24/GetDealsList.txt
Normal file
1
docs/en/cli/Bitrix24/GetDealsList.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 GetDealsList --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/en/cli/Bitrix24/UpdateDeal.txt
Normal file
1
docs/en/cli/Bitrix24/UpdateDeal.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 UpdateDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/en/cli/Ozon/GetProductDescription.txt
Normal file
1
docs/en/cli/Ozon/GetProductDescription.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon GetProductDescription --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
1
docs/en/cli/Ozon/GetProductInformation.txt
Normal file
1
docs/en/cli/Ozon/GetProductInformation.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon GetProductInformation --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
1
docs/en/cli/Ozon/GetProductList.txt
Normal file
1
docs/en/cli/Ozon/GetProductList.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon GetProductList --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
1
docs/en/cli/Ozon/GetProductsContentRating.txt
Normal file
1
docs/en/cli/Ozon/GetProductsContentRating.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon GetProductsContentRating --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
1
docs/en/cli/Ozon/GetProductsFilterStructure.txt
Normal file
1
docs/en/cli/Ozon/GetProductsFilterStructure.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon GetProductsFilterStructure --empty %empty%
|
1
docs/en/cli/Ozon/GetProductsRequestsLimits.txt
Normal file
1
docs/en/cli/Ozon/GetProductsRequestsLimits.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon GetProductsRequestsLimits --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
4
docs/en/data/Bitrix24/CreateDeal.json
Normal file
4
docs/en/data/Bitrix24/CreateDeal.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"Token": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
5
docs/en/data/Bitrix24/DeleteDeal.json
Normal file
5
docs/en/data/Bitrix24/DeleteDeal.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"DealID": "",
|
||||
"Token": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
5
docs/en/data/Bitrix24/GetDeal.json
Normal file
5
docs/en/data/Bitrix24/GetDeal.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"DealID": "",
|
||||
"Token": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
4
docs/en/data/Bitrix24/GetDealStructure.json
Normal file
4
docs/en/data/Bitrix24/GetDealStructure.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"Token": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
4
docs/en/data/Bitrix24/GetDealsList.json
Normal file
4
docs/en/data/Bitrix24/GetDealsList.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"Token": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
5
docs/en/data/Bitrix24/UpdateDeal.json
Normal file
5
docs/en/data/Bitrix24/UpdateDeal.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"DealID": "",
|
||||
"Token": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
26
docs/en/examples/Bitrix24/CreateDeal.txt
Normal file
26
docs/en/examples/Bitrix24/CreateDeal.txt
Normal file
@ -0,0 +1,26 @@
|
||||
FieldsStructure = New Structure;
|
||||
FieldsStructure.Insert("TITLE" , "Planned sale");
|
||||
FieldsStructure.Insert("TYPE_ID" , "GOODS");
|
||||
FieldsStructure.Insert("STAGE_ID" , "NEW");
|
||||
FieldsStructure.Insert("COMPANY_ID" , 1);
|
||||
FieldsStructure.Insert("CONTACT_ID" , 3);
|
||||
FieldsStructure.Insert("OPENED" , "Y");
|
||||
FieldsStructure.Insert("ASSIGNED_BY_ID", 1);
|
||||
FieldsStructure.Insert("PROBABILITY" , 30);
|
||||
FieldsStructure.Insert("CURRENCY_ID" , "USD");
|
||||
FieldsStructure.Insert("OPPORTUNITY" , 5000);
|
||||
FieldsStructure.Insert("CATEGORY_ID" , 5);
|
||||
FieldsStructure.Insert("BEGINDATE" , "2024-01-01");
|
||||
FieldsStructure.Insert("CLOSEDATE" , "2030-01-01");
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure);
|
||||
|
||||
FieldsStructure.Insert("TITLE" , "Another deal");
|
||||
FieldsStructure.Insert("CLOSEDATE", "2031-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure, Token);
|
10
docs/en/examples/Bitrix24/DeleteDeal.txt
Normal file
10
docs/en/examples/Bitrix24/DeleteDeal.txt
Normal file
@ -0,0 +1,10 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteDeal(URL, DealID);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteDeal(URL, DealID, Token);
|
10
docs/en/examples/Bitrix24/GetDeal.txt
Normal file
10
docs/en/examples/Bitrix24/GetDeal.txt
Normal file
@ -0,0 +1,10 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.GetDeal(URL, DealID);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.GetDeal(URL, DealID, Token);
|
8
docs/en/examples/Bitrix24/GetDealStructure.txt
Normal file
8
docs/en/examples/Bitrix24/GetDealStructure.txt
Normal file
@ -0,0 +1,8 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Result = OPI_Bitrix24.GetDealStructure(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetDealStructure(URL, Token);
|
1
docs/en/examples/Bitrix24/GetDealsFilterStructure.txt
Normal file
1
docs/en/examples/Bitrix24/GetDealsFilterStructure.txt
Normal file
@ -0,0 +1 @@
|
||||
Result = OPI_Bitrix24.GetDealsFilterStructure();
|
12
docs/en/examples/Bitrix24/GetDealsList.txt
Normal file
12
docs/en/examples/Bitrix24/GetDealsList.txt
Normal file
@ -0,0 +1,12 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Result = OPI_Bitrix24.GetDealsList(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Filter = New Structure;
|
||||
Filter.Insert("TITLE" , "Sale in RUB");
|
||||
Filter.Insert("CURRENCY_ID", "RUB");
|
||||
|
||||
Result = OPI_Bitrix24.GetDealsList(URL, Filter, , Token);
|
@ -9,4 +9,4 @@
|
||||
Filter.Insert("TITLE" , "MegaClient");
|
||||
Filter.Insert("HAS_EMAIL", "Y");
|
||||
|
||||
Result = OPI_Bitrix24.GetLeadsList(URL, Filter, ,Token);
|
||||
Result = OPI_Bitrix24.GetLeadsList(URL, Filter, , Token);
|
||||
|
18
docs/en/examples/Bitrix24/UpdateDeal.txt
Normal file
18
docs/en/examples/Bitrix24/UpdateDeal.txt
Normal file
@ -0,0 +1,18 @@
|
||||
FieldsStructure = New Structure;
|
||||
FieldsStructure.Insert("TITLE" , "Sale in RUB");
|
||||
FieldsStructure.Insert("CURRENCY_ID" , "RUB");
|
||||
FieldsStructure.Insert("OPPORTUNITY" , 50000);
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateDeal(URL, DealID, FieldsStructure);
|
||||
|
||||
FieldsStructure.Insert("TITLE" , "Future deal in RUB");
|
||||
FieldsStructure.Insert("BEGINDATE", "2025-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateDeal(URL, DealID, FieldsStructure, Token);
|
68
docs/en/md/Bitrix24/Deals-managment/Create-deal.md
Normal file
68
docs/en/md/Bitrix24/Deals-managment/Create-deal.md
Normal file
@ -0,0 +1,68 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Create deal
|
||||
Creates a new deal by field structure (see. GetDealStructure)
|
||||
|
||||
|
||||
|
||||
`Function CreateDeal(Val URL, Val FieldsStructure, Val Token = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
||||
| FieldsStructure | --fields | Structure of KeyAndValue | Deal fields structure (see. GetDealStructure) |
|
||||
| Token | --token | String | Access token, when app auth method used |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [crm.deal.add](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_add.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
FieldsStructure = New Structure;
|
||||
FieldsStructure.Insert("TITLE" , "Planned sale");
|
||||
FieldsStructure.Insert("TYPE_ID" , "GOODS");
|
||||
FieldsStructure.Insert("STAGE_ID" , "NEW");
|
||||
FieldsStructure.Insert("COMPANY_ID" , 1);
|
||||
FieldsStructure.Insert("CONTACT_ID" , 3);
|
||||
FieldsStructure.Insert("OPENED" , "Y");
|
||||
FieldsStructure.Insert("ASSIGNED_BY_ID", 1);
|
||||
FieldsStructure.Insert("PROBABILITY" , 30);
|
||||
FieldsStructure.Insert("CURRENCY_ID" , "USD");
|
||||
FieldsStructure.Insert("OPPORTUNITY" , 5000);
|
||||
FieldsStructure.Insert("CATEGORY_ID" , 5);
|
||||
FieldsStructure.Insert("BEGINDATE" , "2024-01-01");
|
||||
FieldsStructure.Insert("CLOSEDATE" , "2030-01-01");
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure);
|
||||
|
||||
FieldsStructure.Insert("TITLE" , "Another deal");
|
||||
FieldsStructure.Insert("CLOSEDATE", "2031-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.CreateDeal(URL, FieldsStructure, Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 CreateDeal --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
52
docs/en/md/Bitrix24/Deals-managment/Delete-deal.md
Normal file
52
docs/en/md/Bitrix24/Deals-managment/Delete-deal.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Delete deal
|
||||
Deletes deal by ID
|
||||
|
||||
|
||||
|
||||
`Function DeleteDeal(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
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [crm.deal.delete](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_delete.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteDeal(URL, DealID);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.DeleteDeal(URL, DealID, Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 DeleteDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
49
docs/en/md/Bitrix24/Deals-managment/Get-deal-structure.md
Normal file
49
docs/en/md/Bitrix24/Deals-managment/Get-deal-structure.md
Normal file
@ -0,0 +1,49 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Get deal structure
|
||||
Gets a structure with field descriptions for creating a deal
|
||||
|
||||
|
||||
|
||||
`Function GetDealStructure(Val URL, Val Token = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
||||
| Token | --token | String | Access token, when app auth method used |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [crm.deal.fields](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_fields.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Result = OPI_Bitrix24.GetDealStructure(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Result = OPI_Bitrix24.GetDealStructure(URL, Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDealStructure --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
52
docs/en/md/Bitrix24/Deals-managment/Get-deal.md
Normal file
52
docs/en/md/Bitrix24/Deals-managment/Get-deal.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
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
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [crm.deal.get](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_get.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.GetDeal(URL, DealID);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.GetDeal(URL, DealID, Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,38 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Get deals filter structure
|
||||
Returns the field structure for filtering deals in the GetDealsList method
|
||||
|
||||
|
||||
|
||||
`Function GetDealsFilterStructure(Val Clear = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Clear | --empty | Boolean | True > structure with empty valuse, False > field descriptions at values |
|
||||
|
||||
|
||||
Returns: Structure of KeyAndValue - Fields structure
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Result = OPI_Bitrix24.GetDealsFilterStructure();
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDealsFilterStructure --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
55
docs/en/md/Bitrix24/Deals-managment/Get-deals-list.md
Normal file
55
docs/en/md/Bitrix24/Deals-managment/Get-deals-list.md
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Get deals list
|
||||
Gets the list of deals (50 pcs per query max) with or without filtering (see. GetDealsFilterStructure)
|
||||
|
||||
|
||||
|
||||
`Function GetDealsList(Val URL, Val Filter = "", Val Indent = 0, Val Token = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
||||
| Filter | --filter | Structure of KeyAndValue | Deals filter structure (see. GetDealsFilterStructure) |
|
||||
| Indent | --offset | Number, String | Offset from the beginning of the list to retrieve deals > 50 pcs recursively |
|
||||
| Token | --token | String | Access token, when app auth method used |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [crm.deal.list](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_list.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Result = OPI_Bitrix24.GetDealsList(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Filter = New Structure;
|
||||
Filter.Insert("TITLE" , "Sale in RUB");
|
||||
Filter.Insert("CURRENCY_ID", "RUB");
|
||||
|
||||
Result = OPI_Bitrix24.GetDealsList(URL, Filter, , Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDealsList --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
62
docs/en/md/Bitrix24/Deals-managment/Update-deal.md
Normal file
62
docs/en/md/Bitrix24/Deals-managment/Update-deal.md
Normal file
@ -0,0 +1,62 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Update deal
|
||||
Modifies an existing deal
|
||||
|
||||
|
||||
|
||||
`Function UpdateDeal(Val URL, Val DealID, Val FieldsStructure, 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 |
|
||||
| FieldsStructure | --fields | Structure of KeyAndValue | Deal fields structure |
|
||||
| Token | --token | String | Access token, when app auth method used |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [crm.deal.update](https://https:
|
||||
dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_update.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
FieldsStructure = New Structure;
|
||||
FieldsStructure.Insert("TITLE" , "Sale in RUB");
|
||||
FieldsStructure.Insert("CURRENCY_ID" , "RUB");
|
||||
FieldsStructure.Insert("OPPORTUNITY" , 50000);
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateDeal(URL, DealID, FieldsStructure);
|
||||
|
||||
FieldsStructure.Insert("TITLE" , "Future deal in RUB");
|
||||
FieldsStructure.Insert("BEGINDATE", "2025-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Token = "6476c766006e9f06006b12e400000001000...";
|
||||
DealID = "";
|
||||
|
||||
Result = OPI_Bitrix24.UpdateDeal(URL, DealID, FieldsStructure, Token);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 UpdateDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
4
docs/en/md/Bitrix24/Deals-managment/_category_.json
Normal file
4
docs/en/md/Bitrix24/Deals-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Deals managment",
|
||||
"position": "19"
|
||||
}
|
@ -65,5 +65,17 @@ Method at API documentation: [crm.lead.add](https://dev.1c-bitrix.ru/rest_help/c
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": 34,
|
||||
"time": {
|
||||
"start": 1724490195.28511,
|
||||
"finish": 1724490195.73827,
|
||||
"duration": 0.4531569480896,
|
||||
"processing": 0.428863048553467,
|
||||
"date_start": "2024-08-24T09:03:15+00:00",
|
||||
"date_finish": "2024-08-24T09:03:15+00:00",
|
||||
"operating_reset_at": 1724490795,
|
||||
"operating": 0.428843021392822
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -12,7 +12,7 @@ sidebar_position: 2
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
||||
| LeadID | --lead | Number, String | Task ID |
|
||||
| LeadID | --lead | Number, String | Lead ID |
|
||||
| Token | --token | String | Access token, when app auth method used |
|
||||
|
||||
|
||||
@ -48,5 +48,17 @@ Method at API documentation: [crm.lead.delete](https://dev.1c-bitrix.ru/rest_hel
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": true,
|
||||
"time": {
|
||||
"start": 1724490199.49719,
|
||||
"finish": 1724490199.64436,
|
||||
"duration": 0.147169828414917,
|
||||
"processing": 0.123839855194092,
|
||||
"date_start": "2024-08-24T09:03:19+00:00",
|
||||
"date_finish": "2024-08-24T09:03:19+00:00",
|
||||
"operating_reset_at": 1724490799,
|
||||
"operating": 0.123820066452026
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -34,5 +34,27 @@ sidebar_position: 7
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"ID": "<lead identifier>",
|
||||
"ASSIGNED_BY_ID": "<responsible person identifier",
|
||||
"COMPANY_ID": "<company identifier>",
|
||||
"COMPANY_TITLE": "<company name>",
|
||||
"CONTACT_ID": "<contact identifier>",
|
||||
"CREATED_BY_ID": "<author identifier>",
|
||||
"CURRENCY_ID": "<currency identifier>",
|
||||
"DATE_CLOSED": "<closing date>",
|
||||
"DATE_CREATE": "<date of creation>",
|
||||
"DATE_MODIFY": "<date of change>",
|
||||
"EMAIL": "<email address>",
|
||||
"HAS_EMAIL": "<email address is filled in (Y|N)>",
|
||||
"HAS_PHONE": "<phone number is filled in (Y|N)>",
|
||||
"IS_RETURN_CUSTOMER": "<repeat lead (Y|N)>",
|
||||
"MODIFY_BY_ID": "<author ID of the last change>",
|
||||
"MOVED_BY_ID": "<identifier of the author of moving the lead to the current stage>",
|
||||
"MOVED_TIME": "<date of moving the lead to the current stage>",
|
||||
"OPENED": "<feature is available for all (Y|N)>",
|
||||
"OPPORTUNITY": "<expected amount>",
|
||||
"STATUS_ID": "<status identifier>",
|
||||
"TITLE": "<lead name (can be searched by template [%_])>"
|
||||
}
|
||||
```
|
||||
|
@ -45,5 +45,538 @@ Method at API documentation: [crm.lead.fields](https://dev.1c-bitrix.ru/rest_hel
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"ID": {
|
||||
"type": "integer",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "ID"
|
||||
},
|
||||
"TITLE": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Название лида"
|
||||
},
|
||||
"HONORIFIC": {
|
||||
"type": "crm_status",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"statusType": "HONORIFIC",
|
||||
"title": "Обращение"
|
||||
},
|
||||
"NAME": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Имя"
|
||||
},
|
||||
"SECOND_NAME": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Отчество"
|
||||
},
|
||||
"LAST_NAME": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Фамилия"
|
||||
},
|
||||
"BIRTHDATE": {
|
||||
"type": "date",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дата рождения"
|
||||
},
|
||||
"COMPANY_TITLE": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Название компании"
|
||||
},
|
||||
"SOURCE_ID": {
|
||||
"type": "crm_status",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"statusType": "SOURCE",
|
||||
"title": "Источник"
|
||||
},
|
||||
"SOURCE_DESCRIPTION": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дополнительно об источнике"
|
||||
},
|
||||
"STATUS_ID": {
|
||||
"type": "crm_status",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"statusType": "STATUS",
|
||||
"title": "Стадия"
|
||||
},
|
||||
"STATUS_DESCRIPTION": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дополнительно о стадии"
|
||||
},
|
||||
"STATUS_SEMANTIC_ID": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Состояние статуса"
|
||||
},
|
||||
"POST": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Должность"
|
||||
},
|
||||
"ADDRESS": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Адрес"
|
||||
},
|
||||
"ADDRESS_2": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Адрес (стр. 2)"
|
||||
},
|
||||
"ADDRESS_CITY": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Город"
|
||||
},
|
||||
"ADDRESS_POSTAL_CODE": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Почтовый индекс"
|
||||
},
|
||||
"ADDRESS_REGION": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Район"
|
||||
},
|
||||
"ADDRESS_PROVINCE": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Область"
|
||||
},
|
||||
"ADDRESS_COUNTRY": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Страна"
|
||||
},
|
||||
"ADDRESS_COUNTRY_CODE": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Код страны"
|
||||
},
|
||||
"ADDRESS_LOC_ADDR_ID": {
|
||||
"type": "integer",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Идентификатор адреса местоположения"
|
||||
},
|
||||
"CURRENCY_ID": {
|
||||
"type": "crm_currency",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Валюта"
|
||||
},
|
||||
"OPPORTUNITY": {
|
||||
"type": "double",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Сумма"
|
||||
},
|
||||
"IS_MANUAL_OPPORTUNITY": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "IS_MANUAL_OPPORTUNITY"
|
||||
},
|
||||
"OPENED": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Доступен для всех"
|
||||
},
|
||||
"COMMENTS": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Комментарий"
|
||||
},
|
||||
"HAS_PHONE": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Задан телефон"
|
||||
},
|
||||
"HAS_EMAIL": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Задан e-mail"
|
||||
},
|
||||
"HAS_IMOL": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Задана открытая линия"
|
||||
},
|
||||
"ASSIGNED_BY_ID": {
|
||||
"type": "user",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Ответственный"
|
||||
},
|
||||
"CREATED_BY_ID": {
|
||||
"type": "user",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Кем создан"
|
||||
},
|
||||
"MODIFY_BY_ID": {
|
||||
"type": "user",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Кем изменен"
|
||||
},
|
||||
"MOVED_BY_ID": {
|
||||
"type": "user",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "MOVED_BY_ID"
|
||||
},
|
||||
"DATE_CREATE": {
|
||||
"type": "datetime",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дата создания"
|
||||
},
|
||||
"DATE_MODIFY": {
|
||||
"type": "datetime",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дата изменения"
|
||||
},
|
||||
"MOVED_TIME": {
|
||||
"type": "datetime",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "MOVED_TIME"
|
||||
},
|
||||
"COMPANY_ID": {
|
||||
"type": "crm_company",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Компания",
|
||||
"settings": {
|
||||
"parentEntityTypeId": 4
|
||||
}
|
||||
},
|
||||
"CONTACT_ID": {
|
||||
"type": "crm_contact",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"isDeprecated": true,
|
||||
"title": "Контакт"
|
||||
},
|
||||
"CONTACT_IDS": {
|
||||
"type": "crm_contact",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": true,
|
||||
"isDynamic": false,
|
||||
"title": "CONTACT_IDS"
|
||||
},
|
||||
"IS_RETURN_CUSTOMER": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Повторный лид"
|
||||
},
|
||||
"DATE_CLOSED": {
|
||||
"type": "datetime",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дата завершения"
|
||||
},
|
||||
"ORIGINATOR_ID": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Внешний источник"
|
||||
},
|
||||
"ORIGIN_ID": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Идентификатор элемента во внешнем источнике"
|
||||
},
|
||||
"UTM_SOURCE": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Рекламная система"
|
||||
},
|
||||
"UTM_MEDIUM": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Тип трафика"
|
||||
},
|
||||
"UTM_CAMPAIGN": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Обозначение рекламной кампании"
|
||||
},
|
||||
"UTM_CONTENT": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Содержание кампании"
|
||||
},
|
||||
"UTM_TERM": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Условие поиска кампании"
|
||||
},
|
||||
"LAST_ACTIVITY_TIME": {
|
||||
"type": "datetime",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "LAST_ACTIVITY_TIME"
|
||||
},
|
||||
"LAST_ACTIVITY_BY": {
|
||||
"type": "user",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "LAST_ACTIVITY_BY"
|
||||
},
|
||||
"PHONE": {
|
||||
"type": "crm_multifield",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": true,
|
||||
"isDynamic": false,
|
||||
"title": "Телефон"
|
||||
},
|
||||
"EMAIL": {
|
||||
"type": "crm_multifield",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": true,
|
||||
"isDynamic": false,
|
||||
"title": "E-mail"
|
||||
},
|
||||
"WEB": {
|
||||
"type": "crm_multifield",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": true,
|
||||
"isDynamic": false,
|
||||
"title": "Сайт"
|
||||
},
|
||||
"IM": {
|
||||
"type": "crm_multifield",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": true,
|
||||
"isDynamic": false,
|
||||
"title": "Мессенджер"
|
||||
},
|
||||
"LINK": {
|
||||
"type": "crm_multifield",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": true,
|
||||
"isDynamic": false,
|
||||
"title": "LINK"
|
||||
}
|
||||
},
|
||||
"time": {
|
||||
"start": 1724490193.53042,
|
||||
"finish": 1724490193.56597,
|
||||
"duration": 0.035545825958252,
|
||||
"processing": 0.0106868743896484,
|
||||
"date_start": "2024-08-24T09:03:13+00:00",
|
||||
"date_finish": "2024-08-24T09:03:13+00:00",
|
||||
"operating_reset_at": 1724490793,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -48,5 +48,91 @@ Method at API documentation: [crm.lead.get](https://dev.1c-bitrix.ru/rest_help/c
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"ID": "34",
|
||||
"TITLE": "MegaClient",
|
||||
"HONORIFIC": null,
|
||||
"NAME": "Ivan",
|
||||
"SECOND_NAME": null,
|
||||
"LAST_NAME": "Ivanov",
|
||||
"COMPANY_TITLE": null,
|
||||
"COMPANY_ID": null,
|
||||
"CONTACT_ID": "34",
|
||||
"IS_RETURN_CUSTOMER": "N",
|
||||
"BIRTHDATE": "",
|
||||
"SOURCE_ID": null,
|
||||
"SOURCE_DESCRIPTION": null,
|
||||
"STATUS_ID": "CONVERTED",
|
||||
"STATUS_DESCRIPTION": null,
|
||||
"POST": null,
|
||||
"COMMENTS": null,
|
||||
"CURRENCY_ID": "BYN",
|
||||
"OPPORTUNITY": "0.00",
|
||||
"IS_MANUAL_OPPORTUNITY": "N",
|
||||
"HAS_PHONE": "Y",
|
||||
"HAS_EMAIL": "Y",
|
||||
"HAS_IMOL": "N",
|
||||
"ASSIGNED_BY_ID": "1",
|
||||
"CREATED_BY_ID": "1",
|
||||
"MODIFY_BY_ID": "1",
|
||||
"DATE_CREATE": "2024-08-24T09:03:15+00:00",
|
||||
"DATE_MODIFY": "2024-08-24T09:03:15+00:00",
|
||||
"DATE_CLOSED": "2024-08-24T09:03:15+00:00",
|
||||
"STATUS_SEMANTIC_ID": "S",
|
||||
"OPENED": "N",
|
||||
"ORIGINATOR_ID": null,
|
||||
"ORIGIN_ID": null,
|
||||
"MOVED_BY_ID": "1",
|
||||
"MOVED_TIME": "2024-08-24T09:03:15+00:00",
|
||||
"ADDRESS": "Pushkin st., b. 10",
|
||||
"ADDRESS_2": null,
|
||||
"ADDRESS_CITY": null,
|
||||
"ADDRESS_POSTAL_CODE": null,
|
||||
"ADDRESS_REGION": null,
|
||||
"ADDRESS_PROVINCE": null,
|
||||
"ADDRESS_COUNTRY": "Russia",
|
||||
"ADDRESS_COUNTRY_CODE": null,
|
||||
"ADDRESS_LOC_ADDR_ID": "66",
|
||||
"UTM_SOURCE": null,
|
||||
"UTM_MEDIUM": null,
|
||||
"UTM_CAMPAIGN": null,
|
||||
"UTM_CONTENT": null,
|
||||
"UTM_TERM": null,
|
||||
"LAST_ACTIVITY_BY": "1",
|
||||
"LAST_ACTIVITY_TIME": "2024-08-24T09:03:15+00:00",
|
||||
"EMAIL": [
|
||||
{
|
||||
"ID": "158",
|
||||
"VALUE_TYPE": "HOME",
|
||||
"VALUE": "yo@example.com",
|
||||
"TYPE_ID": "EMAIL"
|
||||
},
|
||||
{
|
||||
"ID": "160",
|
||||
"VALUE_TYPE": "WORK",
|
||||
"VALUE": "hi@example.com",
|
||||
"TYPE_ID": "EMAIL"
|
||||
}
|
||||
],
|
||||
"PHONE": [
|
||||
{
|
||||
"ID": "162",
|
||||
"VALUE_TYPE": "WORK",
|
||||
"VALUE": "88005553535",
|
||||
"TYPE_ID": "PHONE"
|
||||
}
|
||||
]
|
||||
},
|
||||
"time": {
|
||||
"start": 1724490196.80887,
|
||||
"finish": 1724490196.85079,
|
||||
"duration": 0.0419189929962158,
|
||||
"processing": 0.0176949501037598,
|
||||
"date_start": "2024-08-24T09:03:16+00:00",
|
||||
"date_finish": "2024-08-24T09:03:16+00:00",
|
||||
"operating_reset_at": 1724490796,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -39,7 +39,7 @@ Method at API documentation: [crm.lead.list](https://dev.1c-bitrix.ru/rest_help/
|
||||
Filter.Insert("TITLE" , "MegaClient");
|
||||
Filter.Insert("HAS_EMAIL", "Y");
|
||||
|
||||
Result = OPI_Bitrix24.GetLeadsList(URL, Filter, ,Token);
|
||||
Result = OPI_Bitrix24.GetLeadsList(URL, Filter, , Token);
|
||||
```
|
||||
|
||||
|
||||
@ -51,5 +51,18 @@ Method at API documentation: [crm.lead.list](https://dev.1c-bitrix.ru/rest_help/
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": [],
|
||||
"total": 0,
|
||||
"time": {
|
||||
"start": 1724490192.37401,
|
||||
"finish": 1724490192.41267,
|
||||
"duration": 0.0386598110198975,
|
||||
"processing": 0.0151891708374023,
|
||||
"date_start": "2024-08-24T09:03:12+00:00",
|
||||
"date_finish": "2024-08-24T09:03:12+00:00",
|
||||
"operating_reset_at": 1724490792,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -12,7 +12,7 @@ sidebar_position: 5
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
||||
| LeadID | --lead | Number, String | Task ID |
|
||||
| LeadID | --lead | Number, String | Lead ID |
|
||||
| FieldsStructure | --fields | Structure of KeyAndValue | Structure of lead fields |
|
||||
| Token | --token | String | Access token, when app auth method used |
|
||||
|
||||
@ -57,5 +57,17 @@ Method at API documentation: [crm.lead.update](https://dev.1c-bitrix.ru/rest_hel
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": true,
|
||||
"time": {
|
||||
"start": 1724490198.00253,
|
||||
"finish": 1724490198.16141,
|
||||
"duration": 0.158878087997437,
|
||||
"processing": 0.13422703742981,
|
||||
"date_start": "2024-08-24T09:03:18+00:00",
|
||||
"date_finish": "2024-08-24T09:03:18+00:00",
|
||||
"operating_reset_at": 1724490798,
|
||||
"operating": 0.134207010269165
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Get products requests limits
|
||||
Get requests limits for products managment methods
|
||||
|
||||
|
||||
|
||||
`Function GetProductsRequestsLimits(Val ClientID, Val APIKey) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| ClientID | --clientid | String | Client identifier |
|
||||
| APIKey | --apikey | String | API key |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [post /v4/product/info/limit](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetUploadQuota)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
|
||||
Result = OPI_Ozon.GetProductsRequestsLimits(ClientID, APIKey);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductsRequestsLimits --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
sidebar_position: 14
|
||||
---
|
||||
|
||||
# Add product video cover
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 8
|
||||
sidebar_position: 13
|
||||
---
|
||||
|
||||
# Add product video
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 10
|
||||
sidebar_position: 15
|
||||
---
|
||||
|
||||
# Complete the complex attribute
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Create products by Ozon ID
|
||||
@ -36,7 +36,7 @@ You can get an empty structure using the GetSimplifiedProductStructure method()
|
||||
|
||||
ItemStructure = New Structure;
|
||||
ItemStructure.Insert("name" , "New imported product");
|
||||
ItemStructure.Insert("sku" , 298789742);
|
||||
ItemStructure.Insert("sku" , 1626044001);
|
||||
ItemStructure.Insert("offer_id" , "91132");
|
||||
ItemStructure.Insert("price" , "1100");
|
||||
ItemStructure.Insert("old_price" , "1100");
|
||||
@ -50,10 +50,15 @@ You can get an empty structure using the GetSimplifiedProductStructure method()
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon CreateProductByOzonID --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --items %items%
|
||||
oint ozon CreateProductByOzonID --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --items %items%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"task_id": 1285532034,
|
||||
"unmatched_sku_list": []
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Create update product
|
||||
@ -88,5 +88,9 @@ Methods of product structure formation: GetProductStructure(), AddProductVideo()
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"task_id": 1285530068
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
sidebar_position: 11
|
||||
---
|
||||
|
||||
# Get attributes update structure
|
||||
@ -32,7 +32,7 @@ sidebar_position: 7
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetAttributesUpdateStructure --empty %empty%
|
||||
oint ozon GetAttributesUpdateStructure --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
sidebar_position: 8
|
||||
---
|
||||
|
||||
# Get product creation status
|
||||
|
@ -0,0 +1,48 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Get product description
|
||||
Get product description by IDs
|
||||
|
||||
|
||||
|
||||
`Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| ClientID | --clientid | String | Client identifier |
|
||||
| APIKey | --apikey | String | API key |
|
||||
| ProductID | --productid | String, Number | Product identifier |
|
||||
| SKU | --offerid | String, Number | Item identifier in the vendor's system (Article) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [post /v1/product/info/description](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetProductInfoDescription)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , SKU);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductDescription --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,55 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Get product information
|
||||
Gets product information by identifiers
|
||||
|
||||
|
||||
|
||||
`Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val SKU = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| ClientID | --clientid | String | Client identifier |
|
||||
| APIKey | --apikey | String | API key |
|
||||
| ProductID | --productid | String, Number | Product identifier |
|
||||
| SKU | --sku | String, Number | Product identifier in the Ozon system (SKU) |
|
||||
| SKU | --offerid | String, Number | Item identifier in the vendor's system (Article) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Specify the minimum price of the product after all promotions have been applied in your personal cabinet. The min_price parameter from the method response is being reworked and returns 0
|
||||
|
||||
The active_product parameter is deprecated, use the values of the visible parameter
|
||||
|
||||
The fbs_sku and fbo_sku parameters from the method response were disabled on August 15, 2023
|
||||
|
||||
Method at API documentation: [post /v2/product/info](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetProductInfoV2)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , SKU);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductInformation --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,54 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Get product list
|
||||
Gets a list of products with or without filter
|
||||
|
||||
|
||||
|
||||
`Function GetProductList(Val ClientID, Val APIKey, Val Filter = "", Val LastID = 0) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| ClientID | --clientid | String | Client identifier |
|
||||
| APIKey | --apikey | String | API key |
|
||||
| Filter | --filter | Structure of KeyAndValue | Product selection filter. See GetProductsFilterStructure |
|
||||
| LastID | --last | String, Number | ID of the last value (last_id) from the previous response |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [post /v2/product/list](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetProductList)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
|
||||
IDArray = New Array;
|
||||
IDArray.Add("143210608");
|
||||
|
||||
Filter = New Structure;
|
||||
Filter.Insert("visibility" , "ALL");
|
||||
Filter.Insert("offer_id" , IDArray);
|
||||
|
||||
Result = OPI_Ozon.GetProductList(ClientID, APIKey, Filter);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductList --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
sidebar_position: 9
|
||||
---
|
||||
|
||||
# Get product structure
|
||||
|
@ -0,0 +1,47 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Get products content rating
|
||||
Gets products content rating by SKU
|
||||
|
||||
|
||||
|
||||
`Function GetProductsContentRating(Val ClientID, Val APIKey, Val SKU) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| ClientID | --clientid | String | Client identifier |
|
||||
| APIKey | --apikey | String | API key |
|
||||
| SKU | --sku | String, Number, Array of String, Number | One or array of SKUs |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Method at API documentation: [post /v1/product/rating-by-sku](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetProductRatingBySku)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = 1626044001;
|
||||
|
||||
Result = OPI_Ozon.GetProductsContentRating(ClientID, APIKey, SKU);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductsContentRating --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -0,0 +1,41 @@
|
||||
---
|
||||
sidebar_position: 12
|
||||
---
|
||||
|
||||
# Get products filter structure
|
||||
Gets the structure for products list selecting in the GetProductList function
|
||||
|
||||
|
||||
|
||||
`Function GetProductsFilterStructure(Val Clear = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
| Clear | --empty | Boolean | True > structure with empty valuse, False > field descriptions at values |
|
||||
|
||||
|
||||
Returns: Structure of KeyAndValue - Filter fields structure
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
The description of the filter fields can be found on the documentation page for product list retrieving method: [post /v2/product/list](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetProductList)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Code example"
|
||||
Result = OPI_Ozon.GetProductsFilterStructure();
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductsFilterStructure --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
```json title="Result"
|
||||
|
||||
```
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
sidebar_position: 10
|
||||
---
|
||||
|
||||
# Get simplified product structure
|
||||
@ -29,7 +29,7 @@ sidebar_position: 6
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetSimplifiedProductStructure --empty %empty%
|
||||
oint ozon GetSimplifiedProductStructure --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Update products attributes
|
||||
@ -49,7 +49,7 @@ You can get an empty structure using the GetAttributesUpdateStructure method()
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon UpdateProductsAttributes --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --items %items%
|
||||
oint ozon UpdateProductsAttributes --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --items %items%
|
||||
|
||||
```
|
||||
|
||||
|
1
docs/ru/cli/Bitrix24/ИзменитьСделку.txt
Normal file
1
docs/ru/cli/Bitrix24/ИзменитьСделку.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 ИзменитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/ru/cli/Bitrix24/ПолучитьСделку.txt
Normal file
1
docs/ru/cli/Bitrix24/ПолучитьСделку.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 ПолучитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/ru/cli/Bitrix24/ПолучитьСписокСделок.txt
Normal file
1
docs/ru/cli/Bitrix24/ПолучитьСписокСделок.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 ПолучитьСписокСделок --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/ru/cli/Bitrix24/ПолучитьСтруктуруСделки.txt
Normal file
1
docs/ru/cli/Bitrix24/ПолучитьСтруктуруСделки.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 ПолучитьСтруктуруСделки --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/ru/cli/Bitrix24/ПолучитьСтруктуруФильтраСделок.txt
Normal file
1
docs/ru/cli/Bitrix24/ПолучитьСтруктуруФильтраСделок.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 ПолучитьСтруктуруФильтраСделок --empty %empty%
|
1
docs/ru/cli/Bitrix24/СоздатьСделку.txt
Normal file
1
docs/ru/cli/Bitrix24/СоздатьСделку.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 СоздатьСделку --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/ru/cli/Bitrix24/УдалитьСделку.txt
Normal file
1
docs/ru/cli/Bitrix24/УдалитьСделку.txt
Normal file
@ -0,0 +1 @@
|
||||
oint bitrix24 УдалитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
1
docs/ru/cli/Ozon/ПолучитьИнформациюОТоваре.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьИнформациюОТоваре.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьИнформациюОТоваре --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
1
docs/ru/cli/Ozon/ПолучитьКонтентРейтингТоваров.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьКонтентРейтингТоваров.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьКонтентРейтингТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
1
docs/ru/cli/Ozon/ПолучитьЛимитыРаботыСТоварами.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьЛимитыРаботыСТоварами.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьЛимитыРаботыСТоварами --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
1
docs/ru/cli/Ozon/ПолучитьОписаниеТовара.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьОписаниеТовара.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьОписаниеТовара --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
1
docs/ru/cli/Ozon/ПолучитьСписокТоваров.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьСписокТоваров.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьСписокТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
1
docs/ru/cli/Ozon/ПолучитьСтруктуруФильтраТоваров.txt
Normal file
1
docs/ru/cli/Ozon/ПолучитьСтруктуруФильтраТоваров.txt
Normal file
@ -0,0 +1 @@
|
||||
oint ozon ПолучитьСтруктуруФильтраТоваров --empty %empty%
|
5
docs/ru/data/Bitrix24/ИзменитьСделку.json
Normal file
5
docs/ru/data/Bitrix24/ИзменитьСделку.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"IDСделки": "",
|
||||
"Токен": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
5
docs/ru/data/Bitrix24/ПолучитьСделку.json
Normal file
5
docs/ru/data/Bitrix24/ПолучитьСделку.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"IDСделки": "",
|
||||
"Токен": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
4
docs/ru/data/Bitrix24/ПолучитьСписокСделок.json
Normal file
4
docs/ru/data/Bitrix24/ПолучитьСписокСделок.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"Токен": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
4
docs/ru/data/Bitrix24/ПолучитьСтруктуруСделки.json
Normal file
4
docs/ru/data/Bitrix24/ПолучитьСтруктуруСделки.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"Токен": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
4
docs/ru/data/Bitrix24/СоздатьСделку.json
Normal file
4
docs/ru/data/Bitrix24/СоздатьСделку.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"Токен": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
5
docs/ru/data/Bitrix24/УдалитьСделку.json
Normal file
5
docs/ru/data/Bitrix24/УдалитьСделку.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"URL": "b24-ar17wx.bitrix24.by",
|
||||
"IDСделки": "",
|
||||
"Токен": "6476c766006e9f06006b12e400000001000..."
|
||||
}
|
18
docs/ru/examples/Bitrix24/ИзменитьСделку.txt
Normal file
18
docs/ru/examples/Bitrix24/ИзменитьСделку.txt
Normal file
@ -0,0 +1,18 @@
|
||||
СтруктураПолей = Новый Структура;
|
||||
СтруктураПолей.Вставить("TITLE" , "Продажа в RUB");
|
||||
СтруктураПолей.Вставить("CURRENCY_ID" , "RUB");
|
||||
СтруктураПолей.Вставить("OPPORTUNITY" , 50000);
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ИзменитьСделку(URL, IDСделки, СтруктураПолей);
|
||||
|
||||
СтруктураПолей.Вставить("TITLE" , "Будущая сделка в RUB");
|
||||
СтруктураПолей.Вставить("BEGINDATE", "2025-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ИзменитьСделку(URL, IDСделки, СтруктураПолей, Токен);
|
10
docs/ru/examples/Bitrix24/ПолучитьСделку.txt
Normal file
10
docs/ru/examples/Bitrix24/ПолучитьСделку.txt
Normal file
@ -0,0 +1,10 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСделку(URL, IDСделки);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСделку(URL, IDСделки, Токен);
|
@ -9,4 +9,4 @@
|
||||
Фильтр.Вставить("TITLE" , "Мегаклиент");
|
||||
Фильтр.Вставить("HAS_EMAIL", "Y");
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокЛидов(URL, Фильтр, ,Токен);
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокЛидов(URL, Фильтр, , Токен);
|
||||
|
12
docs/ru/examples/Bitrix24/ПолучитьСписокСделок.txt
Normal file
12
docs/ru/examples/Bitrix24/ПолучитьСписокСделок.txt
Normal file
@ -0,0 +1,12 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокСделок(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Фильтр = Новый Структура;
|
||||
Фильтр.Вставить("TITLE" , "Продажа в RUB");
|
||||
Фильтр.Вставить("CURRENCY_ID", "RUB");
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокСделок(URL, Фильтр, , Токен);
|
8
docs/ru/examples/Bitrix24/ПолучитьСтруктуруСделки.txt
Normal file
8
docs/ru/examples/Bitrix24/ПолучитьСтруктуруСделки.txt
Normal file
@ -0,0 +1,8 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСтруктуруСделки(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСтруктуруСделки(URL, Токен);
|
@ -0,0 +1 @@
|
||||
Результат = OPI_Bitrix24.ПолучитьСтруктуруФильтраСделок();
|
26
docs/ru/examples/Bitrix24/СоздатьСделку.txt
Normal file
26
docs/ru/examples/Bitrix24/СоздатьСделку.txt
Normal file
@ -0,0 +1,26 @@
|
||||
СтруктураПолей = Новый Структура;
|
||||
СтруктураПолей.Вставить("TITLE" , "Плановая продажа");
|
||||
СтруктураПолей.Вставить("TYPE_ID" , "GOODS");
|
||||
СтруктураПолей.Вставить("STAGE_ID" , "NEW");
|
||||
СтруктураПолей.Вставить("COMPANY_ID" , 1);
|
||||
СтруктураПолей.Вставить("CONTACT_ID" , 3);
|
||||
СтруктураПолей.Вставить("OPENED" , "Y");
|
||||
СтруктураПолей.Вставить("ASSIGNED_BY_ID", 1);
|
||||
СтруктураПолей.Вставить("PROBABILITY" , 30);
|
||||
СтруктураПолей.Вставить("CURRENCY_ID" , "USD");
|
||||
СтруктураПолей.Вставить("OPPORTUNITY" , 5000);
|
||||
СтруктураПолей.Вставить("CATEGORY_ID" , 5);
|
||||
СтруктураПолей.Вставить("BEGINDATE" , "2024-01-01");
|
||||
СтруктураПолей.Вставить("CLOSEDATE" , "2030-01-01");
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Результат = OPI_Bitrix24.СоздатьСделку(URL, СтруктураПолей);
|
||||
|
||||
СтруктураПолей.Вставить("TITLE" , "Другая сделка");
|
||||
СтруктураПолей.Вставить("CLOSEDATE", "2031-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Результат = OPI_Bitrix24.СоздатьСделку(URL, СтруктураПолей, Токен);
|
10
docs/ru/examples/Bitrix24/УдалитьСделку.txt
Normal file
10
docs/ru/examples/Bitrix24/УдалитьСделку.txt
Normal file
@ -0,0 +1,10 @@
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.УдалитьСделку(URL, IDСделки);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.УдалитьСделку(URL, IDСделки, Токен);
|
68
docs/ru/md/Bitrix24/Deals-managment/Create-deal.md
Normal file
68
docs/ru/md/Bitrix24/Deals-managment/Create-deal.md
Normal file
@ -0,0 +1,68 @@
|
||||
---
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
# Создать сделку
|
||||
Создает новую сделку по структуре полей (см. ПолучитьСтруктуруСделки)
|
||||
|
||||
|
||||
|
||||
`Функция СоздатьСделку(Знач URL, Знач СтруктураПолей, Знач Токен = "") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| СтруктураПолей | --fields | Структура Из КлючИЗначение | Структура полей сделки (см. ПолучитьСтруктуруСделки) |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrix24
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [crm.deal.add](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_add.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
СтруктураПолей = Новый Структура;
|
||||
СтруктураПолей.Вставить("TITLE" , "Плановая продажа");
|
||||
СтруктураПолей.Вставить("TYPE_ID" , "GOODS");
|
||||
СтруктураПолей.Вставить("STAGE_ID" , "NEW");
|
||||
СтруктураПолей.Вставить("COMPANY_ID" , 1);
|
||||
СтруктураПолей.Вставить("CONTACT_ID" , 3);
|
||||
СтруктураПолей.Вставить("OPENED" , "Y");
|
||||
СтруктураПолей.Вставить("ASSIGNED_BY_ID", 1);
|
||||
СтруктураПолей.Вставить("PROBABILITY" , 30);
|
||||
СтруктураПолей.Вставить("CURRENCY_ID" , "USD");
|
||||
СтруктураПолей.Вставить("OPPORTUNITY" , 5000);
|
||||
СтруктураПолей.Вставить("CATEGORY_ID" , 5);
|
||||
СтруктураПолей.Вставить("BEGINDATE" , "2024-01-01");
|
||||
СтруктураПолей.Вставить("CLOSEDATE" , "2030-01-01");
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Результат = OPI_Bitrix24.СоздатьСделку(URL, СтруктураПолей);
|
||||
|
||||
СтруктураПолей.Вставить("TITLE" , "Другая сделка");
|
||||
СтруктураПолей.Вставить("CLOSEDATE", "2031-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Результат = OPI_Bitrix24.СоздатьСделку(URL, СтруктураПолей, Токен);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 СоздатьСделку --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
52
docs/ru/md/Bitrix24/Deals-managment/Delete-deal.md
Normal file
52
docs/ru/md/Bitrix24/Deals-managment/Delete-deal.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
# Удалить сделку
|
||||
Удаляет сделку по ID
|
||||
|
||||
|
||||
|
||||
`Функция УдалитьСделку(Знач URL, Знач IDСделки, Знач Токен = "") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| IDСделки | --deal | Число, Строка | ID сделки |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrix24
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [crm.deal.delete](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_delete.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.УдалитьСделку(URL, IDСделки);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.УдалитьСделку(URL, IDСделки, Токен);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 УдалитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
49
docs/ru/md/Bitrix24/Deals-managment/Get-deal-structure.md
Normal file
49
docs/ru/md/Bitrix24/Deals-managment/Get-deal-structure.md
Normal file
@ -0,0 +1,49 @@
|
||||
---
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
# Получить структуру сделки
|
||||
Получает структуру с описанием полей для создания сделки
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьСтруктуруСделки(Знач URL, Знач Токен = "") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrix24
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [crm.deal.fields](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_fields.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСтруктуруСделки(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСтруктуруСделки(URL, Токен);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСтруктуруСделки --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
52
docs/ru/md/Bitrix24/Deals-managment/Get-deal.md
Normal file
52
docs/ru/md/Bitrix24/Deals-managment/Get-deal.md
Normal file
@ -0,0 +1,52 @@
|
||||
---
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
# Получить сделку
|
||||
Получает сделку по ID
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьСделку(Знач URL, Знач IDСделки, Знач Токен = "") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| IDСделки | --deal | Число,Строка | ID сделки |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrix24
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [crm.deal.get](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_get.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСделку(URL, IDСделки);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСделку(URL, IDСделки, Токен);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
@ -0,0 +1,38 @@
|
||||
---
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
# Получить структуру фильтра сделок
|
||||
Возвращает структуру полей для фильтрации сделок в методе ПолучитьСписокСделок
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьСтруктуруФильтраСделок(Знач Пустая = Ложь) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| Пустая | --empty | Булево | Истина > структура с пустыми значениями, Ложь > в значениях будут описания полей |
|
||||
|
||||
|
||||
Возвращаемое значение: Структура Из КлючИЗначение - Структура полей
|
||||
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
Результат = OPI_Bitrix24.ПолучитьСтруктуруФильтраСделок();
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСтруктуруФильтраСделок --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
55
docs/ru/md/Bitrix24/Deals-managment/Get-deals-list.md
Normal file
55
docs/ru/md/Bitrix24/Deals-managment/Get-deals-list.md
Normal file
@ -0,0 +1,55 @@
|
||||
---
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
# Получить список сделок
|
||||
Получает список сделок (50 шт. за запрос максимум) с фильтром или без (см. ПолучитьСтруктуруФильтраСделок)
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьСписокСделок(Знач URL, Знач Фильтр = "", Знач Отступ = 0, Знач Токен = "") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| Фильтр | --filter | Структура из КлючИЗначение | Структура отбора сделок (см. ПолучитьСтруктуруФильтраСделок) |
|
||||
| Отступ | --offset | Число, Строка | Отступ от начала списка для получения сделок > 50 шт. рекурсивно |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrix24
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [crm.deal.list](https://dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_list.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокСделок(URL);
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
|
||||
Фильтр = Новый Структура;
|
||||
Фильтр.Вставить("TITLE" , "Продажа в RUB");
|
||||
Фильтр.Вставить("CURRENCY_ID", "RUB");
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокСделок(URL, Фильтр, , Токен);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСписокСделок --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
62
docs/ru/md/Bitrix24/Deals-managment/Update-deal.md
Normal file
62
docs/ru/md/Bitrix24/Deals-managment/Update-deal.md
Normal file
@ -0,0 +1,62 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Изменить сделку
|
||||
Изменяет существующую сделку
|
||||
|
||||
|
||||
|
||||
`Функция ИзменитьСделку(Знач URL, Знач IDСделки, Знач СтруктураПолей, Знач Токен = "") Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| IDСделки | --deal | Число, Строка | ID сделки |
|
||||
| СтруктураПолей | --fields | Структура Из КлючИЗначение | Структура полей сделки |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Bitrix24
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [crm.deal.update](https://https:
|
||||
dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_update.php)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
СтруктураПолей = Новый Структура;
|
||||
СтруктураПолей.Вставить("TITLE" , "Продажа в RUB");
|
||||
СтруктураПолей.Вставить("CURRENCY_ID" , "RUB");
|
||||
СтруктураПолей.Вставить("OPPORTUNITY" , 50000);
|
||||
|
||||
URL = "https://b24-ar17wx.bitrix24.by/rest/1/1o2...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ИзменитьСделку(URL, IDСделки, СтруктураПолей);
|
||||
|
||||
СтруктураПолей.Вставить("TITLE" , "Будущая сделка в RUB");
|
||||
СтруктураПолей.Вставить("BEGINDATE", "2025-01-01");
|
||||
|
||||
URL = "b24-ar17wx.bitrix24.by";
|
||||
Токен = "6476c766006e9f06006b12e400000001000...";
|
||||
IDСделки = "";
|
||||
|
||||
Результат = OPI_Bitrix24.ИзменитьСделку(URL, IDСделки, СтруктураПолей, Токен);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ИзменитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
4
docs/ru/md/Bitrix24/Deals-managment/_category_.json
Normal file
4
docs/ru/md/Bitrix24/Deals-managment/_category_.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"label": "Работа со сделками",
|
||||
"position": "19"
|
||||
}
|
@ -12,7 +12,7 @@ sidebar_position: 2
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| IDЛида | --lead | Число, Строка | ID задачи |
|
||||
| IDЛида | --lead | Число, Строка | ID лида |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
||||
|
@ -39,7 +39,7 @@ sidebar_position: 4
|
||||
Фильтр.Вставить("TITLE" , "Мегаклиент");
|
||||
Фильтр.Вставить("HAS_EMAIL", "Y");
|
||||
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокЛидов(URL, Фильтр, ,Токен);
|
||||
Результат = OPI_Bitrix24.ПолучитьСписокЛидов(URL, Фильтр, , Токен);
|
||||
```
|
||||
|
||||
|
||||
|
@ -12,7 +12,7 @@ sidebar_position: 5
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| URL | --url | Строка | URL внешнего вебхука или адрес Bitrix24 при использовании токена |
|
||||
| IDЛида | --lead | Число, Строка | ID задачи |
|
||||
| IDЛида | --lead | Число, Строка | ID лида |
|
||||
| СтруктураПолей | --fields | Структура Из КлючИЗначение | Структура полей лида |
|
||||
| Токен | --token | Строка | Токен авторизации, если используется не вебхук |
|
||||
|
||||
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
# Получить лимиты работы с товарами
|
||||
Получает данные о лимитах на ассортимент, создание и обновление товаров
|
||||
|
||||
|
||||
|
||||
`Функция ПолучитьЛимитыРаботыСТоварами(Знач IDКлиента, Знач КлючAPI) Экспорт`
|
||||
|
||||
| Параметр | CLI опция | Тип | Назначение |
|
||||
|-|-|-|-|
|
||||
| IDКлиента | --clientid | Строка | Идентификатор клиента |
|
||||
| КлючAPI | --apikey | Строка | API ключ |
|
||||
|
||||
|
||||
Возвращаемое значение: Соответствие Из КлючИЗначение - сериализованный JSON ответа от Ozon Seller API
|
||||
|
||||
<br/>
|
||||
|
||||
:::tip
|
||||
Метод в документации API: [post /v4/product/info/limit](https://docs.ozon.ru/api/seller/#operation/ProductAPI_GetUploadQuota)
|
||||
:::
|
||||
<br/>
|
||||
|
||||
|
||||
```bsl title="Пример кода"
|
||||
IDКлиента = "2128753";
|
||||
КлючAPI = "7cc90d26-33e4-499b...";
|
||||
|
||||
Результат = OPI_Ozon.ПолучитьЛимитыРаботыСТоварами(IDКлиента, КлючAPI);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьЛимитыРаботыСТоварами --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
```
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
sidebar_position: 9
|
||||
sidebar_position: 14
|
||||
---
|
||||
|
||||
# Добавить видеообложку товара
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user