This method returns the detailed information of the reservations created through our reservation system in XML format. It covers reservations made from all sales channels.
See the API documentation page on Turkish Airlines Developer Portal
$this->client->retrieveReservationDetail($retrieveReservationDetailParameters);<?php
use TK\API\ValueObject\Factory\RetrieveReservationDetailParametersFactory;
$json =<<<JSON
{
"UniqueId": "TT8VN8",
"Surname": "CELIKTAS"
}
JSON;
$parameterObject = RetrieveReservationDetailParametersFactory::createFromJson($json);
$response = $client->retrieveReservationDetail($parameterObject);You can build an array that is basically json_encode version of the object mentioned in the previous example.
<?php
use TK\API\ValueObject\Factory\RetrieveReservationDetailParametersFactory;
$parameterObject = RetrieveReservationDetailParametersFactory::createFromArray($parametersArray);
$response = $client->retrieveReservationDetail($parameterObject);<?php
use TK\API\ValueObject\RetrieveReservationDetailParameters;
$retrieveReservationDetailParameters = new RetrieveReservationDetailParameters(
'TT8VN8',
'CELIKTAS'
);
$response = $this->client->retrieveReservationDetail($retrieveReservationDetailParameters);