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
tip
Method at API documentation: post /v1/draft/create
1C:Enterprise/OneScript code example
ClientID = "2479669";
APIKey = "09f65e9f-262d-4aca...";
Cluster = 1;
Items = New Map;
Items.Insert("1783161863", 5);
Items.Insert("1784654052", 2);
Result = OPI_Ozon.CreateFBODraft(ClientID, APIKey, Cluster, Items);
- Bash
- CMD/Bat
# JSON data can also be passed as a path to a .json file
oint ozon CreateFBODraft \
--clientid "***" \
--apikey "***" \
--clusters 1 \
--items "{'1783161863':5,'1784654052':2}"
:: JSON data can also be passed as a path to a .json file
oint ozon CreateFBODraft ^
--clientid "***" ^
--apikey "***" ^
--clusters 1 ^
--items "{'1783161863':5,'1784654052':2}"
Result
{
"operation_id": "0193f24f-1222-7663-868c-e5a99cc0a4ac"
}