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 = 2;
Items = New Map;
Items.Insert("1783161863", 5);
Items.Insert("1784654052", 2);
Result = OPI_Ozon.CreateFBODraft(ClientID, APIKey, Cluster, Items);
- Bash
- CMD/Bat
oint ozon CreateFBODraft \
--clientid "***" \
--apikey "***" \
--clusters 2 \
--items "{'1783161863':'5','1784654052':'2'}"
oint ozon CreateFBODraft ^
--clientid "***" ^
--apikey "***" ^
--clusters 2 ^
--items "{'1783161863':'5','1784654052':'2'}"
Result
{
"operation_id": "01994de5-6a4f-7732-b849-2f7cef2942dd"
}