Bookla Platform API (1.0)
Download OpenAPI specification:Download
This is the API documentation for the Bookla Platform API.
The "Company" serves as the foundational element within the Bookla system. It acts as the central entity to which services and resources are linked. Companies can encapsulate legal information, crucial for invoicing purposes, especially when integrating payment functionalities.
A company in the Bookla platform is not just a business entity; it's the primary instance around which the booking infrastructure revolves. Merchants can manage multiple companies under a single account, seamlessly switching between them as needed to cater to diverse operational requirements.
Response samples
- 200
- 403
- 500
[- {
- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "string",
- "timeZone": "America/New_York",
- "updatedAt": "2021-01-01T12:00:00Z"
}
]
Create company
Method to create a company for merchant
Authorizations:
Request Body schema: application/jsonrequired
Company data
name required | string Name of the company |
timeZone required | string Time zone of the company |
Responses
Request samples
- Payload
{- "name": "Company Name",
- "timeZone": "America/New_York"
}
Response samples
- 201
- 400
- 403
- 500
{- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "string",
- "timeZone": "America/New_York",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Get company
Method to get company for merchant
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "string",
- "timeZone": "America/New_York",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Service - is a service that is provided by the company. Service is linked to one or many resources. These are services that are provided by the location (company).
Types of services:
1. Fixed - Services with a predetermined duration (e.g., 1-hour massage, 1-hour training session)
2. Flexible - Services where clients can choose the duration of the booking (e.g., tennis court, wakeboard reservation).
3. Group - Services that accommodate multiple bookings within a single time slot until the capacity is reached (e.g., group training, group excursions).
4. Ticket - Similar to group services but requires selecting tickets for the slot (e.g., concert tickets, museum entry).
5. Days - Services intended for long-term bookings (e.g., guest houses, hotel stays).
6. Sharable - Pay-as-you-go bookings (e.g., scooter rental, car rental, equipment rental).
List services
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "color": "#FF0000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-01-01T12:00:00Z",
- "disabledAt": "2021-01-01T12:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Service name",
- "settings": {
- "bookingPolicy": "instant",
- "bufferAfter": "PT1H",
- "bufferBefore": "PT1H",
- "currency": "USD",
- "duration": "PT1H",
- "tax": {
- "inclusive": true,
- "rate": 10
}, - "timeInterval": "PT1H"
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
]
Create service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
Request Body schema: application/jsonrequired
Service data
color | string Color of the service. Can be used to differentiate services in the UI. Must be a valid hex color code. |
object Metadata of the service | |
name required | string Name of the service |
object Service settings | |
type required | string Type of the service. Can be one of |
Responses
Request samples
- Payload
{- "color": "#FF0000",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Service name",
- "settings": {
- "bookingPolicy": "instant",
- "bufferAfter": "PT1H",
- "bufferBefore": "PT1H",
- "currency": "USD",
- "duration": "PT1H",
- "tax": {
- "inclusive": true,
- "rate": 10
}, - "timeInterval": "PT1H"
}, - "type": "fixed"
}
Response samples
- 201
- 400
- 403
- 404
- 500
{- "color": "#FF0000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-01-01T12:00:00Z",
- "disabledAt": "2021-01-01T12:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Service name",
- "settings": {
- "bookingPolicy": "instant",
- "bufferAfter": "PT1H",
- "bufferBefore": "PT1H",
- "currency": "USD",
- "duration": "PT1H",
- "tax": {
- "inclusive": true,
- "rate": 10
}, - "timeInterval": "PT1H"
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Get one service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "color": "#FF0000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-01-01T12:00:00Z",
- "disabledAt": "2021-01-01T12:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Service name",
- "settings": {
- "bookingPolicy": "instant",
- "bufferAfter": "PT1H",
- "bufferBefore": "PT1H",
- "currency": "USD",
- "duration": "PT1H",
- "tax": {
- "inclusive": true,
- "rate": 10
}, - "timeInterval": "PT1H"
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Update service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Update service data
color | string Color of the service. Can be used to differentiate services in the UI. Must be a valid hex color code. |
enabled | boolean Flag to enable or disable the service |
object Metadata update object | |
name | string Name of the service |
Responses
Request samples
- Payload
{- "color": "#FF0000",
- "enabled": true,
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "name": "Service name"
}
Update service settings
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Service data
bookingPolicy | string Booking policy of the service. Can be one of |
bufferAfter | string Buffer time after booking. Must be a valid ISO 8601 duration, e.g. |
bufferBefore | string Buffer time before booking. Must be a valid ISO 8601 duration, e.g. |
currency | string Currency of the service. Must be a valid ISO 4217 currency code. |
duration | string Duration of the service. Must be a valid ISO 8601 duration, e.g. |
object Tax settings of the service. Can be used to calculate taxes for the service price. | |
timeInterval | string Time interval when service can be booked. Must be a valid ISO 8601 duration, e.g. |
Responses
Request samples
- Payload
{- "bookingPolicy": "instant",
- "bufferAfter": "PT1H",
- "bufferBefore": "PT1H",
- "currency": "USD",
- "duration": "PT1H",
- "tax": {
- "inclusive": true,
- "rate": 10
}, - "timeInterval": "PT1H"
}
A Resource refers to any entity a company offers that clients can book, including human resources like hairdressers or coaches, and physical assets such as tennis courts or guest houses. Resources are central to scheduling appointments in the Bookla ecosystem.
List resources
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
]
Create a resource
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
Request Body schema: application/jsonrequired
Resource data
color | string Color of the resource. Can be used to differentiate resources in the UI. Must be a valid hex color code. |
object Metadata of the resource | |
name required | string Name of the resource |
Responses
Request samples
- Payload
{- "color": "#FF0000",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name"
}
Response samples
- 201
- 400
- 403
- 404
- 500
{- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
Get one resource
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
resource_id required | string <uuid> Resource ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
Update resource
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
resource_id required | string <uuid> Resource ID |
Request Body schema: application/jsonrequired
Resource data
color | string Color of the resource. Can be used to differentiate resources in the UI. Must be a valid hex color code. |
enabled | boolean Whether the resource is enabled or not. If not provided, the resource will be enabled. |
object Metadata update object | |
name | string Name of the resource |
Responses
Request samples
- Payload
{- "color": "#FF0000",
- "enabled": true,
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "name": "Resource Name"
}
Response samples
- 200
- 400
- 403
- 404
- 500
{- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
The "Capacity" rule defines the maximum number of clients or tickets that can be accommodated within a given time slot. This rule is particularly useful for group
and ticket
services, where multiple clients can book the same slot until the capacity is reached.
List capacity rules
path Parameters
company_id required | string Company ID |
service_id required | string Service ID |
query Parameters
type | string Type of the rule. Can be one of |
Responses
Response samples
- 200
- 400
- 401
- 403
- 500
{- "capacities": [
- {
- "createdAt": "2021-01-01T12:00:00Z",
- "id": "string",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- "string"
]
}, - "priority": 0,
- "serviceID": "string",
- "spots": 10,
- "spotsPerTicket": {
- "3587ccc0-d294-499a-b397-224ec61aafa1": 4,
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1": 6
}, - "type": "string"
}
], - "resources": [
- {
- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
], - "tickets": [
- {
- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Ticket name",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "updatedAt": "2021-01-01T12:00:00Z"
}
]
}
Create a capacity
Authorizations:
path Parameters
company_id required | string Company ID |
service_id required | string Service ID |
Request Body schema: application/jsonrequired
Capacity rule data
object Limitation of the rule. | |
priority | integer Priority of the rule. Rules with higher priority will be applied first. |
spots | integer The number of spots available. |
object A key-value pair of ticket ID and the number of spots available per ticket. Required only for | |
type | string Type of the rule. Can be one of |
Responses
Request samples
- Payload
{- "limitation": {
- "dates": [
- {
- "end": "string",
- "start": "string"
}
], - "daysOfWeek": 0,
- "id": "string",
- "resourceIDs": [
- "string"
], - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "priority": 0,
- "spots": 10,
- "spotsPerTicket": {
- "3587ccc0-d294-499a-b397-224ec61aafa1": 4,
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1": 6
}, - "type": "string"
}
Response samples
- 201
- 400
- 401
- 403
- 500
{- "createdAt": "2021-01-01T12:00:00Z",
- "id": "string",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- "string"
]
}, - "priority": 0,
- "serviceID": "string",
- "spots": 10,
- "spotsPerTicket": {
- "3587ccc0-d294-499a-b397-224ec61aafa1": 4,
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1": 6
}, - "type": "string"
}
Closing periods are used to define when a resource is not available. This is particularly useful for holidays or other special occasions.
Create a closing period
path Parameters
company_id required | string Company ID |
resource_id required | string Resource ID |
Request Body schema: application/jsonrequired
Closing period data
endTime | string End date and time of the rule. |
priority | integer Priority of the rule. Rules with higher priority will be applied first. |
startTime | string Start date and time of the rule. |
Responses
Request samples
- Payload
{- "endTime": "string",
- "priority": 0,
- "startTime": "string"
}
Response samples
- 201
- 400
- 401
- 403
- 500
{- "createdAt": "string",
- "endTime": "string",
- "id": "string",
- "priority": 0,
- "resourceID": "string",
- "startTime": "string",
- "updatedAt": "string"
}
The "Discount" rule allows merchants to offer discounts based on various parameters, such as the number of bookings, the time of booking, or the duration of the booking. This rule is highly versatile, enabling merchants to create custom discount strategies to attract and retain clients.
List discounts for service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
query Parameters
type | string Discount type |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "discounts": [
- {
- "id": "string",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- {
- "end": "18:00",
- "start": "09:00"
}
]
}, - "priority": 0,
- "rules": [
- {
- "from": 0,
- "price": 0,
- "ticketID": "string",
- "to": 0
}
], - "serviceID": "string",
- "sumsUp": true,
- "type": "string"
}
]
}
Create a discount
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Discount data
object Limitation of the discount | |
priority required | integer Priority of the discount |
Array of objects (github_com_bookla-app_platform_api_platform_pricing_direct.TicketVolumeDiscountRule) A list of ticket volume discount rules | |
sumsUp | boolean If true, the discount is summed up with other discounts |
type required | string Type of the discount. Can be one of |
Responses
Request samples
- Payload
{- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- {
- "end": "18:00",
- "start": "09:00"
}
]
}, - "priority": 0,
- "rules": [
- {
- "from": 0,
- "price": 0,
- "ticketID": "string",
- "to": 0
}
], - "sumsUp": true,
- "type": "ticket"
}
Response samples
- 201
- 400
- 403
- 404
- 500
{- "id": "string",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- {
- "end": "18:00",
- "start": "09:00"
}
]
}, - "priority": 0,
- "rules": [
- {
- "from": 0,
- "price": 0,
- "ticketID": "string",
- "to": 0
}
], - "serviceID": "string",
- "sumsUp": true,
- "type": "string"
}
This rule dynamically determines the pricing of each service offered. It is highly versatile, allowing adjustments based on various parameters to meet any pricing strategy needs.
List price rules for a service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "resources": [
- {
- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
], - "rules": [
- {
- "createdAt": "string",
- "duration": "string",
- "id": "string",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- "string"
]
}, - "maxDuration": "string",
- "minDuration": "string",
- "price": {
- "comparedPrice": 200,
- "price": 100
}, - "priority": 0,
- "serviceID": "string",
- "ticketID": "string",
- "type": "string"
}
], - "tickets": [
- {
- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Ticket name",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "updatedAt": "2021-01-01T12:00:00Z"
}
]
}
Create a price rule for service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Price rule data
duration | string Duration of the price rule, e.g. |
object Limitation of the price rule | |
maxDuration | string Maximum duration of the price rule, e.g. |
minDuration | string Minimum duration of the price rule, e.g. |
required | object Price of the price rule |
priority required | integer Priority of the price rule |
ticketID | string A unique identifier of the ticket |
type required | string Type of the price rule. Can be one of |
Responses
Request samples
- Payload
{- "duration": "PT1H",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- {
- "end": "18:00",
- "start": "09:00"
}
]
}, - "maxDuration": "PT4H",
- "minDuration": "PT1H",
- "price": {
- "comparedPrice": 200,
- "price": 100
}, - "priority": 1,
- "ticketID": "90bc7809-b277-4ddf-a827-5c9fdb9a81ad",
- "type": "fixed"
}
Response samples
- 201
- 400
- 403
- 404
- 500
{- "createdAt": "string",
- "duration": "string",
- "id": "string",
- "limitation": {
- "dates": [
- {
- "end": "2021-02-01T00:00:00Z",
- "start": "2021-01-01T00:00:00Z"
}
], - "daysOfWeek": 0,
- "resourceIDs": [
- "string"
], - "times": [
- "string"
]
}, - "maxDuration": "string",
- "minDuration": "string",
- "price": {
- "comparedPrice": 200,
- "price": 100
}, - "priority": 0,
- "serviceID": "string",
- "ticketID": "string",
- "type": "string"
}
The "ServiceResourceLink" entity establishes a connection between a service and a resource. This link is crucial for the Bookla platform to determine which resources are available for a given service, enabling clients to book appointments seamlessly.
List of service-resource links
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "links": [
- {
- "createdAt": "string",
- "id": "string",
- "relatedResourceIDs": [
- "string"
], - "resourceID": "string",
- "serviceID": "string",
- "updatedAt": "string"
}
], - "resources": [
- {
- "color": "#FF0000",
- "companyID": "31517972-ccad-406c-9100-c0c49e37cf37",
- "createdAt": "2024-01-01T08:00:00Z",
- "disabledAt": "2024-01-01T08:00:00Z",
- "id": "b431830e-8ee8-4755-bb0c-cd67f855b8f9",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Resource Name",
- "updatedAt": "2024-01-01T08:00:00Z"
}
]
}
Link service with resource
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Link data
relatedResourceIDs | Array of strings IDs of the resources that are related to the linked resource. When the linked resource is booked, the related resources are also booked. |
resourceID | string ID of the resource that is linked to the service |
Responses
Request samples
- Payload
{- "relatedResourceIDs": [
- "string"
], - "resourceID": "90bc7809-b277-4ddf-a827-5c9fdb9a81ad"
}
Response samples
- 201
- 400
- 403
- 404
- 500
{- "createdAt": "string",
- "id": "string",
- "relatedResourceIDs": [
- "string"
], - "resourceID": "string",
- "serviceID": "string",
- "updatedAt": "string"
}
The "Slot" entity represents a group or ticket service's time slot. It encapsulates the start and end times of the slot, as well as the number of available slots.
List slots for a service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "createdAt": "2021-01-01T12:00:00Z",
- "duration": "PT1H",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "resourceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "startTime": "2021-01-01T12:00:00Z",
- "type": "string",
- "updatedAt": "2021-01-01T12:00:00Z"
}
]
Create slot for service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Slot data
duration | string In ISO8601 format |
object Recurring rule | |
startTime required | string Start time of the slot in RFC3339 format |
Responses
Request samples
- Payload
{- "duration": "PT1H",
- "repeat": {
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "until": "2021-02-01T12:00:00Z"
}, - "startTime": "2021-01-01T12:00:00Z"
}
Response samples
- 201
- 400
- 403
- 404
- 500
{- "createdAt": "2021-01-01T12:00:00Z",
- "duration": "PT1H",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "resourceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "startTime": "2021-01-01T12:00:00Z",
- "type": "string",
- "updatedAt": "2021-01-01T12:00:00Z"
}
List tickets for a service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Ticket name",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "updatedAt": "2021-01-01T12:00:00Z"
}
]
Create ticket for service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Ticket data
Responses
Request samples
- Payload
{ }
Response samples
- 201
- 400
- 403
- 404
- 500
{- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Ticket name",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Get a ticket for a service
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
ticket_id required | string Ticket ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "createdAt": "2021-01-01T12:00:00Z",
- "enabled": true,
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "metaData": {
- "property1": null,
- "property2": null
}, - "name": "Ticket name",
- "serviceID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "updatedAt": "2021-01-01T12:00:00Z"
}
List available times
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
service_id required | string <uuid> Service ID |
Request Body schema: application/jsonrequired
Times data
duration | string Duration of the timeslot in ISO8601 format (eg. PT1H) |
from required | string Start of the time range in RFC3339 format |
resourceIDs | Array of strings IDs of the resources that will be used to filter available timeslots |
spots | integer Number of spots that will be requested. Required for |
object A key-value pair of ticket IDs and the number of spots that will be requested. Required for | |
to required | string End of the time range in RFC3339 format |
Responses
Request samples
- Payload
{- "duration": "PT1H",
- "from": "2021-01-01T00:00:00Z",
- "resourceIDs": [
- "3587ccc0-d294-499a-b397-224ec61aafa1",
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1"
], - "spots": 2,
- "tickets": {
- "3587ccc0-d294-499a-b397-224ec61aafa1": 1,
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1": 2
}, - "to": "2021-01-01T23:59:59Z"
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "times": {
- "property1": [
- {
- "duration": "PT1H",
- "price": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "spotsAvailable": 2,
- "startTime": "2021-01-01T00:00:00Z",
- "ticketPrices": {
- "property1": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "property2": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}
}
}
], - "property2": [
- {
- "duration": "PT1H",
- "price": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "spotsAvailable": 2,
- "startTime": "2021-01-01T00:00:00Z",
- "ticketPrices": {
- "property1": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "property2": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}
}
}
]
}
}
Delete working hours for resource
Authorizations:
path Parameters
resource_id required | string <uuid> Resource ID |
company_id required | string <uuid> Company ID |
Request Body schema: application/jsonrequired
Working hours data
Responses
Request samples
- Payload
{ }
List working hours
Authorizations:
path Parameters
resource_id required | string <uuid> Resource ID |
company_id required | string <uuid> Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "createdAt": "string",
- "endTime": "string",
- "id": "string",
- "priority": 0,
- "resourceID": "string",
- "startTime": "string",
- "updatedAt": "string",
- "workingHours": [
- {
- "daysOfWeek": 0,
- "hours": [
- {
- "end": "string",
- "start": "string"
}
]
}
]
}
]
Create working hours
Authorizations:
path Parameters
resource_id required | string <uuid> Resource ID |
company_id required | string <uuid> Company ID |
Request Body schema: application/jsonrequired
Working hours data
endTime | string End date and time of the rule. |
priority | integer Priority of the rule. Rules with higher priority will be applied first. |
startTime | string Start date and time of the rule. |
Array of objects (direct.WorkingHour) The list of working hours for the resource. |
Responses
Request samples
- Payload
{- "endTime": "string",
- "priority": 0,
- "startTime": "string",
- "workingHours": [
- {
- "daysOfWeek": 0,
- "hours": [
- {
- "end": "string",
- "start": "string"
}
]
}
]
}
Response samples
- 201
- 400
- 403
- 404
- 409
- 500
{- "createdAt": "string",
- "endTime": "string",
- "id": "string",
- "priority": 0,
- "resourceID": "string",
- "startTime": "string",
- "updatedAt": "string",
- "workingHours": [
- {
- "daysOfWeek": 0,
- "hours": [
- {
- "end": "string",
- "start": "string"
}
]
}
]
}
Get bookings
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
query Parameters
from | string From date and time in RFC3339 format. |
limit | integer Limit the number of results. Default is 100. |
offset | integer Offset the results. Default is 0. |
resourceIDs | string List of resource IDs to filter by seperated by comma. |
serviceIDs | string List of service IDs to filter by seperated by comma. |
to | string To date and time in RFC3339 format. |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "bookings": [
- {
- "bookingPolicy": "instant",
- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "clientInitiated": true,
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "recurringID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
], - "clients": [
- {
- "createdAt": "string",
- "email": "string",
- "externalUserID": "string",
- "firstName": "string",
- "id": "string",
- "lastName": "string",
- "state": "string",
- "updatedAt": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Create a booking
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
Request Body schema: application/jsonrequired
Booking data
clientID | string <uuid> Identifier of the client this booking is associated with. Can be blank if the client is not known. |
duration | string In ISO8601 format |
ignoreSchedule | boolean |
object Set of key-value pairs that you can attach to an object. | |
object Recurring rule | |
resourceID required | string <uuid> Identifier for the resource this booking is associated with. |
serviceID required | string <uuid> Identifier for the service this booking is associated with. |
spots | integer Number of spots booked. It's greater than 1 for services with type |
startTime required | string Start time of the booking in RFC3339 format. |
object A set of key-value pair pairs where key is the ticket ID and value is the number of tickets booked. Required for services with type |
Responses
Request samples
- Payload
{- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "duration": "PT1H",
- "ignoreSchedule": true,
- "metaData": {
- "property1": null,
- "property2": null
}, - "repeat": {
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "until": "2021-02-01T12:00:00Z"
}, - "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "tickets": {
- "property1": 0,
- "property2": 0
}
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "bookingPolicy": "instant",
- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "clientInitiated": true,
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "recurringID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Get one booking
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
booking_id required | string <uuid> Booking ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "bookingPolicy": "instant",
- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "clientInitiated": true,
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "recurringID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Update booking
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
booking_id required | string <uuid> Booking ID |
Request Body schema: application/jsonrequired
Update booking data
duration | string |
object Metadata update object | |
price | integer |
resourceID | string <uuid> |
spots | integer |
startTime | string |
status | string |
Responses
Request samples
- Payload
{- "duration": "PT1H",
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "price": 1000,
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed"
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "bookingPolicy": "instant",
- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "clientInitiated": true,
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "recurringID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Move a booking
Authorizations:
path Parameters
company_id required | string <uuid> Company ID |
booking_id required | string <uuid> Booking ID |
Request Body schema: application/jsonrequired
Move booking data
ignoreSchedule | boolean |
recalculatePrice | boolean |
recurringUpdateStrategy | string comment single or upcoming |
resourceID required | string <uuid> |
startTime required | string |
Responses
Request samples
- Payload
{- "ignoreSchedule": true,
- "recalculatePrice": true,
- "recurringUpdateStrategy": "single",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "startTime": "string"
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "bookingPolicy": "instant",
- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "clientInitiated": true,
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "recurringID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
Get capacity rules for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
query Parameters
subscription_ids required | string Subscription IDs |
Responses
Response samples
- 200
- 400
- 403
- 500
[- {
- "archivedAt": "string",
- "createdAt": "string",
- "endDate": "string",
- "id": "string",
- "maxCount": 0,
- "metaData": {
- "property1": null,
- "property2": null
}, - "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
], - "updatedAt": "string"
}
]
Create capacity rule for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
Request Body schema: application/jsonrequired
Create capacity rule request
endDate | string |
maxCount | integer |
object | |
priority | integer |
startDate | string |
subscriptionIDs | Array of strings |
Responses
Request samples
- Payload
{- "endDate": "string",
- "maxCount": 0,
- "metaData": {
- "property1": null,
- "property2": null
}, - "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
]
}
Response samples
- 201
- 400
- 403
- 500
{- "archivedAt": "string",
- "createdAt": "string",
- "endDate": "string",
- "id": "string",
- "maxCount": 0,
- "metaData": {
- "property1": null,
- "property2": null
}, - "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
], - "updatedAt": "string"
}
Update capacity rule for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
item_id required | string Capacity rule ID |
Request Body schema: application/jsonrequired
Update capacity rule request
archive | boolean |
endDate | string |
maxCount | integer |
object (metadata.Update) | |
priority | integer |
startDate | string |
subscriptionIDs | Array of strings |
Responses
Request samples
- Payload
{- "archive": true,
- "endDate": "string",
- "maxCount": 0,
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
]
}
Response samples
- 200
- 400
- 403
- 500
{- "archivedAt": "string",
- "createdAt": "string",
- "endDate": "string",
- "id": "string",
- "maxCount": 0,
- "metaData": {
- "property1": null,
- "property2": null
}, - "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
], - "updatedAt": "string"
}
Get capacity availability for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
query Parameters
subscription_ids required | string Subscription IDs |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "items": [
- {
- "active": 0,
- "max": 0,
- "pending": 0,
- "subscriptionID": "string"
}
]
}
Update client subscription contract
Authorizations:
path Parameters
company_id required | string Company ID |
item_id required | string Subscription contract ID |
Request Body schema: application/jsonrequired
Create subscription contract request
clientID | string |
duration | string |
object Metadata update object | |
status | string |
subscriptionID | string |
Responses
Request samples
- Payload
{- "clientID": "string",
- "duration": "string",
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "status": "string",
- "subscriptionID": "string"
}
Response samples
- 200
- 400
- 403
- 404
- 500
{- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
Search contracts in company
Authorizations:
path Parameters
company_id required | string Company ID |
Request Body schema: application/jsonrequired
Search contracts request
clientIDs | Array of strings |
fromDate | string |
limit | integer |
object (metadata.Query) | |
offset | integer |
resourceIDs | Array of strings |
serviceIDs | Array of strings |
status | string |
subscriptionIDs | Array of strings |
toDate | string |
Responses
Request samples
- Payload
{- "clientIDs": [
- "string"
], - "fromDate": "string",
- "limit": 0,
- "metaDataQuery": {
- "op": "eq",
- "path": "string",
- "value": null
}, - "offset": 0,
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "status": "string",
- "subscriptionIDs": [
- "string"
], - "toDate": "string"
}
Response samples
- 200
- 400
- 403
- 500
[- {
- "items": [
- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
]
List of subscriptions in company
Authorizations:
path Parameters
company_id required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 500
[- {
- "archivedAt": "string",
- "availableFrom": "string",
- "availableTo": "string",
- "createdAt": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "rRule": "string",
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "title": "string",
- "updatedAt": "string"
}
]
Create a new subscription
Authorizations:
path Parameters
company_id required | string Company ID |
Request Body schema: application/jsonrequired
Create subscription request
availableFrom | string |
availableTo | string |
duration | string |
object (subscription.CreateLimitations) | |
object | |
rRule | string |
renewPeriod | string |
resourceIDs | Array of strings |
serviceIDs | Array of strings |
ticketIDs | Array of strings |
title | string |
Responses
Request samples
- Payload
{- "availableFrom": "string",
- "availableTo": "string",
- "duration": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "rRule": "string",
- "renewPeriod": "string",
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "ticketIDs": [
- "string"
], - "title": "string"
}
Response samples
- 201
- 400
- 403
- 409
- 500
{- "archivedAt": "string",
- "availableFrom": "string",
- "availableTo": "string",
- "createdAt": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "rRule": "string",
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "title": "string",
- "updatedAt": "string"
}
Get one subscription
Authorizations:
path Parameters
company_id required | string Company ID |
subscription_id required | string Subscription ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "archivedAt": "string",
- "availableFrom": "string",
- "availableTo": "string",
- "createdAt": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "rRule": "string",
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "title": "string",
- "updatedAt": "string"
}
Update a subscription
Authorizations:
path Parameters
company_id required | string Company ID |
subscription_id required | string Subscription ID |
Request Body schema: application/jsonrequired
Update subscription request
archive | boolean |
object Metadata update object | |
resourceIDs | Array of strings |
serviceIDs | Array of strings |
title | string |
Responses
Request samples
- Payload
{- "archive": true,
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "title": "string"
}
Response samples
- 200
- 400
- 403
- 500
{- "archivedAt": "string",
- "availableFrom": "string",
- "availableTo": "string",
- "createdAt": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "rRule": "string",
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "title": "string",
- "updatedAt": "string"
}
Get price rules for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
query Parameters
subscription_ids required | string Subscription IDs |
Responses
Response samples
- 200
- 400
- 403
- 500
[- {
- "archivedAt": "string",
- "comparedPrice": 0,
- "createdAt": "string",
- "endDate": "string",
- "id": "string",
- "metaData": {
- "property1": null,
- "property2": null
}, - "price": 0,
- "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
], - "updatedAt": "string"
}
]
Create price rule for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
Request Body schema: application/jsonrequired
Create price rule request
comparedPrice | integer |
endDate | string |
object | |
price | integer |
priority | integer |
startDate | string |
subscriptionIDs | Array of strings |
Responses
Request samples
- Payload
{- "comparedPrice": 0,
- "endDate": "string",
- "metaData": {
- "property1": null,
- "property2": null
}, - "price": 0,
- "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
]
}
Response samples
- 201
- 400
- 403
- 500
{- "archivedAt": "string",
- "comparedPrice": 0,
- "createdAt": "string",
- "endDate": "string",
- "id": "string",
- "metaData": {
- "property1": null,
- "property2": null
}, - "price": 0,
- "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
], - "updatedAt": "string"
}
Update price rule for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
item_id required | string Price rule ID |
Request Body schema: application/jsonrequired
Update price rule request
archive | boolean |
comparedPrice | integer |
endDate | string |
object (metadata.Update) | |
price | integer |
priority | integer |
startDate | string |
subscriptionIDs | Array of strings |
Responses
Request samples
- Payload
{- "archive": true,
- "comparedPrice": 0,
- "endDate": "string",
- "metaDataUpdate": {
- "expectedVersion": 0,
- "path": "string",
- "value": null
}, - "price": 0,
- "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
]
}
Response samples
- 200
- 400
- 403
- 500
{- "archivedAt": "string",
- "comparedPrice": 0,
- "createdAt": "string",
- "endDate": "string",
- "id": "string",
- "metaData": {
- "property1": null,
- "property2": null
}, - "price": 0,
- "priority": 0,
- "startDate": "string",
- "subscriptionIDs": [
- "string"
], - "updatedAt": "string"
}
Get settings for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "cartExpiration": "string",
- "createdAt": "string",
- "currency": "string",
- "id": "string",
- "metaData": {
- "property1": null,
- "property2": null
}, - "taxInclusive": true,
- "taxRate": 0,
- "updatedAt": "string"
}
Update settings for subscriptions
Authorizations:
path Parameters
company_id required | string Company ID |
Request Body schema: application/jsonrequired
Update settings request
cartExpiration | string |
currency | string |
taxInclusive | boolean |
taxRate | number |
Responses
Request samples
- Payload
{- "cartExpiration": "string",
- "currency": "string",
- "taxInclusive": true,
- "taxRate": 0
}
Response samples
- 200
- 400
- 403
- 500
{- "cartExpiration": "string",
- "createdAt": "string",
- "currency": "string",
- "id": "string",
- "metaData": {
- "property1": null,
- "property2": null
}, - "taxInclusive": true,
- "taxRate": 0,
- "updatedAt": "string"
}
Create a new API key
Request Body schema: application/jsonrequired
API key data
name | string |
object |
Responses
Request samples
- Payload
{- "name": "string",
- "permissions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
Response samples
- 201
- 400
- 401
- 403
- 500
{- "createdAt": "string",
- "id": "string",
- "key": "string",
- "name": "string",
- "permissions": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "state": "string"
}
Client authorization
Request Body schema: application/jsonrequired
Client login request
companyID required | string <uuid> CompanyID is the unique identifier of the company that you have created in the platform. |
email required | string Email is the email address of the user. It can be used to send notifications, invoices and other information. |
externalUserID required | string ExternalUserID is the unique identifier of the user in your system. If you don't have a unique identifier, you can use the email address or generate it. |
firstName | string |
lastName | string |
phone | string |
Responses
Request samples
- Payload
{- "companyID": "da70841f-5a52-45eb-a31f-22e276c64625",
- "email": "user@company.com",
- "externalUserID": "ID123456789",
- "firstName": "string",
- "lastName": "string",
- "phone": "string"
}
Response samples
- 200
- 400
- 403
- 500
{- "accessToken": "string",
- "expiresIn": 0,
- "refreshToken": "string"
}
Get list of services
Authorizations:
path Parameters
company_id required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 500
[- {
- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Service name",
- "resources": [
- {
- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Resource name",
- "updatedAt": "2021-07-01T00:00:00Z"
}
], - "type": "fixed",
- "updatedAt": "2021-07-01T00:00:00Z"
}
]
Get one service
Authorizations:
path Parameters
company_id required | string Company ID |
service_id required | string Service ID |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Service name",
- "resources": [
- {
- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Resource name",
- "updatedAt": "2021-07-01T00:00:00Z"
}
], - "type": "fixed",
- "updatedAt": "2021-07-01T00:00:00Z"
}
Get available times for service
Authorizations:
path Parameters
company_id required | string Company ID |
service_id required | string Service ID |
Request Body schema: application/jsonrequired
Times data
duration | string In ISO8601 format, e.g. |
from | string Date and time for the beginning of the time range in RFC3339 format. |
resourceIDs | Array of strings List of resource IDs this service is associated with. Can be blank to search all resources. |
spots | integer Number of spots booked. It's greater than 1 for services with type |
object Set of key-value pairs where key is the ticket ID and value is the number of tickets booked. Required for services with type | |
to | string Date and time for the end of the time range in RFC3339 format. |
Responses
Request samples
- Payload
{- "duration": "PT1H",
- "from": "2021-01-01T00:00:00Z",
- "resourceIDs": [
- "3587ccc0-d294-499a-b397-224ec61aafa1",
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1"
], - "spots": 2,
- "tickets": {
- "3587ccc0-d294-499a-b397-224ec61aafa1": 1,
- "dd4f3d7c-7092-454b-a509-a9faf3cbcfe1": 2
}, - "to": "2021-01-01T23:59:59Z"
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "times": {
- "property1": [
- {
- "duration": "PT1H",
- "price": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "spotsAvailable": 2,
- "startTime": "2021-01-01T00:00:00Z",
- "ticketPrices": {
- "property1": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "property2": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}
}
}
], - "property2": [
- {
- "duration": "PT1H",
- "price": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "spotsAvailable": 2,
- "startTime": "2021-01-01T00:00:00Z",
- "ticketPrices": {
- "property1": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}, - "property2": {
- "amount": 1000,
- "comparedAmount": 2000,
- "currency": "USD"
}
}
}
]
}
}
Get list of resources
Authorizations:
path Parameters
company_id required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 500
[- {
- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Resource name",
- "services": [
- {
- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Service name",
- "type": "fixed",
- "updatedAt": "2021-07-01T00:00:00Z"
}
], - "updatedAt": "2021-07-01T00:00:00Z"
}
]
Get one resource
Authorizations:
path Parameters
company_id required | string Company ID |
resource_id required | string Resource ID |
Responses
Response samples
- 200
- 400
- 403
- 500
{- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Resource name",
- "services": [
- {
- "color": "#000000",
- "companyID": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "createdAt": "2021-07-01T00:00:00Z",
- "id": "53ebf47a-9ddc-4198-8f6d-f9ff6a909158",
- "name": "Service name",
- "type": "fixed",
- "updatedAt": "2021-07-01T00:00:00Z"
}
], - "updatedAt": "2021-07-01T00:00:00Z"
}
Get client bookings
Get client bookings
Authorizations:
query Parameters
limit | integer Limit |
offset | integer Offset |
Responses
Response samples
- 200
{- "bookings": [
- {
- "bookingPolicy": "instant",
- "clientID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "clientInitiated": true,
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "recurringID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed",
- "updatedAt": "2021-01-01T12:00:00Z"
}
], - "limit": 0,
- "offset": 0,
- "total": 0
}
Request booking
Authorizations:
path Parameters
company_id required | string Company ID |
Request Body schema: application/jsonrequired
Booking request
companyID required | string <uuid> Identifier for the company this booking is associated with. |
customPurchaseDescription | string Optional purchase description that can be passed to payment provider. Otherwise, it will be generated automatically. |
duration | string In ISO8601 format |
object Set of key-value pairs that you can attach to an object. | |
object Set of key-value pairs that can be used to send data from plugins to the booking handler. | |
resourceID required | string <uuid> Identifier for the resource this booking is associated with. |
serviceID required | string <uuid> Identifier for the service this booking is associated with. |
spots required | integer Number of spots booked. It's greater than 1 for services with type |
startTime required | string Start time of the booking in RFC3339 format. |
object Set of key-value pairs where key is the ticket ID and value is the number of tickets booked. Required for services with type |
Responses
Request samples
- Payload
{- "companyID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "customPurchaseDescription": "string",
- "duration": "PT1H",
- "metaData": {
- "property1": null,
- "property2": null
}, - "pluginData": {
- "property1": null,
- "property2": null
}, - "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "tickets": {
- "property1": 0,
- "property2": 0
}
}
Response samples
- 200
{- "companyID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed"
}
Get client booking
Get client booking
Authorizations:
path Parameters
booking_id required | string Booking ID |
Responses
Response samples
- 200
{- "companyID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed"
}
Cancel booking
Authorizations:
path Parameters
booking_id required | string Booking ID |
Request Body schema: application/jsonrequired
Cancel booking request
object | |||
|
Responses
Request samples
- Payload
{- "metaData": {
- "property1": null,
- "property2": null
}
}
Response samples
- 200
{- "companyID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "createdAt": "2021-01-01T12:00:00Z",
- "currency": "USD",
- "duration": "PT1H",
- "endTime": "2021-01-01T13:00:00Z",
- "id": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "metaData": {
- "property1": null,
- "property2": null
}, - "paymentURL": "string",
- "price": 1000,
- "resourceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "serviceID": "95cd2c0c-9541-4c48-acd3-645f81f6f20e",
- "spots": 2,
- "startTime": "2021-01-01T12:00:00Z",
- "status": "confirmed",
- "tickets": {
- "property1": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}, - "property2": {
- "comparedPrice": 0,
- "price": 0,
- "spots": 0
}
}, - "type": "fixed"
}
Get client subscriptions cart in company
Authorizations:
path Parameters
companyID required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "expiresAt": "string",
- "items": [
- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
]
}
Add item to client subscriptions cart in company
Authorizations:
path Parameters
companyID required | string Company ID |
Request Body schema: application/jsonrequired
Request body
Array of objects (subscription.ClientRequestItem) | |||
Array
|
Responses
Request samples
- Payload
{- "items": [
- {
- "subscriptionID": "string"
}
]
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "expiresAt": "string",
- "items": [
- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
]
}
Delete item from client subscriptions cart in company
Authorizations:
path Parameters
companyID required | string Company ID |
item_id required | string Item ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "expiresAt": "string",
- "items": [
- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
]
}
Checkout client subscriptions cart in company
Authorizations:
path Parameters
companyID required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "currency": "string",
- "expiresAt": "string",
- "items": [
- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
], - "paymentURL": "string",
- "price": 0,
- "tax": 0,
- "taxInclusive": true,
- "taxRate": 0
}
Get list of purchased subscriptions for client in company
Authorizations:
path Parameters
companyID required | string Company ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
]
Get one purchased subscription for client in company
Authorizations:
path Parameters
companyID required | string Company ID |
itemID required | string Item ID |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
{- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
Renew purchased subscriptions for client in company
Authorizations:
path Parameters
companyID required | string Company ID |
Request Body schema: application/jsonrequired
Request body
ids | Array of strings |
Responses
Request samples
- Payload
{- "ids": [
- "string"
]
}
Response samples
- 200
- 400
- 403
- 404
- 409
- 500
{- "currency": "string",
- "expiresAt": "string",
- "items": [
- {
- "activeFrom": "string",
- "clientID": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "status": "string",
- "subscriptionID": "string"
}
], - "paymentURL": "string",
- "price": 0,
- "tax": 0,
- "taxInclusive": true,
- "taxRate": 0
}
Get list of available subscriptions for client in company
Authorizations:
path Parameters
companyID required | string Company ID |
query Parameters
ids | Array of strings Subscription IDs |
Responses
Response samples
- 200
- 400
- 403
- 404
- 500
[- {
- "availableFrom": "string",
- "availableTo": "string",
- "comparedPrice": 0,
- "currency": "string",
- "duration": "string",
- "id": "string",
- "limitations": {
- "bookingsCount": 0,
- "daysOfWeek": 0,
- "maxDuration": "string",
- "maxSpotsPerBooking": 0,
- "maxTicketsPerBooking": {
- "property1": 0,
- "property2": 0
}, - "times": [
- {
- "endTime": "string",
- "startTime": "string"
}
]
}, - "metaData": {
- "property1": null,
- "property2": null
}, - "price": 0,
- "rRule": "string",
- "resourceIDs": [
- "string"
], - "serviceIDs": [
- "string"
], - "title": "string"
}
]