Get product creation status
Gets the status of adding a new product by task ID
Function GetProductCreationStatus(Val ClientID, Val APIKey, Val TaskID) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
ClientID | --clientid | String | ✔ | Client identifier |
APIKey | --apikey | String | ✔ | API key |
TaskID | --taskid | String, Number | ✔ | Add 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);
- Bash
- CMD/Bat
oint ozon GetProductCreationStatus \
--clientid "***" \
--apikey "***" \
--taskid 1379927185
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
}
}