Capabilities
How to use core extensions
Last updated
How to use core extensions
Last updated
Peek Pro currently supports the following capabilities:
Pricing
Webhooks
They are enabled by passing them into the request header, as mentioned in the previous Headers section. Capabilities are optional but may provide functionality to improve your integration.
Name | ID | Description |
---|---|---|
Each capability is defined like the following:
Field | Description |
---|---|
By default, Peek Pro will enable the full list of capabilities all the time. There is currently no mechanism for controlling which capabilities are active.
To know which capabilities you are using, the HTTP response will echo the Octo-Capabilities
header including the list that were applied. For example:
Some products cannot be sold without the use of a capability. If that is the case then the required: true
will be put on the capability object within that product. If you have not implemented that capability then you cannot sell the product.
The capabilities defined on products include a revision
number which will increment each time we update the capability. It's important to note that capabilities will NEVER introduce breaking changes, if they do then a new capability will be written entirely. For example: octo/pricing2
octo/pricing
Adds pricing to most endpoints giving you advanced static and dynamic pricing capabilities.
octo/webhooks
Programatically create webhooks to listen for booking confirmations, updates and cancellations.
id
The identifier of this capability. You'll need to include this in the request header or parameter to use this capability.
revision
A auto-incrementing integer indicating the supported revision of this capability. Capability revisions will always be backward compatible.
required
Whether supporting this capability is required in order to sell this product.
dependencies
An array of other capabilities that this capability requires in order to be used.
docs
A URL to the online documentation for this capability.
default
Whether this is a default capability that's enabled.