Operations related to authentication tokens
The name of the category that you want to create. This is primary key for the object If you want to create category child use a "/" operator ex: "Food/Snack/Pastries" will create 3 level category
curl -i -X POST \
https://subdomain.dealpos.net/api/v3/Category \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Top/Men",
"Code": "TM"
}'
{ "ID": "273d1184-a64b-4d2d-ad98-8b38b19c3ffb" }
curl -i -X PUT \
https://subdomain.dealpos.net/api/v3/Category \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Top/Men",
"Rename": "Top/Women",
"Discontinued": false
}'
{ "ID": "7dc2d2f8-9143-4d3b-bff5-6c00f3f52a23" }
curl -i -X DELETE \
https://subdomain.dealpos.net/api/v3/Category \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Name": "Food/Snack/Pastries"
}'
{ "ID": "273d1184-a64b-4d2d-ad98-8b38b19c3ffb" }
Also available as HTTP POST (endpoint: /api/v3/Category/p)
Get list of product categories
Use First example (empty object) to return all categories, and use second example to get spesific category with its children.
Required Group Role: "Products" - "View"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Category \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"Discontinued": false
}'
[ { "ID": "328ca218-0f0b-449c-8d0d-2a55113ce432", "Name": "Top/Men", "Discontinued": false }, { "ID": "ed8e8964-d3ab-4101-834b-426b85b241b0", "Name": "Top", "Discontinued": false } ]
Also available as HTTP POST with the same endpoint
Required Group Role: "Products" - "VIEW"
curl -i -X GET \
https://subdomain.dealpos.net/api/v3/Category/ID \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"ID": "328ca218-0f0b-449c-8d0d-2a55113ce431"
}'
{ "ParentID": "ed8e8964-d3ab-4101-834b-426b85b241b0", "TypeID": 0, "Lvl": 0, "Description": "Top/Men", "Code": "TM", "SKUSeed": 0, "Sort": "Men", "UOM": "pcs", "MeasurementID": "00000000-0000-0000-0000-000000000000", "UOMQ": "pcs", "Name": "Top/Men", "Model": "Men", "ID": "328ca218-0f0b-449c-8d0d-2a55113ce431", "Parent": "Top", "Measurement": "Size", "Discontinued": false }