1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-21 23:57:40 +02:00
Files
OpenIntegrations/docs/en/md/Ozon/Barcodes/Create-barcodes.mdx
Vitaly the Alpaca (bot) 3d4bbb5f8b Main build (Jenkins)
2025-09-01 14:51:24 +03:00

75 lines
1.9 KiB
Plaintext
Vendored

---
sidebar_position: 2
description: Create barcodes and other functions to work with Ozon in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Ozon]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Create barcodes
Generates new barcodes for products
`Function CreateBarcodes(Val ClientID, Val APIKey, Val ProductsID) Export`
| 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 |
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
<br/>
:::tip
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)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
ProductID = "2621214812";
Result = OPI_Ozon.CreateBarcodes(ClientID, APIKey, ProductID);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint ozon CreateBarcodes \
--clientid "***" \
--apikey "***" \
--productids 1416245326
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint ozon CreateBarcodes ^
--clientid "***" ^
--apikey "***" ^
--productids 1416245326
```
</TabItem>
</Tabs>
```json title="Result"
{
"errors": []
}
```