NameDescriptionType
APIKey

Your public API Key which can be found in your account

globally unique identifier
Signature

Your encrypted signature which includes your APIKey, UserId and Nonce, then salted with your API Secret

string
Nonce

A constantly incrementing integer, you can use a timestamp for example. Example: 34235

integer

Request Formats

application/json, text/json

Sample:
{
  "APIKey": "6c1401af-8f08-4748-83dd-b8e751d39d00",
  "Signature": "sample string 2",
  "Nonce": 3
}

application/xml, text/xml

Sample:
<APIKeyParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCPayments.Models">
  <APIKey>6c1401af-8f08-4748-83dd-b8e751d39d00</APIKey>
  <Nonce>3</Nonce>
  <Signature>sample string 2</Signature>
</APIKeyParameters>

Response Information

Resource Description

NameDescriptionType
InvoiceCurrencies

String list of all available Invoice Currencies

Collection of string
SettleCurrencies

String list of all available Settle Currencies

Collection of string

Response Formats

application/json, text/json

Sample:
{
  "InvoiceCurrencies": [
    "sample string 1",
    "sample string 2"
  ],
  "SettleCurrencies": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<AvailableCurrencies xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCPayments.Models">
  <InvoiceCurrencies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InvoiceCurrencies>
  <SettleCurrencies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </SettleCurrencies>
</AvailableCurrencies>
                
    public static async Task GetAvailableCurrencies()
    {
        string PublicKey = "You API Key".ToLower();
        string nonce = ((int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds).ToString();

        string CCSignature = GetHash(nonce);

        Dictionary<string, string>
        values = new Dictionary<string, string>
        {
            { "APIKey", PublicKey },
            { "Signature", CCSignature },
            { "Nonce", nonce }
        };

        FormUrlEncodedContent content = new FormUrlEncodedContent(values);
        HttpResponseMessage response = await client.PostAsync("https://checkout.coincorner.com/api/GetAvailableCurrencies", content);
        AvailableCurrencies AvailableCurrencies = await response.Content.ReadAsStringAsync();
    }
                
            
                
    <?php

        function GetAvailableCurrencies()
        {

            $nonce = (int)(microtime(true) * 1e6);
            $Api_Key = 'Your API Key';

            $sig = Generate_Sig($nonce);

            $params  = array (
                'APIKey' => $Api_Key,
                'nonce' => $nonce,
                'Signature' => $sig
            );

            $url  = 'https://checkout.coincorner.com/api/GetAvailableCurrencies';

            $curl = curl_init();

            $curl_options = array( CURLOPT_RETURNTRANSFER => 1, CURLOPT_URL => $url);

            $headers[] = 'Content-Type: application/x-www-form-urlencoded';
            array_merge($curl_options, array(CURLOPT_POST => 1));
            curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params));

            curl_setopt_array($curl, $curl_options);
            curl_setopt($curl, CURLOPT_HTTPHEADER,  array());
            curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);

            $response = json_decode(curl_exec($curl), TRUE);
            $http_status = curl_getinfo($curl, CURLINFO_HTTP_CODE);

            exit();
        }
    ?>
                
            
                
    #!/usr/bin/env ruby

    require 'httparty'
    require 'date'

    $APIKey = 'Your API Key'
    $nonce = DateTime.now.strftime('%Q')

    $sig = GenerateSig($nonce)

    $response = HTTParty.post('https://checkout.coincorner.com/api/GetAvailableCurrencies', body: {
        'APIKey' => $APIKey,
        'Signature' => $sig,
        'Nonce' => $nonce
    })
                
            
                
    import requests
    import time

    URL = "https://checkout.coincorner.com/api/GetAvailableCurrencies"

    API_KEY = "Your API Key"

    nonce = int(time.time())

    sig = GenerateSig(nonce)

    data = {
        'APIKey': API_KEY,
        'Signature': sig,
        'Nonce': nonce
    }

    response = requests.post(url = URL, data = data)

                
            
                
    const https = require('https')

    var APIKey = 'Your API Key';

    var nonce = Date.now();
    var sig = GenerateSig(nonce);

    const data = JSON.stringify({
    'APIKey': APIKey,
    'Signature': sig,
    'Nonce': nonce

    })

    const options = {
        host: 'checkout.coincorner.com',
        path: '/api/GetAvailableCurrencies',
        protocol: 'https:',
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
            'Content-Length': Buffer.byteLength(data)
        }
    }

    const req = https.request(options, (res) => {
        res.setEncoding('utf8');

        res.on('data', (chunk) => {
            console.log(`BODY: ${chunk}`);
        });

    });

    req.write(data);
    req.end()