Skip to content

Sellgrid

Sellgrid converts an aFlight in an readable datatable for agents
You can retrieve html and data

Request

  • hcds — array of hcd for each Offer route.legs.hcd
  • or aFlight
  • cur
  • Output
    • addOther — adds other flights with same itinerary
{
    "hcds": [
        "Zing!XXXXXX!1",
        "Zing!XXXXXX!2"
    ],
    "cur": "EUR"
}

Response

  • sellgrid — string of html
  • aGrid — array of left/right information of columns
  • aGridRowTyp — array of class for each row
  • sabreJA — string of Sabres JA command

if Output.addOther is true

  • htmlOutputAddon — string of html table

Example of using Response.sellgrid

<?php
$aOptions = [
    'hcds' => ['Zing!XXXXXX!1', 'Zing!XXXXXX!2'],
    'cur' => 'EUR'
];
$aSellgrid = Skylink::Sellgrid($aOptions);

echo '<pre style="font-size: smaller; line-height: 1; overflow-y: hidden;">';
echo $aSellgrid['sellgrid'];
echo '</pre>';

echo '<div style="position:relative;margin-top:20px;"><div style="overflow:auto;">';
echo $aSellgrid['htmlOutputAddon'];
echo '</div></div>';

HTML Example

Sellgrid.png

HTML Example with Addon

Sellgrid_Addon.png