Status API (2023-05)
The Status API provides the ability to check the status after registration through the Management API of OMNICOMMERCE.
API Endpoint
The default API Endpoint is as follows, and the current latest version is 2023-05
.
https://api.kr.omnicommerce.ai/2023-05/
Product Status Management API
GET /management/status-count: Obtain a summary of counts grouped by status
This API summarizes the number of items grouped by their status.
Request Header
Name | Required | Type | Description |
---|---|---|---|
X-Api-Key | Required | String | API Key (refer to API Authentication Guide) |
Response
Name | Type | Description |
---|---|---|
done | Integer | Number of completed products |
processing | Integer | Number of products in registration process |
error | Integer | Number of products with errors |
Response Example
200 Accepted
Request success
{
"done": 1000,
"processing": 1000,
"error": 0
}
GET /management/status/{product_id}: Check single product status
This API provides details on the current processing status of a specific product.
Requset Header
Name | Required | Type | Description |
---|---|---|---|
X-Api-Key | Required | String | API Key (refer to API Authentication Guide) |
Response
Name | Type | Description |
---|---|---|
id | String | ID of the requested product |
status | String | The type can be one of DONE , PROCESSING , ERROR |
errors | String | Explanation about the cause of the error. This is only provided when the status is ERROR . |
requestInfo | Object | The product information sent via the management API (request Body information). This is only provided when the status is DONE . |
├requestInfo.url | String | The main image URL of the product |
├requestInfo.detection | String | One of the values specified in Detection information. (Ex: If the product being sold is a top: TOP ) |
├requestInfo.salesUrl | String | The URL of the page where the product is being sold |
├requestInfo.mobileSalesUrl | String | The mobile version URL of the page where the product is being sold |
└requestInfo.metadata | Object | Various product information managed by the client, such as product name, brand, price, season, discount rate, etc. (Refer to: Product Meta Information) |
Response Example
200 Accepted
status = "DONE"
{
"id": "A1000",
"status": "DONE",
"errors": null,
"requestInfo": {
"url": "https://image-url.jpg",
"salesUrl": "https://sales_url.com",
"mobileSalesUrl": "https://m.sales_url.com",
"detection": "TOP",
"metadata": {
"productName": "product name",
"originPrice": 10000,
"currency": "KRW"
}
}
}
status = "PROCESSING"
{
"id": "",
"status": "PROCESSING",
"errors": null,
"requestInfo": {}
}
status = "ERROR"
{
"id": "",
"status": "ERROR",
"errors": "error message",
"requestInfo": {}
}
status = "DELETE"
{
"id": "",
"status": "DELETE",
"errors": null,
"requestInfo": {}
}
POST /management/status: Check status of multiple products
This API provides information about the various statuses of the given list of product ids.
Requset Header
Name | Required | Type | Description |
---|---|---|---|
X-Api-Key | Required | String | API Key (refer to API Authentication Guide) |
Request Body
Name | Required | Type | Description |
---|---|---|---|
productIds | Required | List[String] | List of product IDs. Up to 100 are allowed. |
caution
You can request up to 100 items per Request.
Request example
{
"productIds": [
"A1000", "A1001", "A1002", "A1003"
]
}
Response
Name | Type | Description |
---|---|---|
results | List | Represents the results for the requested products as a list |
├ results[].id | String | ID of the requested product |
├ results[].status | String | The type can be one of DONE , PROCESSING , ERROR , DELETE |
├ results[].errors | String | Explanation about the cause of the error. This is only provided when the status is ERROR . |
├ results[].requestInfo | Object | The product information sent via the management API (request Body information). This is only provided when the status is DONE . |
├ results[].requestInfo.url | String | The main image URL of the product |
├ results[].requestInfo.detection | String | One of the values specified in Detection information. (Ex: If the product being sold is a top: TOP ) |
├ results[].requestInfo.salesUrl | String | The URL of the page where the product is being sold |
├ results[].requestInfo.mobileSalesUrl | String | The mobile version URL of the page where the product is being sold |
└ results[].requestInfo.metadata | Object | Various product information managed by the client, such as product name, brand, price, season, discount rate, etc. (Refer to: Product Meta Information) |
Response Example
200 Accepted
All requests succeeded
{
"results":[
{
"id": "A1000",
"status": "DONE",
"errors": null,
"requestInfo": {
"url": "https://image-url.jpg",
"salesUrl": "https://sales_url.com",
"mobileSalesUrl": "https://m.sales_url.com",
"detection": "TOP",
"metadata": {
"productName": "product name",
"originPrice": 10000,
"currency": "KRW"
}
}
},
{
"id": "A1001",
"status": "PROCESSING",
"errors": null,
"requestInfo": {}
},
{
"id": "A1002",
"status": "ERROR",
"errors": "error message"
"requestInfo": {}
},
{
"id": "A1003",
"status": "DELETE",
"errors": null,
"requestInfo": {}
}
]
}