1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-24 00:01:24 +02:00
Files
OpenIntegrations/docs/en/md/Ozon/Fbo-scheme/Create-fbo-draft.mdx
Vitaly the Alpaca (bot) 408473f4ec Main build (Jenkins)
2025-06-29 14:35:33 +03:00

84 lines
2.5 KiB
Plaintext
Vendored

---
sidebar_position: 4
description: Create FBO draft 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 FBO draft
Creates a draft of FBO supply order
`Function CreateFBODraft(Val ClientID, Val APIKey, Val Clusters, Val Items, Val SupplyType = "CREATE_TYPE_DIRECT", Val ShippingPoint = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| ClientID | --clientid | String | ✔ | Client identifier |
| APIKey | --apikey | String | ✔ | API key |
| Clusters | --clusters | String, Array of String | ✔ | Clusters identifiers |
| Items | --items | Map Of KeyAndValue | ✔ | Items list: Key > SKU, Value > Amount |
| SupplyType | --type | String | ✖ | Supply type: CREATE_TYPE_CROSSDOCK, CREATE_TYPE_DIRECT |
| ShippingPoint | --point | String | ✖ | Shipping point identifier for CREATE_TYPE_CROSSDOCK |
Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API
<br/>
:::tip
Method at API documentation: [post /v1/draft/create](https://docs.ozon.ru/api/seller/#operation/SupplyDraftAPI_DraftCreate)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
Cluster = 2;
Items = New Map;
Items.Insert("1783161863", 5);
Items.Insert("1784654052", 2);
Result = OPI_Ozon.CreateFBODraft(ClientID, APIKey, Cluster, Items);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
# JSON data can also be passed as a path to a .json file
oint ozon CreateFBODraft \
--clientid "***" \
--apikey "***" \
--clusters 2 \
--items "{'1783161863':5,'1784654052':2}"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
:: JSON data can also be passed as a path to a .json file
oint ozon CreateFBODraft ^
--clientid "***" ^
--apikey "***" ^
--clusters 2 ^
--items "{'1783161863':5,'1784654052':2}"
```
</TabItem>
</Tabs>
```json title="Result"
{
"operation_id": "0193f24f-1222-7663-868c-e5a99cc0a4ac"
}
```