Quick Start

Good to know: A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!

Get your API keys

Our API uses AES 256 Algorithm for parameters encryption. This means that all API parameters must be encrypted using this algorithm with the keys that has been shared.

All requests body to the web server must be JSON encoded as all responses you will get from the server will also be.

HTTP Request Header

All API calls must have all needed headers set. The headers format is as below:

API-KEY

API Key that is shared

REQUEST-TS

ISO standard timestamps. Format (yyyy-MM-dd’T’HH:mm:ssZ)

HASH-KEY

Request Hash

Generating HASH-KEY

// generating hash_key
var crypto = require('crypto');

const https = require('https')

const API_SECRET = '...'
const API_KEY = '...'

const currentDate = new Date()
const concatenatedString = API_SECRET + currentDate.toISOString() + API_KEY
const hash_string = crypto.createHash('sha256').update(concatenatedString,'utf-8').digest('hex');

const headers = {
    'API-KEY': API_KEY,
    'REQUEST-TS': currentDate,
    'HASH-KEY': hash_string
}

# perform your request here

Last updated