Connector API
  • Mews Connector API
  • Getting started
  • Usage guidelines
    • Authentication
    • Requests
    • Responses
    • Environments
    • Serialization
    • Pagination
    • Best practices
  • Concepts
    • Multi-property
    • Restrictions
    • Taxation
    • Time units
  • Use cases
    • 'How to' use cases
    • Accounting
    • Customer loyalty
    • Customer management
    • Customer messaging
    • Data export
    • Device integration
    • Events
    • Guest technology
    • Housekeeping
    • Kiosk
    • Mews Payment Terminals
    • Payment automation
    • Point of sale
    • Reputation management
    • Revenue management
    • Upsell
  • API Operations
    • Common objects
    • Accounting categories
    • Accounting items
    • Accounts
    • Account notes
    • Addresses
    • Age categories
    • Availability adjustments
    • Availability blocks
    • Billing automations
    • Bills
    • Business segments
    • Cancellation policies
    • Cashiers
    • Cashier transactions
    • Commands
    • Companies
    • Companionships
    • Company contracts
    • Configuration
    • Counters
    • Countries
    • Credit cards
    • Currencies
    • Customers
    • Departments
    • Devices
    • Enterprises
    • Exchange rates
    • Exports
    • Identity documents
    • Images
    • Languages
    • Loyalty memberships
    • Loyalty programs
    • Loyalty tiers
    • Messages
    • Message threads
    • Order items
    • Orders
    • Outlet bills
    • Outlet items
    • Outlets
    • Payments
    • Payment requests
    • Preauthorizations
    • Product categories
    • Product service orders
    • Products
    • Rates
    • Rate groups
    • Reservations
    • Reservation groups
    • Resource access tokens
    • Resource blocks
    • Resources
    • Resource categories
    • Resource features
    • Restrictions
    • Routing rules
    • Rules
    • Service order notes
    • Service overbooking limits
    • Services
    • Source assignments
    • Sources
    • Tasks
    • Tax environments
    • Taxations
    • Vouchers
    • Voucher codes
  • API Events
    • Ways to communicate
    • General Webhooks
    • Integration Webhooks
    • Webhooks FAQ
    • WebSockets
  • Your integration journey
    • Certification
  • Deprecations
    • Migration guide: Get all reservations
  • Changelog
    • Changelog 2024
    • Changelog 2023
    • Changelog 2022
    • Changelog 2021
    • Changelog 2020
    • Changelog 2019
    • Changelog 2018
    • Changelog 2017
    • Changelog 2016
Powered by GitBook
On this page
  • Get all product categories
  • Request
  • Response

Was this helpful?

  1. API Operations

Product categories

PreviousPreauthorizationsNextProduct service orders

Last updated 4 months ago

Was this helpful?

Get all product categories

Returns all categories of products. Note this operation uses and supports .

Request

[PlatformAddress]/api/connector/v1/productCategories/getAll

{
    "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
    "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
    "Client": "Sample Client 1.0.0",
    "EnterpriseIds": 
    [
        "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "4d0201db-36f5-428b-8d11-4f0a65e960cc"
    ],
    "ProductCategoryIds": [
        "5228623e-b2cf-4f9f-8bd6-71cbe3ec5e6f",
        "63bc87d3-edf5-4d06-a601-6052a2ad709d"
    ],
    "ServiceIds": [
        "9b3a6c54-63aa-4383-b50e-b0030078184b",
        "c0f71466-6c0b-4993-88ac-1794f6b7e958"
    ],
    "UpdatedUtc": {
        "StartUtc": "2023-05-05T00:00:00Z",
        "EndUtc": "2023-05-10T00:00:00Z"
    },
    "Limitation":{ "Count": 10 }
}
Property
Type
Contract
Description

ClientToken

string

required

Token identifying the client application.

AccessToken

string

required

Access token of the client application.

Client

string

required

Name and version of the client application.

EnterpriseIds

array of string

optional, max 1000 items

ProductCategoryIds

array of string

optional, max 1000 items

ServiceIds

array of string

required, max 1000 items

UpdatedUtc

optional, max length 3 months

Interval in which the product categories were updated.

Limitation

required

Limitation on the quantity of data returned.

Response

{
    "ProductCategories":[
        {
            "Id": "5c0804f9-d03a-4b13-a57d-b00300781a41",            
            "ServiceId": "9b3a6c54-63aa-4383-b50e-b0030078184b",            
            "Names": {
                "en-US": "Alcohol 1"
            },
            "ShortNames": {
                "en-US": "Alcohol 1"
            },
            "Descriptions": {},
            "ParentProductCategory": [
                "Id": "0b82f6d8-e5eb-4711-9069-40db2b8d968f",
                "Names": {
                    "en-US": "Alcoholic beverages"
                },
            ],
            "CreatedUtc": "2023-06-09T13:32:32Z",
            "UpdatedUtc": "2023-06-09T13:32:32Z",
            "Ordering": 1,
        },
        {
            "Id": "f0709b02-f1a4-46b2-9c1e-744b5ecd6980",            
            "ServiceId": "9b3a6c54-63aa-4383-b50e-b0030078184b",            
            "Names": {
                "en-US": "Lemonade 1"
            },
            "ShortNames": {
                "en-US": "Lemonade 1"
            },
            "Descriptions": {},
            "ParentProductCategory": [
                "Id": "aa4f3930-3f9d-4df7-9c6b-5aba5b2f6f7e",
                "Names": {
                    "en-US": "Lemonades"
                },
            ],
            "CreatedUtc": "2023-06-09T13:32:32Z",
            "UpdatedUtc": "2023-06-09T13:32:32Z",
            "Ordering": 1,
        }
    ],
    "Cursor": "f0709b02-f1a4-46b2-9c1e-744b5ecd6980"
}
Property
Type
Contract
Description

ProductCategories

optional

Product categories.

Cursor

string

optional

Unique identifier of the item one newer in time order than the items to be returned. If Cursor is not specified, i.e. null, then the latest or most recent items will be returned.

Product category

Property
Type
Contract
Description

Id

string

required

Unique identifier of the category.

EnterpriseId

string

required

ServiceId

string

required

Names

required

All translations of the name.

ShortNames

required

All translations of the short name.

Descriptions

required

All translations of the description.

ParentProductCategory

string

required

CreatedUtc

string

required

Date and time of the product category creation in UTC timezone in ISO 8601 format.

UpdatedUtc

string

required

Date and time of the product category update in UTC timezone in ISO 8601 format.

Ordering

number

required

Ordering of the category, lower number corresponds to lower category (note that neither uniqueness nor continuous sequence is guaranteed).

Parent product category

Property
Type
Contract
Description

Id

string

required

Unique identifier of the category.

Names

required

All translations of the name.

Unique identifiers of the . If not specified, the operation returns the resource categories for all enterprises within scope of the Access Token.

Unique identifiers of .

Unique identifiers of to which the resource categories belong.

array of

Unique identifier of the .

Unique identifier of the of the resource category.

.

Pagination
Portfolio Access Tokens
Product category
Product category
Parent product category
Limitation
Time interval
Localized text
Localized text
Localized text
Localized text
Enterprises
Enterprise
Services
Service