For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Resource categories

Get all resource categories

Returns all categories of resources. This operation uses Pagination.

Request

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

{
  "ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
  "AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
  "Client": "Sample Client 1.0.0",
  "EnterpriseIds": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "4d0201db-36f5-428b-8d11-4f0a65e960cc"
  ],
  "ResourceCategoryIds": [
    "5c0804f9-d03a-4b13-a57d-b00300781a41",
    "47d6b462-35ec-467e-a565-b00300781a41"
  ],
  "ServiceIds": [
    "9b3a6c54-63aa-4383-b50e-b0030078184b",
    "c0f71466-6c0b-4993-88ac-1794f6b7e958"
  ],
  "UpdatedUtc": {
    "StartUtc": "2023-05-05T00:00:00Z",
    "EndUtc": "2023-05-10T00:00:00Z"
  },
  "ActivityStates": [
    "Active"
  ],
  "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

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

ResourceCategoryIds

array of string

optional, max 1000 items

Unique identifiers of Resource categories.

ServiceIds

array of string

required, max 1000 items

Unique identifiers of Services to which the resource categories belong.

UpdatedUtc

optional, max length 3 months

Interval in which the resource categories were updated.

ActivityStates

optional

Whether to return only active, only deleted or both records.

Limitation

required

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

Response

Property
Type
Contract
Description

ResourceCategories

required, max 1000 items

Resource categories of the resources.

Cursor

string

optional

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

Get all resource category assignments

Returns all resource category assignments. This operation uses Pagination.

Request

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

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

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

ResourceCategoryAssignmentIds

array of string

optional, max 1000 items

Unique identifiers of Resource category assignment.

ResourceCategoryIds

array of string

required, max 1000 items

Unique identifiers of Resource categories to which the resource category assignment belong.

UpdatedUtc

optional

Interval in which the resource category assignments were updated.

ActivityStates

optional

Whether to return only active, only deleted or both records. The ActivityState filter applies only to record’s own status. The IsActive response property also considers the parent’s status, so some returned records may have IsActive = false if their parent is deleted.

ResourceIds

array of string

optional, max 1000 items

Unique identifiers of resources to which the resource category assignments belong.

Limitation

required

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

Response

Property
Type
Contract
Description

ResourceCategoryAssignments

required, max 1000 items

Resource category assignments.

Cursor

string

optional

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

Resource category assignment

Property
Type
Contract
Description

Id

string

required

Unique identifier of the assignment.

IsActive

boolean

required

Whether the assignment is still active.

ResourceId

string

required

Unique identifier of the Resource assigned to the Resource category.

CategoryId

string

required

Unique identifier of the Resource category.

CreatedUtc

string

required

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

UpdatedUtc

string

required

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

Get all resource category image assignments

Returns all resource category image assignments. This operation uses Pagination.

Request

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

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

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

ResourceCategoryImageAssignmentIds

array of string

optional, max 1000 items

ResourceCategoryIds

array of string

required, max 1000 items

Unique identifiers of Resource categories to which the resource category image assignments belong.

UpdatedUtc

optional

Interval in which the resource category image assignments were updated.

ActivityStates

optional

Whether to return only active, only deleted or both records.

Limitation

required

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

Response

Property
Type
Contract
Description

ResourceCategoryImageAssignments

required, max 1000 items

Resource category image assignments.

Cursor

string

optional

Unique identifier of the last and hence oldest resource category image assignment returned. This can be used in Limitation in a subsequent request to fetch the next batch of older resource category image assignments.

Resource category image assignment

Property
Type
Contract
Description

Id

string

required

Unique identifier of the assignment.

IsActive

boolean

required

Whether the assignment is still active.

CategoryId

string

required

Unique identifier of the Resource category.

ImageId

string

required

Unique identifier of the image assigned to the Resource category.

CreatedUtc

string

required

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

UpdatedUtc

string

required

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

Ordering

integer

required

Ordering of the image in the resource category.

Add resource categories

Restricted!

This operation is currently in beta-test and as such it is subject to change.

Adds one or more resource categories (also known as space categories or room types) to the specified services. Note this operation supports Portfolio Access Tokens.

Request

[PlatformAddress]/api/connector/v1/resourceCategories/add

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.

EnterpriseId

string

optional

Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.

ResourceCategories

required, max 100 items

Parameters of the new resource categories to be created.

Resource category add parameters

Property
Type
Contract
Description

ServiceId

string

required

Unique identifier of the Service the resource category belongs to.

Type

required

Type of the category.

Capacity

integer

required

Capacity that can be served (e.g. bed count). Must be a positive number.

ExtraCapacity

integer

optional

Extra capacity that can be served (e.g. extra bed count). Must not be negative.

Names

optional

All translations of the name.

ShortNames

optional

All translations of the short name.

Descriptions

optional

All translations of the description.

Classification

optional

Classification of the resource category.

Ordering

integer

optional

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

ExternalIdentifier

string

optional, max length 255 characters

Identifier of the resource category from an external system.

AccountingCategoryId

string

optional

Unique identifier of the accounting category.

Resource classification

  • StandardSingle

  • StandardDouble

  • SuperiorTwin

  • SuperiorDouble

  • JuniorSuite

  • SharedOrDorm

  • Other

  • SuperiorSingle

  • Triple

  • Family

  • StandardTwin

  • Studio

  • SuperiorTripleRoom

  • OneBedroomApartment

  • ThreeBedroomsApartment

  • TwoBedroomsApartment

Response

Property
Type
Contract
Description

ResourceCategories

required, max 100 items

Resource categories affected by the operation.

Update resource categories

Restricted!

This operation is currently in beta-test and as such it is subject to change.

Updates one or more existing resource categories. Only the fields that are set are updated. Note this operation supports Portfolio Access Tokens.

Request

[PlatformAddress]/api/connector/v1/resourceCategories/update

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.

EnterpriseId

string

optional

Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.

ResourceCategoryUpdates

required, max 100 items

Details of the resource categories to be updated.

Resource category update parameters

Property
Type
Contract
Description

ResourceCategoryId

string

required

Unique identifier of the resource category to be updated.

Names

optional

All translations of the name (or null if it should not be updated).

ShortNames

optional

All translations of the short name (or null if it should not be updated).

Descriptions

optional

All translations of the description (or null if it should not be updated).

Type

optional

Type of the category (or null if it should not be updated).

Capacity

optional

Capacity that can be served, e.g. bed count. Must be a positive number (or null if it should not be updated).

ExtraCapacity

optional

Extra capacity that can be served, e.g. extra bed count. Must not be negative (or null if it should not be updated).

Ordering

optional

Ordering of the category, lower number corresponds to lower category (or null if it should not be updated).

Classification

optional

Classification of the resource category. Set the inner value to null to clear it (or null if it should not be updated).

ExternalIdentifier

optional

Identifier of the resource category from an external system. Set the inner value to null to clear it (or null if it should not be updated).

AccountingCategoryId

optional

Unique identifier of the accounting category. Set the inner value to null to clear it (or null if it should not be updated).

Localized text update value

Property
Type
Contract
Description

Value

optional

Value which is to be updated.

Resource category type update value

Property
Type
Contract
Description

Value

required

Value which is to be updated.

Resource classification update value

Property
Type
Contract
Description

Value

optional

Value which is to be updated.

Response

Property
Type
Contract
Description

ResourceCategories

required, max 100 items

Resource categories affected by the operation.

Delete resource categories

Restricted!

This operation is currently in beta-test and as such it is subject to change.

Deletes the specified resource categories. A resource category cannot be deleted while it still has active resources, overbookings, rate adjustments, channel manager mappings, product rules, promotions, restrictions or active reservations. Note this operation supports Portfolio Access Tokens.

Request

[PlatformAddress]/api/connector/v1/resourceCategories/delete

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.

EnterpriseId

string

optional

Unique identifier of the enterprise. Required when using Portfolio Access Tokens, ignored otherwise.

ResourceCategoryIds

array of string

required, max 100 items

Unique identifiers of the resource categories to be deleted.

Response

Last updated

Was this helpful?