Product.getCategorySuggestion
Used for getting the best possible categories
Request
JSON example:
{
"api":1,
"method":"Product.getCategorySuggestion",
"params":{
"name": "testing product for camera",
"description":"this is a description for the camera",
"short_description":"this is a short description for the camera",
"category_id":3,
"global_identifier": "010202000000"
}
}
Request fields:
Field name |
Type |
Example value |
Description |
---|---|---|---|
method |
string |
"Product.getCategorySuggestion" |
Action name |
name |
string |
"Name" |
Product name |
description |
string |
"Description" |
Product description |
short_description |
string |
"Short description" |
Product short description |
category_id |
integer |
3 |
Shop Category ID (categoryid or globalidentifier are mandatory ) |
global_identifier |
string |
"010202000000" |
Shop global identifier (categoryid or globalidentifier are mandatory ) |
Response
JSON example:
[
{
"api":1,
"result":[
{
"category_id":4588,
"global_identifier": "010202000000",
"score":"0.50"
},
{
"category_id":45,
"global_identifier": "010202030000"
"score":"0.11"
},
{
"category_id":88,
"global_identifier": "010202000020"
"score":"0.10"
}
],
"id":1
}
]
Response fields:
Field Field name |
Type |
Value |
Description |
---|---|---|---|
category_id |
int |
12345 |
Shop category ID (categoryid or globalidentifier are mandatory ) |
global_identifier |
string |
"010202000020" |
Shop global identifier (categoryid or globalidentifier are mandatory ) |
score |
string |
"0.1" |
Probability |