SkyScanner 415 Status Code when creating a session
<p>I am trying to create a session on my Node JS application doing something like this:</p>

<pre><code>import * as request from 'request';
const apiKey = '123123123123123123';
const urlApi = 'http://partners.api.skyscanner.net/apiservices/pricing/v1.0?apikey=' + apiKey;

const headers = {
                    'Accept': 'application/json',
                    'Content-Type': 'application/x-www-form-urlencoded'
                };

var options = {
                url: urlApi,
                method: 'POST',
                headers: headers,
                data: {
                    country: 'UK',
                    currency: 'GBP',
                    locale: 'en-GB',
                    locationSchema: 'iata',
                    apikey: '123123123123123123',
                    grouppricing: 'on',
                    originplace: 'EDI',
                    destinationplace: 'LHR',
                    outbounddate: '2016-12-29',
                    inbounddate: '2016-12-05',
                    adults: 1,
                    children: 0,
                    infants: 0,
                    cabinclass: 'Economy'
                }
};

request.post(options, function(error: Error, response: any, body: any)
{
    if (!error &amp;&amp; response.statusCode === 415) {
        console.log('Error: ' + response.statusCode);
    }
    else {
        console.log(response.statusCode);
    }
});
</code></pre>

<p>However, it always return statusCode 415. I am following the documentation from here <a href="https://support.business.skyscanner.net/hc/en-us/articles/211308489-Flights-Live-Pricing" rel="nofollow noreferrer">https://support.business.skyscanner.net/hc/en-us/articles/211308489-Flights-Live-Pricing</a> but I haven't had any luck so far...</p>