Documentation of the shops data exchange protocol - baselinker.com
Function list
Tests
ChangeLog
Remap Builder


CategoryAdd
The method allows add a new category from BaseLinker to the store.


Input parameters
Incoming as $_POST fields.
namestringProduct name
parent_idstringParent category ID



Outgoing data
Array fields that the method should return.
category_idstringID of the new category saved in store database



Example:
Input data:
Array
(
    [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
)