Skip to content

Get all products

POST
/api/connector/v1/products/getAll

Returns all products offered together with the specified services. Note this operation uses Pagination and supports Portfolio Access Tokens.

Product parameters
object
ClientToken
required

Token identifying the client application.

string
>= 1 characters
AccessToken
required

Access token of the client application.

string
>= 1 characters
Client
required

Name and version of the client application.

string
>= 1 characters
Limitation
required

Limitation on the quantity of data returned and optional Cursor for the starting point of data.

object
Count
required
integer format: int32
Cursor
string format: uuid
nullable
EnterpriseIds

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

Array<string>
nullable >= 1 items <= 1000 items
ProductIds

Unique identifiers of the product.

Array<string>
nullable >= 1 items <= 1000 items
ServiceIds
required

Unique identifiers of the Services.

Array<string>
>= 1 items <= 1000 items
UpdatedUtc
TimeFilterInterval

Interval in which the products were updated.

object
StartUtc
string format: date-time
nullable
EndUtc
string format: date-time
nullable
IncludeDefault

Whether or not to include default products for the service, i.e. products which are standard includes and not true extras. For example, the night’s stay would be the default product for a room reservation. These may be useful for accounting purposes but should not be displayed to customers for selection. If ProductIds are provided, IncludeDefault defaults to true, otherwise it defaults to false.

boolean
nullable
Example
{
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
"Client": "Sample Client 1.0.0",
"ServiceIds": [
"bd26d8db-86da-4f96-9efc-e5a4654a4a94"
],
"UpdatedUtc": {
"StartUtc": "2023-10-01T00:00:00Z",
"EndUtc": "2023-10-31T00:00:00Z"
},
"Limitation": {
"Count": 10
}
}

OK

Product result
object
Products
required

Products offered with the service.

Array<object>
Product
object
Id
required

Unique identifier of the product.

string format: uuid
ServiceId
required

Unique identifier of the Service.

string format: uuid
CategoryId

Unique identifier of the Product category.

string format: uuid
nullable
AccountingCategoryId

Unique identifier of Accounting Category.

string format: uuid
nullable
IsActive
required

Whether the product is still active.

boolean
IsDefault
boolean
Name

Name of the product. Deprecated! Please use Names

string
nullable
Names
required
Localized text

All translations of the name.

object
key
additional properties
string
ExternalName

Name of the product meant to be displayed to customer. Deprecated! Please use ExternalNames

string
nullable
ExternalNames
required
Localized text

All translations of external name.

object
key
additional properties
string
ShortName

Short name of the product. Deprecated! Please use ShortNames

string
nullable
ShortNames
required
Localized text

All translations of short name.

object
key
additional properties
string
Description

Description of the product. Deprecated! Please use Descriptions

string
nullable
Descriptions
Localized text

All translations of descriptions.

object
key
additional properties
string
Charging
Product charging mode

Once

PerTimeUnit

PerPersonPerTimeUnit

PerPerson

string
Allowed values: Once PerTimeUnit PerPersonPerTimeUnit PerPerson
ChargingMode
required
Product charging mode

Charging mode of the product.

Once

PerTimeUnit

PerPersonPerTimeUnit

PerPerson

string
Allowed values: Once PerTimeUnit PerPersonPerTimeUnit PerPerson
Posting
Product posting

Once

Daily

string
Allowed values: Once Daily
PostingMode
required
Product posting mode

Charging mode of the product.

Once

PerTimeUnit

string
Allowed values: Once PerTimeUnit
Options
required
Product options

Options of the product.

object
BillAsPackage
required

Product should be displayed as part of a package.

boolean
Promotions
required

Promotions of the product.

object
BeforeCheckIn
required

Whether it can be promoted before check-in.

boolean
AfterCheckIn
required

Whether it can be promoted after check-in.

boolean
DuringStay
required

Whether it can be promoted during stay.

boolean
BeforeCheckOut
required

Whether it can be promoted before check-out.

boolean
AfterCheckOut
required

Whether it can be promoted after check-out.

boolean
DuringCheckOut
required

Whether it can be promoted during check-out.

boolean
Classifications
required
Product classifications

Classifications of the product.

object
Food

Product is classified as food.

boolean
Beverage

Product is classified as beverage.

boolean
Wellness

Product is classified as wellness.

boolean
CityTax

Product is classified as city tax.

boolean
Fee

Product is classified as fee.

boolean
Price
required
Extended amount

Price representing price of the product.

object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
Pricing
Product pricing
object
Discriminator
Product pricing data discriminator
string
Allowed values: Absolute Relative
Value
One of:
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
ImageIds

Unique identifier of the product image.

Array<string>
nullable
Ordering
required

Order value for presentation purposes.

integer format: int32
ExternalIdentifier

Identifier of the product from external system.

string
nullable <= 255 characters
TaxExemptionReason

Specifies the reason a product is exempt from tax.

IT_N1 (N1 - Escluse ex art.15)

IT_N2_2 (N2.2 - Non soggette – altri casi)

IT_N3_5 (N3.5 - Non imponibili – a seguito di dichiarazioni d’intento)

IT_N4 (N4 - Esenti)

IT_N5 (N5 - Regime del margine / IVA non esposta in fattura)

PL_ZW (ZW - Zwolniony)

PL_NP (NP - Nie podlega)

string
Allowed values: IT_N1 IT_N2_2 IT_N3_5 IT_N4 IT_N5 PL_ZW PL_NP
TaxExemptionLegalReference

Legal reference that states why this product is exempt from tax.

string
nullable
CreatedUtc
required

Creation date and time of the product in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
UpdatedUtc
required

Last update date and time of the product in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
ConsumptionMoment
required
Product consumption moment

Consumption moment of the product.

ServiceOrderEnd

ServiceOrderStart

PostingTimeUnit

NextTimeUnit

string
Allowed values: ServiceOrderEnd ServiceOrderStart PostingTimeUnit NextTimeUnit
CustomerProducts
required

Products offered specifically to customers.

Array<object>
Product
object
Id
required

Unique identifier of the product.

string format: uuid
ServiceId
required

Unique identifier of the Service.

string format: uuid
CategoryId

Unique identifier of the Product category.

string format: uuid
nullable
AccountingCategoryId

Unique identifier of Accounting Category.

string format: uuid
nullable
IsActive
required

Whether the product is still active.

boolean
IsDefault
boolean
Name

Name of the product. Deprecated! Please use Names

string
nullable
Names
required
Localized text

All translations of the name.

object
key
additional properties
string
ExternalName

Name of the product meant to be displayed to customer. Deprecated! Please use ExternalNames

string
nullable
ExternalNames
required
Localized text

All translations of external name.

object
key
additional properties
string
ShortName

Short name of the product. Deprecated! Please use ShortNames

string
nullable
ShortNames
required
Localized text

All translations of short name.

object
key
additional properties
string
Description

Description of the product. Deprecated! Please use Descriptions

string
nullable
Descriptions
Localized text

All translations of descriptions.

object
key
additional properties
string
Charging
Product charging mode

Once

PerTimeUnit

PerPersonPerTimeUnit

PerPerson

string
Allowed values: Once PerTimeUnit PerPersonPerTimeUnit PerPerson
ChargingMode
required
Product charging mode

Charging mode of the product.

Once

PerTimeUnit

PerPersonPerTimeUnit

PerPerson

string
Allowed values: Once PerTimeUnit PerPersonPerTimeUnit PerPerson
Posting
Product posting

Once

Daily

string
Allowed values: Once Daily
PostingMode
required
Product posting mode

Charging mode of the product.

Once

PerTimeUnit

string
Allowed values: Once PerTimeUnit
Options
required
Product options

Options of the product.

object
BillAsPackage
required

Product should be displayed as part of a package.

boolean
Promotions
required

Promotions of the product.

object
BeforeCheckIn
required

Whether it can be promoted before check-in.

boolean
AfterCheckIn
required

Whether it can be promoted after check-in.

boolean
DuringStay
required

Whether it can be promoted during stay.

boolean
BeforeCheckOut
required

Whether it can be promoted before check-out.

boolean
AfterCheckOut
required

Whether it can be promoted after check-out.

boolean
DuringCheckOut
required

Whether it can be promoted during check-out.

boolean
Classifications
required
Product classifications

Classifications of the product.

object
Food

Product is classified as food.

boolean
Beverage

Product is classified as beverage.

boolean
Wellness

Product is classified as wellness.

boolean
CityTax

Product is classified as city tax.

boolean
Fee

Product is classified as fee.

boolean
Price
required
Extended amount

Price representing price of the product.

object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
Pricing
Product pricing
object
Discriminator
Product pricing data discriminator
string
Allowed values: Absolute Relative
Value
One of:
Extended amount
object
Currency
required

ISO-4217 code of the Currency.

string format: currency
>= 1 characters
NetValue
required

Net value without taxes.

number format: double
GrossValue
required

Gross value including all taxes.

number format: double
TaxValues
required

The tax values applied.

Array<object>
Tax value
object
Code

Code corresponding to tax type.

string
nullable
Value
required

Amount of tax applied.

number format: double
Breakdown
required
Tax breakdown

Information about individual tax amounts.

object
Items
required

Tax breakdown items per each tax rate applied.

Array<object>
Tax breakdown item
object
TaxRateCode

Tax rate code for the item. null for untaxed amounts.

string
nullable
NetValue
required

The net value that the tax is calculated from.

number format: double
TaxValue
required

The value of the tax.

number format: double
Value
number format: double
nullable
Net
number format: double
nullable
Tax
number format: double
nullable
TaxRate
number format: double
nullable
ImageIds

Unique identifier of the product image.

Array<string>
nullable
Ordering
required

Order value for presentation purposes.

integer format: int32
ExternalIdentifier

Identifier of the product from external system.

string
nullable <= 255 characters
TaxExemptionReason

Specifies the reason a product is exempt from tax.

IT_N1 (N1 - Escluse ex art.15)

IT_N2_2 (N2.2 - Non soggette – altri casi)

IT_N3_5 (N3.5 - Non imponibili – a seguito di dichiarazioni d’intento)

IT_N4 (N4 - Esenti)

IT_N5 (N5 - Regime del margine / IVA non esposta in fattura)

PL_ZW (ZW - Zwolniony)

PL_NP (NP - Nie podlega)

string
Allowed values: IT_N1 IT_N2_2 IT_N3_5 IT_N4 IT_N5 PL_ZW PL_NP
TaxExemptionLegalReference

Legal reference that states why this product is exempt from tax.

string
nullable
CreatedUtc
required

Creation date and time of the product in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
UpdatedUtc
required

Last update date and time of the product in UTC timezone in ISO 8601 format.

string format: date-time
>= 1 characters
ConsumptionMoment
required
Product consumption moment

Consumption moment of the product.

ServiceOrderEnd

ServiceOrderStart

PostingTimeUnit

NextTimeUnit

string
Allowed values: ServiceOrderEnd ServiceOrderStart PostingTimeUnit NextTimeUnit
Cursor

Unique identifier of the last and hence oldest product returned. This can be used in Limitation in a subsequent request to fetch the next batch of older products.

string format: uuid
nullable
Example
{
"Products": [
{
"Id": "198bc308-c1f2-4a1c-a827-c41d99d52f3d",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"CreatedUtc": "2023-10-01T11:48:57Z",
"UpdatedUtc": "2023-10-28T11:48:57Z",
"CategoryId": null,
"AccountingCategoryId": "6535e19e-1077-49d9-a338-67bf4ffecb14",
"IsActive": true,
"Names": {
"en-US": "Breakfast"
},
"ExternalNames": {
"en-US": "Breakfast"
},
"ShortNames": {
"en-US": "BFST"
},
"Descriptions": {
"en-US": "Nice continental breakfast."
},
"ChargingMode": "PerPersonPerTimeUnit",
"PostingMode": "Once",
"Options": {
"BillAsPackage": false
},
"Promotions": {
"BeforeCheckIn": false,
"AfterCheckIn": false,
"DuringStay": false,
"BeforeCheckOut": false,
"AfterCheckOut": false,
"DuringCheckOut": false
},
"Classifications": {
"Food": false,
"Beverage": false,
"Wellness": false,
"CityTax": false
},
"Price": {
"GrossValue": 25,
"Currency": "EUR",
"TaxValues": [
{
"Code": "FR-T"
}
]
},
"ExternalIdentifier": "PROD-BFST-009"
}
],
"CustomerProducts": [
{
"Id": "198bc308-c1f2-4a1c-a827-c41d99d52f3d",
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
"CreatedUtc": "2023-10-01T11:48:57Z",
"UpdatedUtc": "2023-10-28T11:48:57Z",
"CategoryId": null,
"AccountingCategoryId": "6535e19e-1077-49d9-a338-67bf4ffecb14",
"IsActive": true,
"Names": {
"en-US": "Breakfast"
},
"ExternalNames": {
"en-US": "Breakfast"
},
"ShortNames": {
"en-US": "BFST"
},
"Descriptions": {
"en-US": "Nice continental breakfast."
},
"ChargingMode": "PerPersonPerTimeUnit",
"PostingMode": "Once",
"Options": {
"BillAsPackage": false
},
"Promotions": {
"BeforeCheckIn": false,
"AfterCheckIn": false,
"DuringStay": false,
"BeforeCheckOut": false,
"AfterCheckOut": false,
"DuringCheckOut": false
},
"Classifications": {
"Food": false,
"Beverage": false,
"Wellness": false,
"CityTax": false
},
"Price": {
"GrossValue": 25,
"Currency": "EUR",
"TaxValues": [
{
"Code": "FR-T"
}
]
},
"ExternalIdentifier": "PROD-BFST-009"
}
],
"Cursor": "198bc308-c1f2-4a1c-a827-c41d99d52f3d"
}

Server has successfully fulfilled the request and there is no additional information to send back.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by the client app, e.g. in case of malformed request or invalid identifier of a resource. In most cases, such an error signifies a bug in the client app (consumer of the API).

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by usage of invalid ClientToken, AccessToken, or you may not have the necessary permission to use the endpoint.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Server error that should be reported to the end user of the client app. Happens for example when the server-side validation fails or when a business-logic check is violated.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by heavy request that takes too long to process (typically tens of seconds). To get around this, request data in smaller batches. For more information, see Request timeouts

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Error caused by too many requests sent in a given amount of time. Response contains Retry-After header indicating how long the user agent should wait before making a follow-up request. For more information, see Request limits.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable

Unexpected error on the Mews side. This may be due to a software fault. If such a situation occurs, the error will be logged and the development team notified, however you can raise an issue through GitHub on our documentation repository.

ConnectorApiExceptionResult
object
Message
string
nullable
RequestId
string
nullable
Details
nullable