1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-08 23:56:33 +02:00
OpenIntegrations/docs/en/md/Ozon/Barcodes/Create-barcodes.mdx

73 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
sidebar_position: 2
---
2024-10-15 10:50:56 +03:00
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`
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-10-09 09:42:00 +03:00
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
<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)
:::
<br/>
2024-12-16 19:38:57 +03:00
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2024-12-20 16:27:30 +03:00
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
2024-12-24 20:21:21 +03:00
ProductID = "1311509998";
Result = OPI_Ozon.CreateBarcodes(ClientID, APIKey, ProductID);
```
2024-10-15 09:53:37 +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-12-25 11:43:34 +03:00
--productids 1311561494
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-12-25 11:43:34 +03:00
--productids 1311561494
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
```json title="Result"
2024-09-10 13:48:11 +03:00
{
"errors": []
}
```