> For the complete documentation index, see [llms.txt](https://docs.podplay.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.podplay.app/api/point-of-sale/product-subcategories.md).

# Product Subcategories

Product subcategory management.

## GET /pos/products/categories/{productCategoryId}/subcategories

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"PaginatedProductSubcategoryCollectionDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProductSubcategoryDto"}},"_total":{"type":"number"},"_pagination":{"$ref":"#/components/schemas/PaginationDto"},"_links":{"$ref":"#/components/schemas/LinksDto"}},"required":["items","_total","_pagination","_links"]},"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"PaginationDto":{"type":"object","properties":{"page":{"type":"number"},"ipp":{"type":"number"},"count":{"type":"number"},"total":{"type":"number"}},"required":["page","ipp","count","total"]},"LinksDto":{"type":"object","properties":{"self":{"description":"A `LinkDto` to the resource itself","allOf":[{"$ref":"#/components/schemas/LinkDto"}]}},"required":["self"]},"LinkDto":{"type":"object","properties":{"href":{"type":"string","description":"A URL"}},"required":["href"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories":{"get":{"operationId":"ProductSubcategoriesController_find","parameters":[{"name":"page","required":false,"in":"query","schema":{"type":"number"}},{"name":"ipp","required":false,"in":"query","schema":{"type":"number"}},{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}},{"name":"search","required":false,"in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns a `PaginatedProductSubcategoryCollection`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedProductSubcategoryCollectionDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}},"tags":["Product Subcategories"]}}}}
```

## POST /pos/products/categories/{productCategoryId}/subcategories

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories":{"post":{"operationId":"ProductSubcategoriesController_create","parameters":[{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"responses":{"201":{"description":"Returns a `ProductSubcategory`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"422":{"description":"Returns an error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}},"tags":["Product Subcategories"]}}}}
```

## PATCH /pos/products/categories/{productCategoryId}/subcategories

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ProductSubcategoryCollectionPatchableDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProductSubcategoryPatchableDto"}}},"required":["items"]},"ProductSubcategoryPatchableDto":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","nullable":true},"description":{"type":"string","nullable":true},"priority":{"type":"number","default":0}},"required":["id"]},"ProductSubcategoryCollectionDto":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProductSubcategoryDto"}},"_total":{"type":"number"},"_links":{"$ref":"#/components/schemas/LinksDto"}},"required":["items","_total","_links"]},"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"LinksDto":{"type":"object","properties":{"self":{"description":"A `LinkDto` to the resource itself","allOf":[{"$ref":"#/components/schemas/LinkDto"}]}},"required":["self"]},"LinkDto":{"type":"object","properties":{"href":{"type":"string","description":"A URL"}},"required":["href"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories":{"patch":{"operationId":"ProductSubcategoriesController_batchUpdateSubcategories","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryCollectionPatchableDto"}}}},"responses":{"200":{"description":"Returns a `ProductSubcategoryCollection`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryCollectionDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"422":{"description":"Returns an error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}},"tags":["Product Subcategories"]}}}}
```

## GET /pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}":{"get":{"operationId":"ProductSubcategoriesController_findById","parameters":[{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productSubcategoryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns a `ProductSubcategory`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"ProductSubcategory not found"}},"tags":["Product Subcategories"]}}}}
```

## DELETE /pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}":{"delete":{"operationId":"ProductSubcategoriesController_delete","parameters":[{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productSubcategoryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns a `ProductSubcategory`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"ProductSubcategory not found"}},"tags":["Product Subcategories"]}}}}
```

## PATCH /pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}":{"patch":{"operationId":"ProductSubcategoriesController_update","parameters":[{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productSubcategoryId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"responses":{"200":{"description":"Returns a `ProductSubcategory`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"ProductSubcategory not found"}},"tags":["Product Subcategories"]}}}}
```

## PUT /pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}/tax-category

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"TaxCategoryAssignmentDto":{"type":"object","properties":{"taxCategory":{"$ref":"#/components/schemas/ItemRefDto"}},"required":["taxCategory"]},"ItemRefDto":{"type":"object","properties":{"id":{"type":"string","description":"The unique identifier of the resource"}},"required":["id"]},"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}/tax-category":{"put":{"operationId":"ProductSubcategoriesController_updateTaxCategory","parameters":[{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productSubcategoryId","required":true,"in":"path","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxCategoryAssignmentDto"}}}},"responses":{"200":{"description":"Returns a `ProductSubcategory`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"ProductSubcategory not found"}},"tags":["Product Subcategories"]}}}}
```

## DELETE /pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}/tax-category

>

```json
{"openapi":"3.0.0","info":{"title":"PodPlay Inc API","version":"2.0"},"tags":[{"name":"Product Subcategories","description":"Product subcategory management."}],"servers":[{"url":"/apis/v2","description":"Current Server"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"scheme":"bearer","bearerFormat":"JWT","type":"http"}},"schemas":{"ProductSubcategoryDto":{"type":"object","properties":{"id":{"type":"string"},"category":{"type":"object","readOnly":true},"name":{"type":"string"},"description":{"type":"string"},"priority":{"type":"number","default":0},"errors":{"readOnly":true,"nullable":true,"type":"array","items":{"$ref":"#/components/schemas/ValidationErrorDto"}},"_links":{"type":"object"}},"required":["id","category","name","errors","_links"]},"ValidationErrorDto":{"type":"object","properties":{"code":{"type":"string","readOnly":true},"message":{"type":"string","readOnly":true},"details":{"type":"object","readOnly":true,"nullable":true}},"required":["code","message","details"]},"ErrorDto":{"type":"object","properties":{"statusCode":{"type":"number","readOnly":true},"message":{"type":"object","readOnly":true},"error":{"type":"string","readOnly":true}},"required":["statusCode","message","error"]}}},"paths":{"/pos/products/categories/{productCategoryId}/subcategories/{productSubcategoryId}/tax-category":{"delete":{"operationId":"ProductSubcategoriesController_deleteTaxCategory","parameters":[{"name":"productCategoryId","required":true,"in":"path","schema":{"type":"string"}},{"name":"productSubcategoryId","required":true,"in":"path","schema":{"type":"string"}}],"responses":{"200":{"description":"Returns a `ProductSubcategory`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductSubcategoryDto"}}}},"403":{"description":"Returns an `ErrorDto` in case there is not enough privileges to perform this action","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"ProductSubcategory not found"}},"tags":["Product Subcategories"]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.podplay.app/api/point-of-sale/product-subcategories.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
