mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-02-01 13:17:58 +02:00
Правка перевода Ozon
This commit is contained in:
parent
ee4b083625
commit
3904632bae
4
.github/workflows/oint_test_full_en.yml
vendored
4
.github/workflows/oint_test_full_en.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/en/OInt/tests/Modules/internal/OPI_Tests.os "B24_LeadsManagment"
|
||||
|
||||
- name: Deals managment
|
||||
if: ${{ cancelled() }} == false
|
||||
run: oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./src/en/OInt/tests/Modules/internal/OPI_Tests.os "B24_DealsManagment"
|
||||
|
||||
- name: Записать логи
|
||||
if: ${{ cancelled() }} == false
|
||||
uses: actions/cache/save@v3
|
||||
|
@ -1,5 +1,5 @@
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , SKU);
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , Article);
|
||||
|
@ -1,5 +1,5 @@
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , SKU);
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , Article);
|
||||
|
@ -59,7 +59,7 @@ Method at API documentation: [crm.deal.add](https://dev.1c-bitrix.ru/rest_help/c
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 CreateDeal --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 CreateDeal --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -43,7 +43,7 @@ Method at API documentation: [crm.deal.delete](https://dev.1c-bitrix.ru/rest_hel
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 DeleteDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 DeleteDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -40,7 +40,7 @@ Method at API documentation: [crm.deal.fields](https://dev.1c-bitrix.ru/rest_hel
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDealStructure --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 GetDealStructure --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -43,7 +43,7 @@ Method at API documentation: [crm.deal.get](https://dev.1c-bitrix.ru/rest_help/c
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 GetDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -29,7 +29,7 @@ sidebar_position: 7
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDealsFilterStructure --empty %empty%
|
||||
oint bitrix24 GetDealsFilterStructure --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
|
@ -46,7 +46,7 @@ Method at API documentation: [crm.deal.list](https://dev.1c-bitrix.ru/rest_help/
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 GetDealsList --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 GetDealsList --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -53,7 +53,7 @@ dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_update.php)
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint bitrix24 UpdateDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 UpdateDeal --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -36,7 +36,7 @@ Method at API documentation: [post /v4/product/info/limit](https://docs.ozon.ru/
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductsRequestsLimits --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
||||
oint ozon GetProductsRequestsLimits --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
||||
|
||||
```
|
||||
|
||||
|
@ -7,14 +7,14 @@ sidebar_position: 3
|
||||
|
||||
|
||||
|
||||
`Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = "") Export`
|
||||
`Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val Article = "") 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) |
|
||||
| Article | --offerid | String, Number | Item identifier in the vendor's system (Article) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
@ -30,16 +30,16 @@ Method at API documentation: [post /v1/product/info/description](https://docs.oz
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , SKU);
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , Article);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductDescription --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
||||
oint ozon GetProductDescription --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
||||
|
||||
```
|
||||
|
||||
|
@ -7,7 +7,7 @@ sidebar_position: 2
|
||||
|
||||
|
||||
|
||||
`Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val SKU = "") Export`
|
||||
`Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val Article = "") Export`
|
||||
|
||||
| Parameter | CLI option | Type | Description |
|
||||
|-|-|-|-|
|
||||
@ -15,7 +15,7 @@ sidebar_position: 2
|
||||
| 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) |
|
||||
| Article | --offerid | String, Number | Item identifier in the vendor's system (Article) |
|
||||
|
||||
|
||||
Returns: Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
@ -37,16 +37,16 @@ Specify the minimum price of the product after all promotions have been applied
|
||||
```bsl title="Code example"
|
||||
ClientID = "2128753";
|
||||
APIKey = "7cc90d26-33e4-499b...";
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , SKU);
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , Article);
|
||||
```
|
||||
|
||||
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductInformation --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
||||
oint ozon GetProductInformation --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
||||
|
||||
```
|
||||
|
||||
|
@ -45,7 +45,7 @@ Method at API documentation: [post /v2/product/list](https://docs.ozon.ru/api/se
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductList --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
||||
oint ozon GetProductList --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
||||
|
||||
```
|
||||
|
||||
|
@ -38,7 +38,7 @@ Method at API documentation: [post /v1/product/rating-by-sku](https://docs.ozon.
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductsContentRating --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
||||
oint ozon GetProductsContentRating --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
||||
|
||||
```
|
||||
|
||||
|
@ -32,7 +32,7 @@ The description of the filter fields can be found on the documentation page for
|
||||
|
||||
```sh title="CLI command example"
|
||||
|
||||
oint ozon GetProductsFilterStructure --empty %empty%
|
||||
oint ozon GetProductsFilterStructure --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
|
@ -59,10 +59,22 @@ sidebar_position: 1
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 СоздатьСделку --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 СоздатьСделку --url "b24-ar17wx.bitrix24.by" --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": 66,
|
||||
"time": {
|
||||
"start": 1724580114.24842,
|
||||
"finish": 1724580114.47276,
|
||||
"duration": 0.224336862564087,
|
||||
"processing": 0.199005126953125,
|
||||
"date_start": "2024-08-25T10:01:54+00:00",
|
||||
"date_finish": "2024-08-25T10:01:54+00:00",
|
||||
"operating_reset_at": 1724580714,
|
||||
"operating": 0.198983907699585
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -43,10 +43,22 @@ sidebar_position: 2
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 УдалитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 УдалитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": true,
|
||||
"time": {
|
||||
"start": 1724580118.24201,
|
||||
"finish": 1724580118.34407,
|
||||
"duration": 0.102062940597534,
|
||||
"processing": 0.0794758796691894,
|
||||
"date_start": "2024-08-25T10:01:58+00:00",
|
||||
"date_finish": "2024-08-25T10:01:58+00:00",
|
||||
"operating_reset_at": 1724580718,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -40,10 +40,441 @@ sidebar_position: 6
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСтруктуруСделки --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 ПолучитьСтруктуруСделки --url "b24-ar17wx.bitrix24.by" --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"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": "Название"
|
||||
},
|
||||
"TYPE_ID": {
|
||||
"type": "crm_status",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"statusType": "DEAL_TYPE",
|
||||
"title": "Тип"
|
||||
},
|
||||
"CATEGORY_ID": {
|
||||
"type": "crm_category",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": true,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Воронка"
|
||||
},
|
||||
"STAGE_ID": {
|
||||
"type": "crm_status",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"statusType": "DEAL_STAGE",
|
||||
"title": "Стадия сделки"
|
||||
},
|
||||
"STAGE_SEMANTIC_ID": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Группа стадии"
|
||||
},
|
||||
"IS_NEW": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Новая сделка"
|
||||
},
|
||||
"IS_RECURRING": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Регулярная сделка"
|
||||
},
|
||||
"IS_RETURN_CUSTOMER": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Повторная сделка"
|
||||
},
|
||||
"IS_REPEATED_APPROACH": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Повторное обращение"
|
||||
},
|
||||
"PROBABILITY": {
|
||||
"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"
|
||||
},
|
||||
"TAX_VALUE": {
|
||||
"type": "double",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Ставка налога"
|
||||
},
|
||||
"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": "Контакты"
|
||||
},
|
||||
"QUOTE_ID": {
|
||||
"type": "crm_quote",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Предложение",
|
||||
"settings": {
|
||||
"parentEntityTypeId": 7
|
||||
}
|
||||
},
|
||||
"BEGINDATE": {
|
||||
"type": "date",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дата начала"
|
||||
},
|
||||
"CLOSEDATE": {
|
||||
"type": "date",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дата завершения"
|
||||
},
|
||||
"OPENED": {
|
||||
"type": "char",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Доступна для всех"
|
||||
},
|
||||
"CLOSED": {
|
||||
"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": "Комментарий"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"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": "Дополнительно об источнике"
|
||||
},
|
||||
"LEAD_ID": {
|
||||
"type": "crm_lead",
|
||||
"isRequired": false,
|
||||
"isReadOnly": true,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Лид",
|
||||
"settings": {
|
||||
"parentEntityTypeId": 1
|
||||
}
|
||||
},
|
||||
"ADDITIONAL_INFO": {
|
||||
"type": "string",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"isImmutable": false,
|
||||
"isMultiple": false,
|
||||
"isDynamic": false,
|
||||
"title": "Дополнительная информация"
|
||||
},
|
||||
"LOCATION_ID": {
|
||||
"type": "location",
|
||||
"isRequired": false,
|
||||
"isReadOnly": false,
|
||||
"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"
|
||||
}
|
||||
},
|
||||
"time": {
|
||||
"start": 1724580112.9612,
|
||||
"finish": 1724580112.99473,
|
||||
"duration": 0.0335350036621094,
|
||||
"processing": 0.0105230808258057,
|
||||
"date_start": "2024-08-25T10:01:52+00:00",
|
||||
"date_finish": "2024-08-25T10:01:52+00:00",
|
||||
"operating_reset_at": 1724580712,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -43,10 +43,67 @@ sidebar_position: 3
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 ПолучитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"ID": "64",
|
||||
"TITLE": "Плановая продажа",
|
||||
"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-25T10:01:53+00:00",
|
||||
"DATE_MODIFY": "2024-08-25T10:01:53+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-25T10:01:53+00:00",
|
||||
"LAST_ACTIVITY_TIME": "2024-08-25T10:01:53+00:00",
|
||||
"UTM_SOURCE": null,
|
||||
"UTM_MEDIUM": null,
|
||||
"UTM_CAMPAIGN": null,
|
||||
"UTM_CONTENT": null,
|
||||
"UTM_TERM": null,
|
||||
"LAST_ACTIVITY_BY": "1"
|
||||
},
|
||||
"time": {
|
||||
"start": 1724580115.60249,
|
||||
"finish": 1724580115.6575,
|
||||
"duration": 0.0550057888031006,
|
||||
"processing": 0.0215010643005371,
|
||||
"date_start": "2024-08-25T10:01:55+00:00",
|
||||
"date_finish": "2024-08-25T10:01:55+00:00",
|
||||
"operating_reset_at": 1724580715,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -29,10 +29,36 @@ sidebar_position: 7
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСтруктуруФильтраСделок --empty %empty%
|
||||
oint bitrix24 ПолучитьСтруктуруФильтраСделок --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"ID": "<идентификатор сделки>",
|
||||
"ASSIGNED_BY_ID": "<идентификатор ответственного>",
|
||||
"BEGINDATE": "<дата начала>",
|
||||
"CATEGORY_ID": "<идентификатор направления>",
|
||||
"CLOSEDATE": "<дата завершения>",
|
||||
"COMPANY_ID": "<идентификатор компании>",
|
||||
"CONTACT_ID": "<идентификатор контакта>",
|
||||
"CREATED_BY_ID": "<идентификатор автора>",
|
||||
"CURRENCY_ID": "<идентификатор валюты>",
|
||||
"DATE_CREATE": "<дата создания>",
|
||||
"DATE_MODIFY": "<дата изменения>",
|
||||
"IS_NEW": "<признак новой сделки (Y|N)>",
|
||||
"IS_RECURRING": "<признак шаблона (Y|N)>",
|
||||
"IS_RETURN_CUSTOMER": "<признак повторного лида (Y|N)>",
|
||||
"LEAD_ID": "<идентификатор привязанного лида>",
|
||||
"MODIFY_BY_ID": "<идентификатор автора последнего изменения>",
|
||||
"MOVED_BY_ID": "<идентификатор автора перемещения сделки на текущую стадию>",
|
||||
"MOVED_TIME": "<дата перемещения сделки на текущую стадию>",
|
||||
"OPENED": "<признак доступен для всех (Y|N)>",
|
||||
"OPPORTUNITY": "<предполагаемая сумма>",
|
||||
"PROBABILITY": "<вероятность>",
|
||||
"REQUISITE_ID": "<идентификатор реквизита>",
|
||||
"STAGE_ID": "<идентификатор стадии>",
|
||||
"TITLE": "<название сделки (можно искать по шаблону [%_])>",
|
||||
"TYPE_ID": "<тип сделки>"
|
||||
}
|
||||
```
|
||||
|
@ -46,10 +46,70 @@ sidebar_position: 4
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ПолучитьСписокСделок --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 ПолучитьСписокСделок --url "b24-ar17wx.bitrix24.by" --filter %filter% --offset %offset% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": [
|
||||
{
|
||||
"ID": "52",
|
||||
"TITLE": "Продажа в RUB",
|
||||
"TYPE_ID": "GOODS",
|
||||
"STAGE_ID": "NEW",
|
||||
"PROBABILITY": "30",
|
||||
"CURRENCY_ID": "RUB",
|
||||
"OPPORTUNITY": "50000.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-25T08:26:58+00:00",
|
||||
"DATE_MODIFY": "2024-08-25T08:26:59+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-25T08:26:58+00:00",
|
||||
"LAST_ACTIVITY_TIME": "2024-08-25T08:26:58+00:00",
|
||||
"UTM_SOURCE": null,
|
||||
"UTM_MEDIUM": null,
|
||||
"UTM_CAMPAIGN": null,
|
||||
"UTM_CONTENT": null,
|
||||
"UTM_TERM": null,
|
||||
"LAST_ACTIVITY_BY": "1"
|
||||
}
|
||||
],
|
||||
"total": 1,
|
||||
"time": {
|
||||
"start": 1724580119.407,
|
||||
"finish": 1724580119.45164,
|
||||
"duration": 0.0446369647979736,
|
||||
"processing": 0.0162379741668701,
|
||||
"date_start": "2024-08-25T10:01:59+00:00",
|
||||
"date_finish": "2024-08-25T10:01:59+00:00",
|
||||
"operating_reset_at": 1724580719,
|
||||
"operating": 0
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -53,10 +53,22 @@ dev.1c-bitrix.ru/rest_help/crm/cdeals/crm_deal_update.php)
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint bitrix24 ИзменитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
oint bitrix24 ИзменитьСделку --url "b24-ar17wx.bitrix24.by" --deal %deal% --fields %fields% --token "6476c766006e9f06006b12e400000001000..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": true,
|
||||
"time": {
|
||||
"start": 1724580116.80617,
|
||||
"finish": 1724580117.05249,
|
||||
"duration": 0.246319055557251,
|
||||
"processing": 0.223644971847534,
|
||||
"date_start": "2024-08-25T10:01:56+00:00",
|
||||
"date_finish": "2024-08-25T10:01:57+00:00",
|
||||
"operating_reset_at": 1724580716,
|
||||
"operating": 0.223623991012573
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -36,10 +36,25 @@ sidebar_position: 5
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьЛимитыРаботыСТоварами --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
||||
oint ozon ПолучитьЛимитыРаботыСТоварами --clientid "2128753" --apikey "7cc90d26-33e4-499b..."
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"daily_create": {
|
||||
"usage": 0,
|
||||
"limit": 1500,
|
||||
"reset_at": "2024-08-26T00:00:00Z"
|
||||
},
|
||||
"daily_update": {
|
||||
"usage": 2,
|
||||
"limit": 5000,
|
||||
"reset_at": "2024-08-26T00:00:00Z"
|
||||
},
|
||||
"total": {
|
||||
"usage": 2,
|
||||
"limit": 20000
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -39,10 +39,17 @@ sidebar_position: 3
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьОписаниеТовара --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
||||
oint ozon ПолучитьОписаниеТовара --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --offerid %offerid%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"id": 1111588191,
|
||||
"offer_id": "143210608",
|
||||
"name": "Комплект защитных плёнок для X3 NFC. Темный хлопок",
|
||||
"description": ""
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -46,10 +46,92 @@ sidebar_position: 2
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьИнформациюОТоваре --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
||||
oint ozon ПолучитьИнформациюОТоваре --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --productid %productid% --sku %sku% --offerid %offerid%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"result": {
|
||||
"id": 1111588191,
|
||||
"name": "Комплект защитных плёнок для X3 NFC. Темный хлопок",
|
||||
"offer_id": "143210608",
|
||||
"barcode": "",
|
||||
"buybox_price": "",
|
||||
"category_id": 0,
|
||||
"created_at": "2024-07-15T06:19:47.810185Z",
|
||||
"images": [
|
||||
"https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture2.jpg"
|
||||
],
|
||||
"marketing_price": "",
|
||||
"min_ozon_price": "",
|
||||
"old_price": "1100.0000",
|
||||
"premium_price": "",
|
||||
"price": "1000.0000",
|
||||
"recommended_price": "",
|
||||
"min_price": "",
|
||||
"sources": [],
|
||||
"stocks": {
|
||||
"coming": 0,
|
||||
"present": 0,
|
||||
"reserved": 0
|
||||
},
|
||||
"errors": [],
|
||||
"vat": "0.100000",
|
||||
"visible": false,
|
||||
"visibility_details": {
|
||||
"has_price": true,
|
||||
"has_stock": false,
|
||||
"active_product": false
|
||||
},
|
||||
"price_index": "0.00",
|
||||
"commissions": [],
|
||||
"volume_weight": 0.1,
|
||||
"is_prepayment": false,
|
||||
"is_prepayment_allowed": true,
|
||||
"images360": [],
|
||||
"color_image": "",
|
||||
"primary_image": "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg",
|
||||
"status": {
|
||||
"state": "unmatched",
|
||||
"state_failed": "",
|
||||
"moderate_status": "",
|
||||
"decline_reasons": [],
|
||||
"validation_state": "pending",
|
||||
"state_name": "Не продается",
|
||||
"state_description": "Создается",
|
||||
"is_failed": false,
|
||||
"is_created": false,
|
||||
"state_tooltip": "",
|
||||
"item_errors": [],
|
||||
"state_updated_at": "2024-08-25T10:00:47.361287Z"
|
||||
},
|
||||
"state": "",
|
||||
"service_type": "IS_CODE_SERVICE",
|
||||
"fbo_sku": 0,
|
||||
"fbs_sku": 0,
|
||||
"currency_code": "RUB",
|
||||
"is_kgt": false,
|
||||
"discounted_stocks": {
|
||||
"coming": 0,
|
||||
"present": 0,
|
||||
"reserved": 0
|
||||
},
|
||||
"is_discounted": false,
|
||||
"has_discounted_item": false,
|
||||
"barcodes": [],
|
||||
"updated_at": "2024-08-25T10:00:19.746188Z",
|
||||
"price_indexes": {
|
||||
"price_index": "WITHOUT_INDEX",
|
||||
"external_index_data": null,
|
||||
"ozon_index_data": null,
|
||||
"self_marketplaces_index_data": null
|
||||
},
|
||||
"sku": 0,
|
||||
"description_category_id": 17028922,
|
||||
"type_id": 95911,
|
||||
"is_archived": false,
|
||||
"is_autoarchived": false
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -45,7 +45,7 @@ sidebar_position: 1
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьСписокТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
||||
oint ozon ПолучитьСписокТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --filter %filter% --last %last%
|
||||
|
||||
```
|
||||
|
||||
|
@ -38,10 +38,139 @@ sidebar_position: 4
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьКонтентРейтингТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
||||
oint ozon ПолучитьКонтентРейтингТоваров --clientid "2128753" --apikey "7cc90d26-33e4-499b..." --sku %sku%
|
||||
|
||||
```
|
||||
|
||||
```json title="Результат"
|
||||
|
||||
{
|
||||
"products": [
|
||||
{
|
||||
"sku": 1626044001,
|
||||
"rating": 70,
|
||||
"groups": [
|
||||
{
|
||||
"key": "important_attributes",
|
||||
"name": "Важные атрибуты",
|
||||
"rating": 100,
|
||||
"weight": 30,
|
||||
"conditions": [
|
||||
{
|
||||
"key": "important_2",
|
||||
"description": "Заполнено 2 атрибута и более",
|
||||
"fulfilled": true,
|
||||
"cost": 50
|
||||
},
|
||||
{
|
||||
"key": "important_50_percent",
|
||||
"description": "Заполнено более 50% атрибутов",
|
||||
"fulfilled": true,
|
||||
"cost": 25
|
||||
},
|
||||
{
|
||||
"key": "important_70_percent",
|
||||
"description": "Заполнено более 70% атрибутов",
|
||||
"fulfilled": true,
|
||||
"cost": 25
|
||||
}
|
||||
],
|
||||
"improve_attributes": [],
|
||||
"improve_at_least": 0
|
||||
},
|
||||
{
|
||||
"key": "other_attributes",
|
||||
"name": "Остальные атрибуты",
|
||||
"rating": 100,
|
||||
"weight": 25,
|
||||
"conditions": [
|
||||
{
|
||||
"key": "other_2",
|
||||
"description": "Заполнено 2 атрибута и более",
|
||||
"fulfilled": true,
|
||||
"cost": 50
|
||||
},
|
||||
{
|
||||
"key": "other_50_percent",
|
||||
"description": "Заполнено более 50% атрибутов",
|
||||
"fulfilled": true,
|
||||
"cost": 50
|
||||
}
|
||||
],
|
||||
"improve_attributes": [],
|
||||
"improve_at_least": 0
|
||||
},
|
||||
{
|
||||
"key": "text",
|
||||
"name": "Текстовое описание",
|
||||
"rating": 50,
|
||||
"weight": 20,
|
||||
"conditions": [
|
||||
{
|
||||
"key": "text_annotation_100_chars",
|
||||
"description": "Аннотация более 100 знаков",
|
||||
"fulfilled": true,
|
||||
"cost": 25
|
||||
},
|
||||
{
|
||||
"key": "text_annotation_500_chars",
|
||||
"description": "Аннотация более 500 знаков",
|
||||
"fulfilled": true,
|
||||
"cost": 25
|
||||
},
|
||||
{
|
||||
"key": "text_rich",
|
||||
"description": "Заполнен Rich-контент",
|
||||
"fulfilled": false,
|
||||
"cost": 100
|
||||
}
|
||||
],
|
||||
"improve_attributes": [
|
||||
{
|
||||
"id": 11254,
|
||||
"name": "Rich-контент JSON"
|
||||
}
|
||||
],
|
||||
"improve_at_least": 1
|
||||
},
|
||||
{
|
||||
"key": "media",
|
||||
"name": "Медиа",
|
||||
"rating": 20,
|
||||
"weight": 25,
|
||||
"conditions": [
|
||||
{
|
||||
"key": "media_video_cover",
|
||||
"description": "Добавлена видеообложка",
|
||||
"fulfilled": false,
|
||||
"cost": 50
|
||||
},
|
||||
{
|
||||
"key": "media_video",
|
||||
"description": "Добавлено видео",
|
||||
"fulfilled": false,
|
||||
"cost": 30
|
||||
},
|
||||
{
|
||||
"key": "media_images_3",
|
||||
"description": "Добавлено 3 изображения и более",
|
||||
"fulfilled": true,
|
||||
"cost": 20
|
||||
}
|
||||
],
|
||||
"improve_attributes": [
|
||||
{
|
||||
"id": 21841,
|
||||
"name": "Озон.Видео: ссылка"
|
||||
},
|
||||
{
|
||||
"id": 21845,
|
||||
"name": "Озон.Видеообложка: ссылка"
|
||||
}
|
||||
],
|
||||
"improve_at_least": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -32,7 +32,7 @@ sidebar_position: 12
|
||||
|
||||
```sh title="Пример команды CLI"
|
||||
|
||||
oint ozon ПолучитьСтруктуруФильтраТоваров --empty %empty%
|
||||
oint ozon ПолучитьСтруктуруФильтраТоваров --empty %empty%
|
||||
|
||||
```
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -272,18 +272,18 @@ EndFunction
|
||||
// APIKey - String - API key - apikey
|
||||
// ProductID - String, Number - Product identifier - productid
|
||||
// SKU - String, Number - Product identifier in the Ozon system (SKU) - sku
|
||||
// SKU - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
// Article - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val SKU = "") Export
|
||||
Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val Article = "") Export
|
||||
|
||||
URL = "https://api-seller.ozon.ru/v2/product/info";
|
||||
|
||||
Headers = CreateRequestHeaders(ClientID, APIKey);
|
||||
|
||||
Parameters = New Structure;
|
||||
OPI_Tools.AddField("offer_id" , SKU , "String" , Parameters);
|
||||
OPI_Tools.AddField("offer_id" , Article , "String" , Parameters);
|
||||
OPI_Tools.AddField("product_id", ProductID, "Number" , Parameters);
|
||||
OPI_Tools.AddField("sku" , SKU , "Number" , Parameters);
|
||||
|
||||
@ -303,18 +303,18 @@ EndFunction
|
||||
// ClientID - String - Client identifier - clientid
|
||||
// APIKey - String - API key - apikey
|
||||
// ProductID - String, Number - Product identifier - productid
|
||||
// SKU - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
// Article - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = "") Export
|
||||
Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val Article = "") Export
|
||||
|
||||
URL = "https://api-seller.ozon.ru/v1/product/info/description";
|
||||
|
||||
Headers = CreateRequestHeaders(ClientID, APIKey);
|
||||
|
||||
Parameters = New Structure;
|
||||
OPI_Tools.AddField("offer_id" , SKU , "String" , Parameters);
|
||||
OPI_Tools.AddField("offer_id" , Article , "String" , Parameters);
|
||||
OPI_Tools.AddField("product_id", ProductID, "Number" , Parameters);
|
||||
|
||||
Response = OPI_Tools.Post(URL, Parameters, Headers);
|
||||
@ -471,7 +471,7 @@ Function GetProductStructure(Val Clear = False) Export
|
||||
ItemStructure = New Structure;
|
||||
ItemStructure.Insert("description_category_id", "<Product category ID>");
|
||||
ItemStructure.Insert("name" , "<product name>");
|
||||
ItemStructure.Insert("offer_id" , "<offer>");
|
||||
ItemStructure.Insert("offer_id" , "<article>");
|
||||
ItemStructure.Insert("barcode" , "<barcode>");
|
||||
ItemStructure.Insert("price" , "<price>");
|
||||
ItemStructure.Insert("old_price" , "<old price>");
|
||||
@ -513,7 +513,7 @@ Function GetSimplifiedProductStructure(Val Clear = False) Export
|
||||
|
||||
ItemStructure.Insert("name" , "<name>");
|
||||
ItemStructure.Insert("sku" , "<product identifier in the Ozon system>");
|
||||
ItemStructure.Insert("offer_id" , "<offer>");
|
||||
ItemStructure.Insert("offer_id" , "<article>");
|
||||
ItemStructure.Insert("price" , "<price>");
|
||||
ItemStructure.Insert("old_price" , "<old price>");
|
||||
ItemStructure.Insert("vat" , "<VAT rate, e.g. 0.2>");
|
||||
@ -547,7 +547,7 @@ Function GetAttributesUpdateStructure(Val Clear = False) Export
|
||||
|
||||
ItemStructure = New Structure;
|
||||
|
||||
ItemStructure.Insert("offer_id" , "<offer>");
|
||||
ItemStructure.Insert("offer_id" , "<article>");
|
||||
ItemStructure.Insert("attributes", "<array of updatable attributes>");
|
||||
|
||||
If Clear Then
|
||||
|
@ -1291,7 +1291,7 @@ Function GetProductDescription() Export
|
||||
Product.Insert("Height" , Undefined); // In millimeters
|
||||
Product.Insert("Depth" , Undefined); // In millimeters
|
||||
Product.Insert("Weight" , Undefined); // In grams
|
||||
Product.Insert("SKU" , Undefined); // SKU
|
||||
Product.Insert("SKU" , Undefined); // Article
|
||||
Product.Insert("AvailableBalance" , 1);
|
||||
|
||||
Return Product;
|
||||
|
@ -12184,9 +12184,9 @@ Procedure Ozon_GetProductInformation(FunctionParameters)
|
||||
|
||||
ClientID = FunctionParameters["Ozon_ClientID"];
|
||||
APIKey = FunctionParameters["Ozon_ApiKey"];
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , SKU);
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , Article);
|
||||
|
||||
// END
|
||||
|
||||
@ -12200,9 +12200,9 @@ Procedure Ozon_GetProductDescription(FunctionParameters)
|
||||
|
||||
ClientID = FunctionParameters["Ozon_ClientID"];
|
||||
APIKey = FunctionParameters["Ozon_ApiKey"];
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , SKU);
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , Article);
|
||||
|
||||
// END
|
||||
|
||||
|
@ -272,18 +272,18 @@ EndFunction
|
||||
// APIKey - String - API key - apikey
|
||||
// ProductID - String, Number - Product identifier - productid
|
||||
// SKU - String, Number - Product identifier in the Ozon system (SKU) - sku
|
||||
// SKU - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
// Article - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val SKU = "") Export
|
||||
Function GetProductInformation(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = 0, Val Article = "") Export
|
||||
|
||||
URL = "https://api-seller.ozon.ru/v2/product/info";
|
||||
|
||||
Headers = CreateRequestHeaders(ClientID, APIKey);
|
||||
|
||||
Parameters = New Structure;
|
||||
OPI_Tools.AddField("offer_id" , SKU , "String" , Parameters);
|
||||
OPI_Tools.AddField("offer_id" , Article , "String" , Parameters);
|
||||
OPI_Tools.AddField("product_id", ProductID, "Number" , Parameters);
|
||||
OPI_Tools.AddField("sku" , SKU , "Number" , Parameters);
|
||||
|
||||
@ -303,18 +303,18 @@ EndFunction
|
||||
// ClientID - String - Client identifier - clientid
|
||||
// APIKey - String - API key - apikey
|
||||
// ProductID - String, Number - Product identifier - productid
|
||||
// SKU - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
// Article - String, Number - Item identifier in the vendor's system (Article) - offerid
|
||||
//
|
||||
// Returns:
|
||||
// Map Of KeyAndValue - Serialized JSON response from Ozon Seller API
|
||||
Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val SKU = "") Export
|
||||
Function GetProductDescription(Val ClientID, Val APIKey, Val ProductID = 0, Val Article = "") Export
|
||||
|
||||
URL = "https://api-seller.ozon.ru/v1/product/info/description";
|
||||
|
||||
Headers = CreateRequestHeaders(ClientID, APIKey);
|
||||
|
||||
Parameters = New Structure;
|
||||
OPI_Tools.AddField("offer_id" , SKU , "String" , Parameters);
|
||||
OPI_Tools.AddField("offer_id" , Article , "String" , Parameters);
|
||||
OPI_Tools.AddField("product_id", ProductID, "Number" , Parameters);
|
||||
|
||||
Response = OPI_Tools.Post(URL, Parameters, Headers);
|
||||
@ -471,7 +471,7 @@ Function GetProductStructure(Val Clear = False) Export
|
||||
ItemStructure = New Structure;
|
||||
ItemStructure.Insert("description_category_id", "<Product category ID>");
|
||||
ItemStructure.Insert("name" , "<product name>");
|
||||
ItemStructure.Insert("offer_id" , "<offer>");
|
||||
ItemStructure.Insert("offer_id" , "<article>");
|
||||
ItemStructure.Insert("barcode" , "<barcode>");
|
||||
ItemStructure.Insert("price" , "<price>");
|
||||
ItemStructure.Insert("old_price" , "<old price>");
|
||||
@ -513,7 +513,7 @@ Function GetSimplifiedProductStructure(Val Clear = False) Export
|
||||
|
||||
ItemStructure.Insert("name" , "<name>");
|
||||
ItemStructure.Insert("sku" , "<product identifier in the Ozon system>");
|
||||
ItemStructure.Insert("offer_id" , "<offer>");
|
||||
ItemStructure.Insert("offer_id" , "<article>");
|
||||
ItemStructure.Insert("price" , "<price>");
|
||||
ItemStructure.Insert("old_price" , "<old price>");
|
||||
ItemStructure.Insert("vat" , "<VAT rate, e.g. 0.2>");
|
||||
@ -547,7 +547,7 @@ Function GetAttributesUpdateStructure(Val Clear = False) Export
|
||||
|
||||
ItemStructure = New Structure;
|
||||
|
||||
ItemStructure.Insert("offer_id" , "<offer>");
|
||||
ItemStructure.Insert("offer_id" , "<article>");
|
||||
ItemStructure.Insert("attributes", "<array of updatable attributes>");
|
||||
|
||||
If Clear Then
|
||||
|
@ -12184,9 +12184,9 @@ Procedure Ozon_GetProductInformation(FunctionParameters)
|
||||
|
||||
ClientID = FunctionParameters["Ozon_ClientID"];
|
||||
APIKey = FunctionParameters["Ozon_ApiKey"];
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , SKU);
|
||||
Result = OPI_Ozon.GetProductInformation(ClientID, APIKey, , , Article);
|
||||
|
||||
// END
|
||||
|
||||
@ -12200,9 +12200,9 @@ Procedure Ozon_GetProductDescription(FunctionParameters)
|
||||
|
||||
ClientID = FunctionParameters["Ozon_ClientID"];
|
||||
APIKey = FunctionParameters["Ozon_ApiKey"];
|
||||
SKU = "143210608";
|
||||
Article = "143210608";
|
||||
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , SKU);
|
||||
Result = OPI_Ozon.GetProductDescription(ClientID, APIKey, , Article);
|
||||
|
||||
// END
|
||||
|
||||
|
@ -1291,7 +1291,7 @@ Function GetProductDescription() Export
|
||||
Product.Insert("Height" , Undefined); // In millimeters
|
||||
Product.Insert("Depth" , Undefined); // In millimeters
|
||||
Product.Insert("Weight" , Undefined); // In grams
|
||||
Product.Insert("SKU" , Undefined); // SKU
|
||||
Product.Insert("SKU" , Undefined); // Article
|
||||
Product.Insert("AvailableBalance" , 1);
|
||||
|
||||
Return Product;
|
||||
|
Loading…
x
Reference in New Issue
Block a user