Skip to main content

Get product creation status

Gets the status of adding a new product by task ID

Function GetProductCreationStatus(Val ClientID, Val APIKey, Val TaskID) Export

ParameterCLI optionTypeRequiredDescription
ClientID--clientidStringClient identifier
APIKey--apikeyStringAPI key
TaskID--taskidString, NumberAdd product task ID

Returns: Map Of KeyAndValue - serialized JSON response from Ozon Seller API


tip

Method at API documentation: post /v1/product/import/info


1C:Enterprise/OneScript code example
    ClientID = "2128753";
APIKey = "7cc90d26-33e4-499b...";
TaskID = "1370105976";

Result = OPI_Ozon.GetProductCreationStatus(ClientID, APIKey, TaskID);
    oint ozon GetProductCreationStatus \
--clientid "***" \
--apikey "***" \
--taskid 1379927185
Result
{
"result": {
"items": [
{
"offer_id": "143210609",
"product_id": 1215763512,
"status": "imported",
"errors": [
{
"code": "SELLER_NO_CONTRACT_FAILED",
"field": "",
"attribute_id": 0,
"state": "unmatched",
"level": "error",
"description": "Истек срок договора. Чтобы загрузить товар, возобновите договор в личном кабинете.",
"optional_description_elements": {},
"attribute_name": "",
"message": "Истек срок договора. Чтобы загрузить товар, возобновите договор в личном кабинете."
}
]
}
],
"total": 1
}
}