All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
productTicketGetTickets | GET /api/v{version}/{restaurantUid}/product/ticket | Get tickets |
productTicketGetVouchers | GET /api/v{version}/{restaurantUid}/product/voucher | Get gift vouchers |
\Swagger\Client\Model\TicketProductViewModel[] productTicketGetTickets($restaurant_uid, $version)
Get tickets
Get the list of ticket products.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProductApi(
// 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()
);
$restaurant_uid = "restaurant_uid_example"; // string | The unique identifier of the restaurant.
$version = "version_example"; // string |
try {
$result = $apiInstance->productTicketGetTickets($restaurant_uid, $version);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->productTicketGetTickets: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
restaurant_uid | string | The unique identifier of the restaurant. | |
version | string |
\Swagger\Client\Model\TicketProductViewModel[]
No authorization required
- 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]
\Swagger\Client\Model\VoucherProductViewModel[] productTicketGetVouchers($restaurant_uid, $version)
Get gift vouchers
Get the list of gift vouchers.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Swagger\Client\Api\ProductApi(
// 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()
);
$restaurant_uid = "restaurant_uid_example"; // string | The unique identifier of the restaurant.
$version = "version_example"; // string |
try {
$result = $apiInstance->productTicketGetVouchers($restaurant_uid, $version);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ProductApi->productTicketGetVouchers: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
restaurant_uid | string | The unique identifier of the restaurant. | |
version | string |
\Swagger\Client\Model\VoucherProductViewModel[]
No authorization required
- 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]