All URIs are relative to https://www.kigoapis.com
Method | HTTP request | Description |
---|---|---|
channelsV2BookingsDiffGet | GET /channels/v2/bookings/diff | Get ID and Date Last Updated of all Bookings that were created/modified within the specified date range |
channelsV2BookingsIdCancelPut | PUT /channels/v2/bookings/{id}/cancel | Cancel a Booking |
channelsV2BookingsIdCreditcardsPost | POST /channels/v2/bookings/{id}/creditcards | Save and try to authorize/charge a Credit Card for a Booking |
channelsV2BookingsIdEventsPost | POST /channels/v2/bookings/{id}/events | Create a Booking Event |
channelsV2BookingsIdGet | GET /channels/v2/bookings/{id} | Get a Booking |
channelsV2BookingsIdPut | PUT /channels/v2/bookings/{id} | Update a Booking |
channelsV2BookingsPost | POST /channels/v2/bookings | Create a new Booking |
proV1BookingsGet | GET /pro/v1/bookings | |
proV1BookingsIdGet | GET /pro/v1/bookings/{id} |
\Piksel\KigoPro\Model\BookingDiffOutputListResourceList channelsV2BookingsDiffGet($start_date, $channel_connection_id, $end_date)
Get ID and Date Last Updated of all Bookings that were created/modified within the specified date range
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | Start Date
$channel_connection_id = 56; // int | Channel Connection ID
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | End Date
try {
$result = $apiInstance->channelsV2BookingsDiffGet($start_date, $channel_connection_id, $end_date);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsDiffGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
start_date | \DateTime | Start Date | |
channel_connection_id | int | Channel Connection ID | [optional] |
end_date | \DateTime | End Date | [optional] |
\Piksel\KigoPro\Model\BookingDiffOutputListResourceList
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
channelsV2BookingsIdCancelPut($id, $cancelled_by_role, $cancellation_reason)
Cancel a Booking
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Booking ID
$cancelled_by_role = 'cancelled_by_role_example'; // string | User's Role that cancelled the Booking
$cancellation_reason = 'cancellation_reason_example'; // string | Optional Reason for Cancellation
try {
$apiInstance->channelsV2BookingsIdCancelPut($id, $cancelled_by_role, $cancellation_reason);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsIdCancelPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | Booking ID | |
cancelled_by_role | string | User's Role that cancelled the Booking | [optional] |
cancellation_reason | string | Optional Reason for Cancellation | [optional] |
void (empty response body)
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Piksel\KigoPro\Model\PostBookingCreditCardResponse channelsV2BookingsIdCreditcardsPost($id, $credit_card)
Save and try to authorize/charge a Credit Card for a Booking
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | ID of the Booking
$credit_card = new \Piksel\KigoPro\Model\CreditCard(); // \Piksel\KigoPro\Model\CreditCard | Credit Card object
try {
$result = $apiInstance->channelsV2BookingsIdCreditcardsPost($id, $credit_card);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsIdCreditcardsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of the Booking | |
credit_card | \Piksel\KigoPro\Model\CreditCard | Credit Card object | [optional] |
\Piksel\KigoPro\Model\PostBookingCreditCardResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
channelsV2BookingsIdEventsPost($id, $booking_event)
Create a Booking Event
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Booking ID
$booking_event = new \Piksel\KigoPro\Model\BookingEvent(); // \Piksel\KigoPro\Model\BookingEvent | Booking Event
try {
$apiInstance->channelsV2BookingsIdEventsPost($id, $booking_event);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsIdEventsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | Booking ID | |
booking_event | \Piksel\KigoPro\Model\BookingEvent | Booking Event | [optional] |
void (empty response body)
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Piksel\KigoPro\Model\BookingResource channelsV2BookingsIdGet($id, $options)
Get a Booking
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | ID of the Booking
$options = array('options_example'); // string[] | Booking Options
try {
$result = $apiInstance->channelsV2BookingsIdGet($id, $options);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | ID of the Booking | |
options | string[] | Booking Options | [optional] |
\Piksel\KigoPro\Model\BookingResource
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Piksel\KigoPro\Model\PutBookingResponse channelsV2BookingsIdPut($id, $put_booking_request)
Update a Booking
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int | Booking ID
$put_booking_request = new \Piksel\KigoPro\Model\PutBookingRequest(); // \Piksel\KigoPro\Model\PutBookingRequest | Booking object to be updated
try {
$result = $apiInstance->channelsV2BookingsIdPut($id, $put_booking_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsIdPut: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int | Booking ID | |
put_booking_request | \Piksel\KigoPro\Model\PutBookingRequest | Booking object to be updated | [optional] |
\Piksel\KigoPro\Model\PutBookingResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Piksel\KigoPro\Model\PostBookingResponse channelsV2BookingsPost($post_booking_request)
Create a new Booking
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$post_booking_request = new \Piksel\KigoPro\Model\PostBookingRequest(); // \Piksel\KigoPro\Model\PostBookingRequest | Booking object
try {
$result = $apiInstance->channelsV2BookingsPost($post_booking_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->channelsV2BookingsPost: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
post_booking_request | \Piksel\KigoPro\Model\PostBookingRequest | Booking object | [optional] |
\Piksel\KigoPro\Model\PostBookingResponse
- Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Piksel\KigoPro\Model\GetBookingVm proV1BookingsGet($start_date, $account_id, $end_date, $property_id, $channel)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$start_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$account_id = 56; // int |
$end_date = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime |
$property_id = 56; // int |
$channel = 'channel_example'; // string |
try {
$result = $apiInstance->proV1BookingsGet($start_date, $account_id, $end_date, $property_id, $channel);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->proV1BookingsGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
start_date | \DateTime | ||
account_id | int | [optional] | |
end_date | \DateTime | [optional] | |
property_id | int | [optional] | |
channel | string | [optional] |
\Piksel\KigoPro\Model\GetBookingVm
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Piksel\KigoPro\Model\GetBookingVm proV1BookingsIdGet($id)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: oauth2
$config = Piksel\KigoPro\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new Piksel\KigoPro\Api\BookingApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$id = 56; // int |
try {
$result = $apiInstance->proV1BookingsIdGet($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BookingApi->proV1BookingsIdGet: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
id | int |
\Piksel\KigoPro\Model\GetBookingVm
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]