Products

List available products for purchase

This endpoint returns all products the operator has enabled for your connection.

List Products

GET https://octo.peek.com/integrations/octo/products

Returns all products the operator has enabled for the connection

[
  {
    "id": "av_123",
    "internalName": "Rent-a-Kayak",
    "reference": "BRC-KAYAK",
    "locale": "en",
    "timeZone": "America/Los_Angeles",
    "allowFreesale": true,
    "availabilityType": "START_TIME",
    "deliveryFormats": ["QRCODE"],
    "deliveryMethods": ["VOUCHER"],
    "redemptionMethod": "DIGITAL",
    "capabilities": [
      {
        "id": "octo/pricing",
        "revision": 1,
        "required": true,
        "dependencies": []
      },
      {
        "id": "octo/webhooks",
        "revision": 1,
        "required": false,
        "dependencies": []
      }
    ],
    "options": [
      {
        "id": "av_123",
        "default": true,
        "internalName": "Rent-a-Kayak",
        "reference": null,
        "restrictions": {},
        "units": [
          {
            "id": "ea5fbd4c-9c2a-42f5-80c5-251a9f04da04",
            "internalName": "1-Seater Kayak",
            "reference": "1seat",
            "type": "ADULT",
            "restrictions": {
              "minAge": 18,
              "maxAge": 99,
              "idRequired": false,
              "minQuantity": 1,
              "maxQuantity": null,
              "paxCount": 1,
              "accompaniedBy": []
            }
          },
          {
            "id": "582fd9d7-43fd-4685-a9b2-35b102eaec3a",
            "internalName": "2-Seater Kayak",
            "reference": "2seat",
            "type": "ADULT",
            "restrictions": {
              "minAge": 18,
              "maxAge": 99,
              "idRequired": false,
              "minQuantity": 2,
              "maxQuantity": null,
              "paxCount": 1,
              "accompaniedBy": []
            }
          }
        ]
      }
    ]
  },
  //...rest of the products
]

A description of each of the keys is given below:

Field
Description

id

The product id, you'll need to save this.

internalName

The name this supplier calls the product

reference

An optional code this supplier might use to identify the product

locale

A language code indicating what language this product content is in

timeZone

The IANA timeZone name this product is located in.

allowFreesale

Whether a booking can be made for this product without having to query availability first.

instantConfirmation

Whether bookings will be immediately confirmed when a sale is made, otherwise the supplier will later either accept or reject the booking.

availabilityRequired

Whether an availabilityId is required when creating a booking. Without this the booking will be open-dated and not have a specified travel date.

availabilityType

What type of availability this product has, possible values are: START_TIME if there are fixed departure times which you must pick one. Typical for day tours or activities. OPENING_HOURS if you just select a date and can visit any time when the venue is open.

deliveryFormats

An array of formats the API will deliver the tickets as. Possible values are:

QRCODE A code to be presented as a QR CODE barcode

CODE128A code to be presented as a CODE 128 barcode

PDF_URL A URL to a PDF file which contains all the ticket details

deliveryMethods

How the formats described in deliveryFormats will be delivered in the booking response, possible values are:

TICKET Individually per unit in the order (i.e. single ticket for each person)

VOUCHER One ticket for the whole booking

redemptionMethod

How must the guest present the ticket or voucher when they arrive at the venue. Possible values are:

MANIFEST The guest name will be written down and they just need to show up

DIGITAL The tickets/voucher must be scanned but can be on mobile

PRINT The tickets/voucher must be printed and presented on arrival

capabilities

Capabilities define API extensions that this product supports. Capabilities can be enabled using a special HTTP header that's described in the next section.

capabilities[].id

The capability id which identifies it

capabilities[].revision

An integer which will increment each time the specification for this capability is updated.

capabilities[].required

Whether this product cannot be sold without this capability being used.

capabilities[].dependencies

An array of other capability ids that this capability depends on.

capabilities[].docs

A url to the documentation for this capability is.

capabilities[].default

Whether this capability is enabled by default.

options

An array of all options for this product. All products must have at least one option.

options[].id

The id that identifies this option, it is only unique within the product

options[].default

If there is only one option this value is true to indicate it is the default and therefore doesn't need to be displayed.

options[].internalName

Like product internalName except for each option

options[].reference

Like product reference except for each option

options[].restrictions

An object containing a fixed list of restrictions. Keys and values are:

minUnits The minimum number of tickets that can be purchased in a single booking (null = 0)

maxUnits The maximum number of tickets that can be purchased in a single booking (null = unlimited)

options[].availabilityLocalStartTimes

options[].availabilityLocalStartTimes

This will be an array of all possible start times that can be returned during availability. For example an all day attraction may just have a single value like ["00:00"] but a tour with multiple departure times may have:["09:00", "14:00", "17:00"]

options[].cancellationCutoff

This is how long before the tour the booking can be still be cancelled. We also provide booking.cancellable (boolean) which we recommend you use instead to know if the booking can be cancelled. e.g. (1 Hour)

options[].cancellationCutoffAmount

The numeric amount for the cutoff (e.g. 1)

options[].cancellationCutoffUnit

The cutoff unit (e.g. hour). Possible values are: hour

options[].requiredContactFields[]

An array of the contact fields required to confirm a booking. These just apply to the lead traveller on the booking and not for every ticket. Possible values are: -fullName -emailAddress -phoneNumber -country -notes -locales

options[].units

The list of ticket types (units) available for sale

options[].units[].id

The id of the unit, this will be unique to the option

options[].units[].internalName

Like product/option internalName but for units

options[].units[].reference

Like product/option reference but for units

options[].units[].type

This is the ticket type of the unit, values are:

ADULT YOUTH CHILD INFANT FAMILY SENIOR STUDENT MILITARY OTHERThe "other" type typically is used for an add-on, e.g. Bottle of Champaign, or a rental product like a bicycle.

options[].units[].restrictions

An object containing restrictions about this unit. Possible keys and values are:

minAge An integer indicating the minimum age for the person this unit is for.

maxAge An integer indicating the maximum age for the person this unit is for.

idRequired A boolean value indicating whether the person this unit is for must show ID on arrival.

minQuantity The minimum quantity of this unit required per booking (null = no minimum) maxQuantity The maximum quantity of this unit required per booking (null = no limit)

paxCount The number of people this unit allows. Typically this is 1 but for a family ticket for example, it could be 4 or 5. accompaniedBy An array of unit ids one of which must accompany this unit if it is purchased.

If your server wants to query specific information about a product at a later stage, either to refresh your inventory or check for updates, you can call the following endpoint:

Get Product

GET https://octo.peek.com/integrations/octo/products/:id

Path Parameters

Name
Type
Description

*

String

The product id

{
  "id": "av_123",
  "internalName": "Rent-a-Kayak",
  "reference": "BRC-KAYAK",
  "locale": "en",
  "timeZone": "America/Los_Angeles",
  "allowFreesale": true,
  "availabilityType": "START_TIME",
  "deliveryFormats": ["QRCODE"],
  "deliveryMethods": ["VOUCHER"],
  "redemptionMethod": "DIGITAL",
  "capabilities": [
    {
      "id": "octo/pricing",
      "revision": 1,
      "required": true,
      "dependencies": []
    },
    {
      "id": "octo/webhooks",
      "revision": 1,
      "required": false,
      "dependencies": []
    }
  ],
  "options": [
    {
      "id": "av_123",
      "default": true,
      "internalName": "Rent-a-Kayak",
      "reference": null,
      "restrictions": {},
      "units": [
        {
          "id": "ea5fbd4c-9c2a-42f5-80c5-251a9f04da04",
          "internalName": "1-Seater Kayak",
          "reference": "1seat",
          "type": "ADULT",
          "restrictions": {
            "minAge": 18,
            "maxAge": 99,
            "idRequired": false,
            "minQuantity": 1,
            "maxQuantity": null,
            "paxCount": 1,
            "accompaniedBy": []
          }
        },
        {
          "id": "582fd9d7-43fd-4685-a9b2-35b102eaec3a",
          "internalName": "2-Seater Kayak",
          "reference": "2seat",
          "type": "ADULT",
          "restrictions": {
            "minAge": 18,
            "maxAge": 99,
            "idRequired": false,
            "minQuantity": 2,
            "maxQuantity": null,
            "paxCount": 1,
            "accompaniedBy": []
          }
        }
      ]
    }
  ]
}

Last updated