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 = "2479669";
APIKey = "09f65e9f-262d-4aca...";
TaskID = "1562070553";

Result = OPI_Ozon.GetProductCreationStatus(ClientID, APIKey, TaskID);
    oint ozon GetProductCreationStatus \
--clientid "***" \
--apikey "***" \
--taskid 1557017118
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
}
}