Qwindo – Merchant Logo Qwindo – Merchant Retina Logo Qwindo – Merchant Mobiel Logo: Qwindo – Merchant Mobile Retina Logo Qwindo – Merchant Sticky Logo Qwindo – Merchant Sticky Logo Retina
  • Home
  • Integratie
  • Over ons
  • Home
  • Integratie
  • Over ons
  • Home
  • Integratie
  • Over ons
API documentation Niels Geurs 2017-09-14T11:08:55+00:00
  1. Getting Started
  2. API Reference
    1. How does the Qwindo API work?
    2. Data Request by Qwindo
      1. Authorization
      2. Compression
      3. Headers
      4. Categories
      5. Product Totals
      6. Products
      7. Stock
      8. Shipping methods
        1. Informative shipping method request
        2. Specific shipping method request
      9. Store information
    3. Data Push to Qwindo
      1. Authorization
      2. Store Information
      3. Categories
      4. Products
      5. Stock
        1. Variant
        2. Product
      6. Order creation
    4. Update Transaction (MultiSafepay)
    5. Qwindo diagram
  3. Setup Qwindo Control
    1. Introduction
    2. Integration
      1. Create a test account
      2. Generate Feed
      3. Feed Setup
        1. Feed test
        2. Order test
        3. Submit
    3. Going live
    4. In Production
  4. Magento Plugin
    1. Introduction
    2. Configuration
      1. Qwindo Settings
      2. Address
      3. Shipping Selling points
      4. Global selling points
      5. Stock selling points
      6. Social links
    3. Feed URL

2.3.1.Authorization

Authorization for the Qwindo API call is based on the HMAC approach. First you need to get your Qwindo API key and HASH ID from merchant panel of Qwindo. You can find it in the section of your sites register for Qwindo. You need to copy and save them on your side for further use to connect to Qwindo API.

For every call you are doing to the Qwindo API you need create a proper authorization to be allowed doing operations on the data.

Authorization sample code is:

function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}
 
$hash_id = 'xxxxxxxxxxxx';
$qwindo_key = 'xxxxxxxxxxxx';
$url = 'Valid current api url call, add params if available';
$timestamp = microtime_float();
$data = 'Valid json string of data that you are passing to the Qwindo API';
 
//here we generate the auth token that will allow us to check the authorization for the call
$token = hash_hmac('sha512', $url.$timestamp.$data, $qwindo_key);
//generate the authorization base64 encoded string that includes the HASH ID, current call timestamp and generated token based on the url, timestamp and JSON data
$auth = base64_encode(sprintf('%s:%s:%s', $hash_id, $timestamp, $token);
 
//add the header to the call you want to do
header('Auth: '.$auth);

For more information about obtaining the authorisation keys, please go to Feed Setup.

« Data Push to QwindoStore Information »
Suggest Edit
Qwindo is powered by MultiSafepay

Help and Support

  • API documentatie
  • FAQ
  • Nieuws
  • Contact

Download our APP

Copyright 2017 | All Rights Reserved
This website uses cookies to improve your experience. We'll assume you're ok with this by continuing to use this website. Accept Read More
Privacy & Cookies Policy