Service

Create a service.

Create a service.<br>You must have at least one of these scopes: 'services.create, setup.manage'.

post/rateplan/v1/services

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

codestring required

The code for the service that can be shown in reports and table views

nameobject required

The name for the service

descriptionobject required

The description for the service

propertyIdstring required

The id of the property where the item will be created

pricingUnit'Room' | 'Person' required

Defines the granularity for which this item is offered and priced.

postNextDayboolean required

Whether the service is delivered and posted on the same business date as the accommodation, or on the next day.

channelCodesstring[] nullable

The channel codes the service is sold through. When no channels are defined, the service is sold only in a package

ageCategoryIdstring nullable

The id of the age category associated with this service.

Example request

{
  "code": "BRK",
  "name": {
    "en": "Breakfast",
    "de": "Frühstück"
  },
  "description": {
    "en": "Yummy yummy breakfast",
    "de": "Leckeres Frühstück"
  },
  "propertyId": "MUC",
  "defaultGrossPrice": {
    "amount": 20,
    "currency": "EUR"
  },
  "pricingUnit": "Person",
  "postNextDay": true,
  "availability": {
    "mode": "Daily",
    "quantity": 3,
    "daysOfWeek": [
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday",
      "Saturday",
      "Sunday"
    ]
  },
  "channelCodes": [
    "Direct",
    "Ibe",
    "BookingCom",
    "ChannelManager"
  ],
  "accountingConfigs": [
    {
      "state": "Unknown",
      "vatType": "Normal",
      "serviceType": "FoodAndBeverages",
      "subAccountId": "ALCO",
      "validFrom": "2021-01-01"
    }
  ],
  "ageCategoryId": "MUC-BABY"
}

Response

Service successfully created.

idstring required

The item id

Example response

{
  "id": "MUC-BRKF"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.