Product Categories
Product category organization and hierarchy.
150If not set, sort will be defaulted as name (ASC)
-nameqReturns a ProductCategoryCollection
Returns an ErrorDto in case there is not enough privileges to perform this action
GET /apis/v2/pos/products/categories HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_pagination": {
"page": 1,
"ipp": 1,
"count": 1,
"total": 1
},
"_links": {
"self": {
"href": "text"
}
}
}0Returns a ProductCategory
0Returns an ErrorDto in case there is not enough privileges to perform this action
Returns an error
POST /apis/v2/pos/products/categories HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"_links": {}
}{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}Returns a ProductCategoryCollection
Returns an ErrorDto in case there is not enough privileges to perform this action
Returns an error
PATCH /apis/v2/pos/products/categories HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 73
{
"items": [
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0
}
]
}{
"items": [
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}
],
"_total": 1,
"_links": {
"self": {
"href": "text"
}
}
}Returns a ProductCategory
0Returns an ErrorDto in case there is not enough privileges to perform this action
ProductCategory not found
GET /apis/v2/pos/products/categories/{productCategoryId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}Returns a ProductCategory
0Returns an ErrorDto in case there is not enough privileges to perform this action
ProductCategory not found
DELETE /apis/v2/pos/products/categories/{productCategoryId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}0Returns a ProductCategory
0Returns an ErrorDto in case there is not enough privileges to perform this action
ProductCategory not found
PATCH /apis/v2/pos/products/categories/{productCategoryId} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 102
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"_links": {}
}{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}Returns a ProductCategory
0Returns an ErrorDto in case there is not enough privileges to perform this action
ProductCategory not found
PUT /apis/v2/pos/products/categories/{productCategoryId}/tax-category HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29
{
"taxCategory": {
"id": "text"
}
}{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}Returns a ProductCategory
0Returns an ErrorDto in case there is not enough privileges to perform this action
ProductCategory not found
DELETE /apis/v2/pos/products/categories/{productCategoryId}/tax-category HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "text",
"name": "text",
"description": "text",
"priority": 0,
"subcategories": {
"_total": 1
},
"errors": [
{
"code": "text",
"message": "text",
"details": {}
}
],
"_links": {}
}Last updated
Was this helpful?

