Skip to main content

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

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
Clusters--clustersString, Array of StringClusters identifiers
Items--itemsMap Of KeyAndValueItems list: Key > SKU, Value > Amount
SupplyType--typeStringSupply type: CREATE_TYPE_CROSSDOCK, CREATE_TYPE_DIRECT
ShippingPoint--pointStringShipping 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);
    # 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"
}