Connector API
Search…
Products

Get all products

Returns all products offered together with the specified services.

Request

[PlatformAddress]/api/connector/v1/products/getAll
1
{
2
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
3
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
4
"Client": "Sample Client 1.0.0",
5
"ServiceIds": [
6
"bd26d8db-86da-4f96-9efc-e5a4654a4a94"
7
]
8
}
Copied!
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.
ServiceIds
array of string
required, max 1000 items
Unique identifiers of the Services.

Response

1
{
2
"Products": [
3
{
4
"Id": "198bc308-c1f2-4a1c-a827-c41d99d52f3d",
5
"ServiceId": "bd26d8db-86da-4f96-9efc-e5a4654a4a94",
6
"CategoryId": null,
7
"IsActive": true,
8
"Name": "Breakfast",
9
"ExternalName": "Breakfast",
10
"ShortName": "BFST",
11
"Description": "Nice continental breakfast.",
12
"ChargingMode": "PerPersonPerTimeUnit",
13
"PostingMode": "Once",
14
"Options": {
15
"BillAsPackage": false
16
},
17
"Promotions": {
18
"BeforeCheckIn": false,
19
"AfterCheckIn": false,
20
"DuringStay": false,
21
"BeforeCheckOut": false,
22
"AfterCheckOut": false,
23
"DuringCheckOut": false
24
},
25
"Classifications": {
26
"Food": false,
27
"Beverage": false,
28
"Wellness": false,
29
"CityTax": false
30
},
31
"Price": {
32
"Currency": "GBP",
33
"NetValue": 7.5,
34
"GrossValue": 9
35
"TaxValues": [
36
{
37
"Code": "UK-S",
38
"Value": 1.50
39
}
40
],
41
}
42
}
43
]
44
}
Copied!
Property
Type
Contract
Description
Products
array of Product
required
Products offered with the service.

Product

Property
Type
Contract
Description
Id
string
required
Unique identifier of the product.
ServiceId
string
required
Unique identifier of the Service.
CategoryId
string
optional
Unique identifier of the Product category.
IsActive
boolean
required
Whether the product is still active.
Name
string
required
Name of the product.
ExternalName
string
required
Name of the product meant to be displayed to customer.
ShortName
string
required
Short name of the product.
Description
string
optional
Description of the product.
ChargingMode
required
Charging mode of the product.
PostingMode
required
Posting mode of the product.
Options
required
Options of the product.
Promotions
required
Promotions of the service.
Classifications
required
Classifications of the service.
Price
required
Price of the product.

Product charging mode

  • Once
  • PerTimeUnit
  • PerPersonPerTimeUnit
  • PerPerson

Product posting mode

  • Once
  • PerTimeUnit

Product options

Property
Type
Contract
Description
BillAsPackage
boolean
required
Product should be displayed as part of a package.

Product classifications

Property
Type
Contract
Description
Food
boolean
required
Product is classified as food.
Beverage
boolean
required
Product is classified as beverage.
Wellness
boolean
required
Product is classified as wellness.
CityTax
boolean
required
Product is classified as city tax.