CategoryAdd
The method allows add a new category from BaseLinker to the store.
Input parameters
Incoming as $_POST fields.
POST request:
returned data JSON:
Dane wyjściowe:
name | string | Product name |
parent_id | string | Parent category ID |
Outgoing data
Array fields that the method should return.
category_id | string | ID of the new category saved in store database |
Example:
Input data:Array
(
[name] => Koszulka Cleopatra
[parent_id] => 4
)
(
[name] => Koszulka Cleopatra
[parent_id] => 4
)
POST request:
name=Koszulka+Cleopatra&parent_id=4
returned data JSON:
{"category_id":"456"}
Dane wyjściowe:
Array
(
[category_id] => 456
)
(
[category_id] => 456
)