openapi: 3.0.3 info: title: EposNow HQ REST Categories API description: The EposNow HQ REST API lets developers programmatically interact with the cloud-based aspects of the Epos Now point of sale (POS) platform for retail and hospitality - products, categories, transactions (sales), customers, stock, tax rates, and devices. This document models the documented V2 API surface (base https://api.eposnowhq.com/api/V2). Epos Now recommends the newer V4 / "Global" API (https://api.eposnowhq.com/api/v4) for new integrations, which reorganizes the same domains; V4 per-resource paths are not fully enumerated here. All requests use HTTP Basic authentication with a per-device access token (Base64 of "API Key:API Secret") issued from the Back Office. List endpoints are paginated at up to 200 records per page via the page query parameter. version: V2 contact: name: Epos Now Developers url: https://developer.eposnowhq.com/ servers: - url: https://api.eposnowhq.com/api/V2 description: EposNow HQ REST API (V2) security: - basicAuth: [] tags: - name: Categories description: Categories that group products for the till and reporting. paths: /Category: get: operationId: listCategories tags: - Categories summary: List categories description: Returns a paginated list of categories, up to 200 per page. parameters: - $ref: '#/components/parameters/Page' responses: '200': description: A paginated list of categories. content: application/json: schema: type: array items: $ref: '#/components/schemas/Category' '401': $ref: '#/components/responses/Unauthorized' post: operationId: createCategory tags: - Categories summary: Create a category requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Category' responses: '200': description: The created category. content: application/json: schema: $ref: '#/components/schemas/Category' '401': $ref: '#/components/responses/Unauthorized' /Category/{Id}: parameters: - $ref: '#/components/parameters/Id' get: operationId: getCategory tags: - Categories summary: Get a category responses: '200': description: The requested category. content: application/json: schema: $ref: '#/components/schemas/Category' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' put: operationId: updateCategory tags: - Categories summary: Update a category requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Category' responses: '200': description: The updated category. content: application/json: schema: $ref: '#/components/schemas/Category' '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' delete: operationId: deleteCategory tags: - Categories summary: Delete a category responses: '200': description: Deletion confirmation. '401': $ref: '#/components/responses/Unauthorized' '404': $ref: '#/components/responses/NotFound' components: schemas: Category: type: object properties: Id: type: integer Name: type: string ParentId: type: integer additionalProperties: true responses: Unauthorized: description: Missing or invalid Basic authentication credentials. NotFound: description: The requested resource was not found. parameters: Id: name: Id in: path required: true description: The unique identifier of the resource. schema: type: integer Page: name: page in: query required: false description: The page number of results to return (up to 200 records per page). schema: type: integer default: 1 securitySchemes: basicAuth: type: http scheme: basic description: 'HTTP Basic authentication. The access token is the Base64 encoding of "API Key:API Secret" (the API Key, a colon, then the API Secret, with no spaces), sent as "Authorization: Basic {token}". Credentials are issued per API Device registered under Web Integrations in the Epos Now Back Office.'