By making use of the Punchmark POS Categories feature, it allows clients to map the categories named in their POS/Inventory Systems to the categories in their websites. Once categories are mapped, requests to the Product Import API can specify POS/Inventory System category names, and imported products will automatically be categorized into the appropriate website categories.
The basic functionality of POS categories is “delete all”, “recreate all”, and “insert”.
The job of this API is to maintain a list of the categories in the POS System. Once the category list exists, the client will be able to go in and map each POS category to the corresponding website category.
Endpoints
https://{DOMAIN}/api/async.php?t=sitemanager&m=pos_cats&a={ACTION}&authKey={AUTHKEY}
where ACTION is one of the below actions
ACTIONS
insert_pos_cats:
Description: Insert records representing categories in the POS/Inventory System.
Params
categories
Type: POST Variable
Datatype: JSON
Example value:
[{"catID":1, "catName":"cat1"},{"catID":2,"catName":"cat2"},{"catID":3,"catName":"cat3"}]
Example Call:
https://{DOMAIN}/api/async.php?t=sitemanager&m=pos_cats&a=insert_pos_cats&authKey={AUTHKEY}