Create an occupancy pool

Binds a catalog product to a reservation book. Damos (nights, silent remaining) and Alma (slots, team confirms) are configuration of this object, not hardcoded organizations.

POST
/v1/reservations/pools

Binds a catalog product to a reservation book. Damos (nights, silent remaining) and Alma (slots, team confirms) are configuration of this object, not hardcoded organizations.

Authorization

AuthorizationBearer <token>

The organization API key, sent as Authorization: Bearer <key>.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

capacityNominal*integer
Range1 <= value
catalogProductId*string
catalogProductVariantId?|

Deprecated: pass catalogProductVariantIds.

catalogProductVariantIds?array<string>

Variants that draw from this pool. A variant can belong to one live pool. Omit for a pool that covers the whole product.

disclosure?string

silent (Damos): the guest never hears remaining. team_confirms (Alma): same, the team confirms. public_remaining: the remaining number may travel to the guest. Defaults to silent.

Value in

  • "silent"
  • "team_confirms"
  • "public_remaining"
label?string|null
timeGrain*string

Value in

  • "night"
  • "slot"
timezone?string
unit*string

Value in

  • "room_night"
  • "seat_slot"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/reservations/pools" \  -H "Content-Type: application/json" \  -d '{    "capacityNominal": 1,    "catalogProductId": "string",    "timeGrain": "night",    "unit": "room_night"  }'
{  "archivedAt": "2019-08-24T14:15:22Z",  "capacityNominal": 0,  "catalogProductId": "string",  "catalogProductVariantId": "string",  "catalogProductVariantIds": [    "string"  ],  "createdAt": "2019-08-24T14:15:22Z",  "disclosure": "silent",  "id": "string",  "label": "string",  "timeGrain": "night",  "timezone": "string",  "unit": "room_night",  "updatedAt": "2019-08-24T14:15:22Z"}