2024-10-15 10:50:56 +03:00
|
|
|
---
|
2024-09-08 15:26:00 +03:00
|
|
|
sidebar_position: 2
|
|
|
|
---
|
|
|
|
|
2024-10-15 10:50:56 +03:00
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
2024-09-08 15:26:00 +03:00
|
|
|
# Create barcodes
|
|
|
|
Generates new barcodes for products
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function CreateBarcodes(Val ClientID, Val APIKey, Val ProductsID) Export`
|
|
|
|
|
2024-10-15 15:15:47 +03:00
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|
|
|-|-|-|-|-|
|
|
|
|
| ClientID | --clientid | String | ✔ | Client identifier |
|
|
|
|
| APIKey | --apikey | String | ✔ | API key |
|
|
|
|
| ProductsID | --productids | String, Array of String | ✔ | Products IDs for barcodes creating |
|
2024-09-08 15:26:00 +03:00
|
|
|
|
|
|
|
|
2024-10-09 09:42:00 +03:00
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
|
2024-09-08 15:26:00 +03:00
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
:::tip
|
2024-11-21 13:27:18 +03:00
|
|
|
You can create barcodes for a maximum of 100 products per request
|
|
|
|
|
|
|
|
From one merchant account, you can use the method no more than 20 times per minute
|
|
|
|
|
|
|
|
Method at API documentation: [post /v1/barcode/generate](https://docs.ozon.ru/api/seller/#operation/generate-barcode)
|
2024-09-08 15:26:00 +03:00
|
|
|
:::
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
2024-10-15 21:15:56 +03:00
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
2024-09-24 11:38:18 +03:00
|
|
|
ClientID = "2128753";
|
|
|
|
APIKey = "7cc90d26-33e4-499b...";
|
2024-10-22 00:14:15 +03:00
|
|
|
ProductID = "1235184552";
|
2024-09-08 15:26:00 +03:00
|
|
|
|
|
|
|
Result = OPI_Ozon.CreateBarcodes(ClientID, APIKey, ProductID);
|
|
|
|
```
|
2024-10-15 09:53:37 +03:00
|
|
|
|
2024-09-08 15:26:00 +03:00
|
|
|
|
2024-10-20 22:36:03 +03:00
|
|
|
<Tabs>
|
|
|
|
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
|
|
```bash
|
|
|
|
oint ozon CreateBarcodes \
|
2024-10-22 08:59:24 +03:00
|
|
|
--clientid "***" \
|
|
|
|
--apikey "***" \
|
2024-10-26 13:17:09 +03:00
|
|
|
--productids 1237069598
|
2024-10-20 22:36:03 +03:00
|
|
|
```
|
|
|
|
</TabItem>
|
|
|
|
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
|
|
```batch
|
|
|
|
oint ozon CreateBarcodes ^
|
2024-10-22 08:59:24 +03:00
|
|
|
--clientid "***" ^
|
|
|
|
--apikey "***" ^
|
2024-10-26 13:17:09 +03:00
|
|
|
--productids 1237069598
|
2024-10-20 22:36:03 +03:00
|
|
|
```
|
|
|
|
</TabItem>
|
|
|
|
</Tabs>
|
2024-09-08 15:26:00 +03:00
|
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
2024-09-10 13:48:11 +03:00
|
|
|
{
|
|
|
|
"errors": []
|
|
|
|
}
|
2024-09-08 15:26:00 +03:00
|
|
|
```
|