NAV Navbar
shell php python node

Introduction

Welcome to Aurae dev api documentation. Aurae began with a simple vision: Enable the world’s most successful people to have an artful, personalized expression of the wealth, success and status they’ve earned. Aurae members are among the world’s elite and our lifestyle memberships enable our clients to experience their wealth in new and exciting ways through our experiential benefits.

Throughout the history of mankind, gold has been the ultimate symbol of status, wealth and success. With an Aurae membership, individuals have the opportunity to cement their status as one of the world’s elite. Our members have access to the world’s most exclusive and sought after events, elite concierge and butler services and a dedicated team of global experts that cover 115 countries. All members receive an Aurae® 14k Solid Gold (43g) Lifestyle Prefunded MasterCard® with the option to customize their card to commemorate the status they have earned.

The Aurae team is comprised of lifestyle experts who have experienced the best the world has to offer in the Middle East, the Americas, Europe, Asia and Africa. Our team is committed to delivering these experiences to you.

Register

To register your account in Aurae platform put your email and password. In response you will get an email. Click on the link in your email.

To register use this code.


curl --request POST \
  --url https://internal.dev.bcclub.co/v1/auth/signup \
  --header 'Cache-Control: no-cache' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic <token>' \
  --data '{\n   "email": "test20@bcclub.co",\n  "password": "test1234"\n}'


<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/auth/signup');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'Cache-Control' => 'no-cache',
  'Authorization' => 'Basic <token>',
  'Content-Type' => 'application/json'
));

$request->setBody('{
    "email": "test20@bcclub.co",
    "password": "test1234"
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/auth/signup"

payload = "{\n\t\"email\": \"test20@bcclub.co\",\n\t\"password\": \"test1234\"\n}"
headers = {
    'Content-Type': "application/json",
    'Authorization' : 'Basic <token>',
    'Cache-Control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

var http = require("https");

var options = {
  method: "POST",
  hostname: ["internal", "dev", "bcclub", "co"],
  path: ["v1", "auth", "signup"],
  headers: {
    "Content-Type": "application/json",
    Authorization: "Basic <token>",
    "Cache-Control": "no-cache"
  }
};

var req = http.request(options, function(res) {
  var chunks = [];

  res.on("data", function(chunk) {
    chunks.push(chunk);
  });

  res.on("end", function() {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ email: "test20@bcclub.co", password: "test1234" }));
req.end();

Example Response

{
    "status": "success",
    "data": {
        "message": "Email sent",
        "expiresIn": 84600
    },
    "message": null
}
Parameter Name Parameter value
email* Your email used for register.
password* Password you used for sigining up.

Authentication

Authenticate your account by including your credential (secret key) in API request. You can manage your credential in the Dashboard. Your API keys carry many privileges, so be sure to keep them secure! Do not share your secret API keys in publicly accessible areas. Authentication to the API is performed via HTTP Basic Auth. Provide your API key as the basic auth token value. You do not need to provide a password.

To authorize, use this code:


curl --request POST \
  --url https://internal.dev.bcclub.co/v1/auth/login \
  --header 'Authorization: Basic <token>' \
  --header 'Cache-Control: no-cache' \
  --header 'Content-Type: application/json' \
  --data '{\n  "email": "test20@bcclub.co",\n  "password": "test1234"\n}'


<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/auth/login');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'Authorization' => 'Basic <token>',
  'Cache-Control' => 'no-cache'
  'Content-Type' => 'application/json'
));

$request->setBody('{
  "email": "test20@bcclub.co",
  "password": "test1234"
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/auth/login"

payload = "{\n  \"email\": \"test20@bcclub.co\",\n  \"password\": \"test1234\"\n}"
headers = {
    'Content-Type': "application/json",
    'Authorization': "Basic <Token>",
    'Cache-Control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

var http = require("https");

var options = {
  method: "POST",
  hostname: ["internal", "dev", "bcclub", "co"],
  path: ["v1", "auth", "login"],
  headers: {
    "Content-Type": "application/json",
    Authorization: "Basic <Token>",
    "Cache-Control": "no-cache"
  }
};

var req = http.request(options, function(res) {
  var chunks = [];

  res.on("data", function(chunk) {
    chunks.push(chunk);
  });

  res.on("end", function() {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ email: "test20@bcclub.co", password: "test1234" }));
req.end();

Example Response

{
    "status": "success",
    "data": {
        "user": {
            "email": "test20@bcclub.co",
            "contactId": "********-****-****-****-************"
        }
    },
    "message": null
}

Parameter Name Parameter value
email* Your email used for register.
password* Password you used for sigining up.

Member

Member can be created, fetched and updated. You canot delete a member. To Create a member you need to logged in to the system. do not forget to add emailAddress and contactId at headers.

To create an user use this code


curl -X POST \
  https://internal.dev.bcclub.co/v1/user \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -H 'contactId: {{contactId}}' \
  -H 'emailAddress: {{emailAddress}}' \
  -d '{
    "externalId": "00000000-0000-0000-0000-000000000000",
    "title": "Mr",
    "firstName": "VIJAYA KUMAR",
    "lastName": "K",
    "latinFirstName": "VIJAYA KUMAR",
    "latinLastName": "K",
    "nickname": "Mister T",
    "dateOfBirth": "1985-12-24",
    "mobileNumber": "07701024968",
    "province": "Province",
    "postCode": "Postcode",
    "countryCode": "KR",
    "city": "City",
    "addressLine1": "Line1",
    "addressLine2": "Line2",
    "addressLine3": "Line3"
}'


<?php

<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/user');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'emailAddress' => '{{emailAddress}}',
  'contactId' => '{{contactId}}',
  'Content-Type' => 'application/json'
));

$request->setBody('{
    "externalId": "00000000-0000-0000-0000-000000000000",
    "title": "Mr",
    "firstName": "VIJAYA KUMAR",
    "lastName": "K",
    "latinFirstName": "VIJAYA KUMAR",
    "latinLastName": "K",
    "nickname": "Mister T",
    "dateOfBirth": "1985-12-24",
    "mobileNumber": "07701024968",
    "province": "Province",
    "postCode": "Postcode",
    "countryCode": "KR",
    "city": "City",
    "addressLine1": "Line1",
    "addressLine2": "Line2",
    "addressLine3": "Line3"
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/user"

payload = "{\n\t\"externalId\": \"00000000-0000-0000-0000-000000000000\",\n    \"title\": \"Mr\",\n    \"firstName\": \"VIJAYA KUMAR\",\n    \"lastName\": \"K\",\n    \"latinFirstName\": \"VIJAYA KUMAR\",\n    \"latinLastName\": \"K\",\n    \"dateOfBirth\": \"1985-12-24\",\n    \"mobileNumber\": \"07701024968\",\n    \"province\": \"Province\",\n    \"postCode\": \"Postcode\",\n    \"countryCode\": \"KR\",\n    \"city\": \"City\",\n    \"addressLine1\": \"Line1\",\n    \"addressLine2\": \"Line2\",\n    \"addressLine3\": \"Line3\"\n}"
headers = {
    'Content-Type': "application/json",
    'contactId': "{{contactId}}",
    'emailAddress': "{{emailAddress}}",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

var request = require("request");

var options = {
   method: "POST",
   url: "https://internal.dev.bcclub.co/v1/user",
   headers: {
      "cache-control": "no-cache",
      emailAddress: "{{emailAddress}}",
      contactId: "{{contactId}}",
      "Content-Type": "application/json"
   },
   body: {
      externalId: "00000000-0000-0000-0000-000000000000",
      title: "Mr",
      firstName: "VIJAYA KUMAR",
      lastName: "K",
      latinFirstName: "VIJAYA KUMAR",
      latinLastName: "K",
      nickname: "Mister T",
      dateOfBirth: "1985-12-24",
      mobileNumber: "07701024968",
      province: "Province",
      postCode: "Postcode",
      countryCode: "KR",
      city: "City",
      addressLine1: "Line1",
      addressLine2: "Line2",
      addressLine3: "Line3"
   },
   json: true
};

request(options, function(error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});
Parameter Name Parameter value
title Salutation.
externalId clientId of CoinPay.
latinFirstName First name of user in Latin.
latinLastName Last name of user in Latin.
firstName* First name of user.
lastName* Last name of user.
nickname Nickname of user.
dateOfBirth* Date of Birth of user(YYYY-MM-DD).
mobileNumber* Mobile number of user.
province Province of user.
postCode* post code/ zip code of user.
countryCode* ISO2 country code.
city* City of user.
addressLine1* Address line 1 of user.
addressLine2 Address line 2 of user.
addressLine3 Address line 3 of user.

Example Response

{
    "status": "success",
    "data": {
        "contactId": "********-****-****-****-************",
        "emailAddress": "test20@bcclub.co"
    },
    "message": null
}

Subscription

To subscribe to a plan you need following parameter to include in your post request. Do not forget to add your contactId at headers.

Parameter Name Parameter value
planId* planId you want to subscribe.

To subscribe use this code


curl --request POST \
  --url https://internal.dev.bcclub.co/v1/membership/subscriptions \
  --header 'Cache-Control: no-cache' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic <token>' \
  --header 'contactId: {{contactId}}' \
  --data '{\r\n   "planId": "9237fd26-27c6-e811-a96d-0022480186c3"\r\n}\r\n'


<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/membership/subscriptions');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'Cache-Control' => 'no-cache',
  'contactId' => '{{contactId}}',
  'Authorization' => 'Basic <token>',
  'Content-Type' => 'application/json'
));

$request->setBody('{
   "planId": "9237fd26-27c6-e811-a96d-0022480186c3"
}
');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/membership/subscriptions"

payload = "{\r\n   \"planId\": \"9237fd26-27c6-e811-a96d-0022480186c3\"\r\n}\r\n"
headers = {
    'Content-Type': "application/json",
    'Authorization' : 'Basic <token>',
    'contactId': "{{contactId}}",
    'Cache-Control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

var http = require("https");

var options = {
  method: "POST",
  hostname: ["internal", "dev", "bcclub", "co"],
  path: ["v1", "membership", "subscriptions"],
  headers: {
    "Content-Type": "application/json",
    contactId: "{{contactId}}",
    Authorization: "Basic <token>",
    "Cache-Control": "no-cache"
  }
};

var req = http.request(options, function(res) {
  var chunks = [];

  res.on("data", function(chunk) {
    chunks.push(chunk);
  });

  res.on("end", function() {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(JSON.stringify({ planId: "9237fd26-27c6-e811-a96d-0022480186c3" }));
req.end();

Example response


{
    "status": "success",
    "data": {
        "id": "56b6e728-9bcb-e811-a96b-0022480149c2",
        "reference": "6f4f8fc6-ac6d-4608-b480-42b38971d8ca",
        "contactName": "Example Twenty",
        "contactId": "Example Twenty",
        "planName": "BC Club - Test Plan",
        "planId": "9237fd26-27c6-e811-a96d-0022480186c3",
        "currencyISO": "USD",
        "price": 1,
        "status": "Live",
        "createdAt": "09/10/2018 08:13",
        "activatedOn": "09/10/2018",
        "lastBilledOn": "09/10/2018",
        "nextBillingOn": "09/10/2019"
    },
    "message": "subscription created"
}

KYC

To get KYC information, all you need to send a get request. Do not forget to add Authorization token at the headers.

To get KYC information of your user use this code


curl --request GET \
  --url https://internal.dev.bcclub.co/v1/kyc/idnvs-check \
  --header 'Cache-Control: no-cache' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic <token>' \
  --header 'contactId: {{contactId}}'


<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/kyc/idnvs-check');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
  'Cache-Control' => 'no-cache',
  'contactId' => '{{contactId}}',
  'Authorization' => 'Basic <token>',
  'Content-Type' => 'application/json'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/kyc/idnvs-check"

headers = {
    'Content-Type': "application/json",
    'contactId': "{{contactId}}",
    'Authorization' : 'Basic <token>',
    'Cache-Control': "no-cache"
    }

response = requests.request("GET", url, headers=headers)

print(response.text)

var http = require("https");

var options = {
  method: "GET",
  hostname: ["internal", "dev", "bcclub", "co"],
  path: ["v1", "kyc", "idnvs-check"],
  headers: {
    "Content-Type": "application/json",
    Authorization: "Basic <token>",
    contactId: "{{contactId}}",
    "Cache-Control": "no-cache"
  }
};

var req = http.request(options, function(res) {
  var chunks = [];

  res.on("data", function(chunk) {
    chunks.push(chunk);
  });

  res.on("end", function() {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Example Response if failed


{
    "status": "success",
    "data": {
        "dateTime": "2018-05-22T09:47:21Z",
        "status": "FAIL",
        "id": "6d286420-a55d-e811-a958-0022480149c2",
        "reference": "2018",
        "idv": {
            "dateTime": "2018-09-24T07:03:15Z",
            "result": "FAIL",
            "checkType": "IDV",
            "reference": "5ce4cf39-3207-437e-aee6-d9890c24e49c",
            "id": "eb9704ea-c7bf-e811-a96f-0022480187f0"
        },
        "message": "KYC data received"
    },
    "message": null
}

Example Response if pending


{
    "status": "success",
    "data": {
        "dateTime": "2018-10-08T15:10:22Z",
        "status": "PENDING",
        "id": "1ff2a247-0ccb-e811-a96d-0022480186c3",
        "reference": "2018",
        "message": "KYC data received"
    },
    "message": null
}

Example Response if passed


{
    "status": "success",
    "data": {
        "dateTime": "2018-05-19T15:32:53Z",
        "status": "PASS",
        "id": "54b1ace5-795b-e811-a957-0022480186c3",
        "reference": "2018",
        "idv": {
            "dateTime": "2018-09-12T06:26:14Z",
            "result": "PASS",
            "checkType": "IDV",
            "reference": "680b4f59-98ba-4584-828f-f959ed0a6ecd",
            "id": "cd7960bf-54b6-e811-a968-0022480149c2"
        },
        "message": "KYC data received"
    },
    "message": null
}

Accounts

Account can be created, modified and fetched. To get list of accounts all you need to send a get request. Do not forget to add Authorization token at the headers.

To get list of accounts use this code


curl --request GET \
  --url https://internal.dev.bcclub.co/v1/accounts/list \
  --header 'Cache-Control: no-cache' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Basic <token>' \
  --header 'contactId: {{contactId}}'


<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/accounts/list');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
  'Cache-Control' => 'no-cache',
  'contactId' => '{{contactId}}',
  'Authorization' => 'Basic <token>',
  'Content-Type' => 'application/json'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/accounts/list"

headers = {
    'Content-Type': "application/json",
    'Authorization' : 'Basic <token>',
    'contactId': "{{contactId}}",
    'Cache-Control': "no-cache"
    }

response = requests.request("GET", url, headers=headers)

print(response.text)

var http = require("https");

var options = {
  method: "GET",
  hostname: ["internal", "dev", "bcclub", "co"],
  path: ["v1", "accounts", "list"],
  headers: {
    "Content-Type": "application/json",
    Authorization: "Basic <token>",
    contactId: "{{contactId}}",
    "Cache-Control": "no-cache"
  }
};

var req = http.request(options, function(res) {
  var chunks = [];

  res.on("data", function(chunk) {
    chunks.push(chunk);
  });

  res.on("end", function() {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.end();

Example Response

{
    "status": "success",
    "data": [
        {
            "accountId": "10e43866-f6bb-e811-a96f-0022480187f0",
            "currencyCode": "EUR",
            "currentBalance": 0,
            "accountNo": "218105032",
            "status": 1,
            "type": 2,
            "updatedAt": "2018-10-08T05:41:14.882Z"
        },
        {
            "accountId": "55de8152-a9a9-e811-a96b-002248015a9d",
            "currencyCode": "EUR",
            "currentBalance": 296,
            "accountNo": "217754776",
            "status": 1,
            "type": 2,
            "updatedAt": "2018-10-08T05:41:14.821Z"
        },
        {
            "accountId": "10a8d316-f38f-e811-a961-002248010929",
            "currencyCode": "EUR",
            "currentBalance": 825.5,
            "accountNo": "244043186",
            "status": 1,
            "type": 1,
            "updatedAt": "2018-10-08T05:41:28.000Z"
        }
    ],
    "message": "Account lists fetched successfully."
}

Available Crypto Currencies

For getting a list of available crypto currencies use this service.

For getting currencies information use this code

var request = require("request");

var options = {
  method: "GET",
  url: "https://internal.dev.bcclub.co/v1/crypto/available-currencies",
  headers: {
    "cache-control": "no-cache",
    contactId: "{{contactId}}",
    "Content-Type": "application/json"
  }
};

request(options, function(error, response, body) {
  if (error) throw new Error(error);

  console.log(body);
});

<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/crypto/available-currencies');
$request->setMethod(HTTP_METH_GET);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'contactId' => '{{contactId}}',
  'Content-Type' => 'application/json'
));

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


curl -X GET \
  https://internal.dev.bcclub.co/v1/crypto/available-currencies \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -H 'contactId: {{contactId}}'


import requests

url = "https://internal.dev.bcclub.co/v1/crypto/available-currencies"

headers = {
    'Content-Type': "application/json",
    'contactId': "{{contactId}}",
    'cache-control': "no-cache",
    }

response = requests.request("GET", url, headers=headers)

print(response.text)

Example Response


{
    "status": "success",
    "data": {
        "enabled": [
            "BTC",
            "ETH"
        ],
        "disabled": [
            "BCH"
        ]
    },
    "message": "Available crypto currencies"
}

Crypto Draft

For getting a draft for crypto currency payment you need to post a request. you need the following information.

For getting draft information use this code


curl -X POST \
  https://internal.dev.bcclub.co/v1/crypto/rate \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -H 'contactId: {{contactId}}' \
  -d '{
"ticker": "BTC_EUR",
"currency": "EUR",
"amount": 20
}'


<?php

<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/crypto/rate');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'contactId' => '{{contactId}',
  'Content-Type' => 'application/json'
));

$request->setBody('{
"ticker": "BTC_EUR",
"currency": "EUR",
"amount": 20
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}


import requests

url = "https://internal.dev.bcclub.co/v1/crypto/rate"

payload = "{\n\"ticker\": \"BTC_EUR\",\n\"currency\": \"EUR\",\n\"amount\": 20\n}"
headers = {
    'Content-Type': "application/json",
    'contactId': "{{contactId}}",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

var http = require("https");

var options = {
   method: "POST",
   hostname: ["internal", "dev", "bcclub", "co"],
   path: ["v1", "crypto", "rate"],
   headers: {
      "Content-Type": "application/json",
      contactId: "{{contactId}}",
      "cache-control": "no-cache"
   }
};

var req = http.request(options, function(res) {
   var chunks = [];

   res.on("data", function(chunk) {
      chunks.push(chunk);
   });

   res.on("end", function() {
      var body = Buffer.concat(chunks);
      console.log(body.toString());
   });
});

req.write(JSON.stringify({ ticker: "BTC_EUR", currency: "EUR", amount: 20 }));
req.end();

Example Response


{
    "status": "success",
    "data": {
        "paymentRate": 0.00019208,
        "paymentAmount": 0.0038416,
        "paymentFee": 0.00007683,
        "paymentTotal": 0.00391843,
        "paymentCurrency": "BTC",
        "paymentFiatRate": 5197.61808,
        "paymentFiatAmount": 20,
        "paymentFiatFee": 0.4,
        "paymentFiatTotal": 20.4,
        "paymentFiatCurrency": "EUR",
        "rateCreated": "2018-10-25T04:21:03.639Z",
        "rateExpires": "2018-10-25T04:22:43.371Z"
    },
    "message": "Crypto payment rates received"
}

Parameter Name Parameter value
ticker* Available ticker values: BTC_USD, BTC_EUR, BTC_GBP, ETH_USD, ETH_EUR, ETH_GBP.
amount* amount you want to calculate
currency* is one of two ticker values on which calculation is based.

Crypto Confirmation

For a real time crypto payment transaction, you need

For crypto payment use this code


curl -X POST \
  https://internal.dev.bcclub.co/v1/crypto/deposit \
  -H 'Content-Type: application/json' \
  -H 'cache-control: no-cache' \
  -H 'contactId: {{contactId}}' \
  -d '{
    "accountId": "d053d568-f08f-e811-a961-002248010929",
  "amount": 10.00,
  "baseCurrency": "ETH",
  "selectedCurrency": "EUR"
}'


<?php

$request = new HttpRequest();
$request->setUrl('https://internal.dev.bcclub.co/v1/crypto/deposit');
$request->setMethod(HTTP_METH_POST);

$request->setHeaders(array(
  'cache-control' => 'no-cache',
  'contactId' => '{{contactId}}'
));

$request->setBody('{
    "accountId": "d053d568-f08f-e811-a961-002248010929",
  "amount": 10.00,
  "baseCurrency": "ETH",
  "selectedCurrency": "EUR"
}');

try {
  $response = $request->send();

  echo $response->getBody();
} catch (HttpException $ex) {
  echo $ex;
}

var http = require("https");

var options = {
  method: "POST",
  hostname: ["internal", "dev", "bcclub", "co"],
  path: ["v1", "crypto", "deposit"],
  headers: {
    "Content-Type": "application/json",
    contactId: "{{contactId}}",
    "cache-control": "no-cache"
  }
};

var req = http.request(options, function(res) {
  var chunks = [];

  res.on("data", function(chunk) {
    chunks.push(chunk);
  });

  res.on("end", function() {
    var body = Buffer.concat(chunks);
    console.log(body.toString());
  });
});

req.write(
  JSON.stringify({
    accountId: "d053d568-f08f-e811-a961-002248010929",
    amount: 10,
    baseCurrency: "ETH",
    selectedCurrency: "EUR"
  })
);
req.end();

import requests

url = "https://internal.dev.bcclub.co/v1/crypto/deposit"

payload = "{\n\t\"accountId\": \"d053d568-f08f-e811-a961-002248010929\",\n  \"amount\": 10.00,\n  \"baseCurrency\": \"ETH\",\n  \"selectedCurrency\": \"EUR\"\n}"
headers = {
    'Content-Type': "application/json",
    'contactId': "{{contactId}}",
    'cache-control': "no-cache"
    }

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)

Example Response

{
    "status": "success",
    "data": {
        "paymentId": "1685ee11-12d8-e811-a89c-00224801a4ba",
        "paymentRate": 0.00616419,
        "paymentAmount": 0.0616419,
        "paymentFee": 0.00123284,
        "paymentTotal": 0.06287474,
        "paymentCurrency": "ETH",
        "paymentCreated": "2018-10-25T04:54:36.141Z",
        "paymentExpires": "2018-10-25T04:56:15.946Z",
        "paymentAddress": "0x4Edc369B1353A8fC705CD171788AEF908090247A",
        "paymentFiatRate": 161.96784,
        "paymentFiatAmount": 10,
        "paymentFiatFee": 0.2,
        "paymentFiatTotal": 10.2,
        "paymentType": "DEPOSIT",
        "paymentStatus": "PENDING",
        "paymentFiatCurrency": "EUR"
    },
    "message": "Crypto payment created"
}

Parameter Name Parameter value
accountId* ID of your account.
amount* amount you want to pay.
baseCurrency* ISO for base currency.
selectedCurrency* ISO for selected currency.

Errors

Error Code Meaning
400 Bad Request -- Your request is invalid.
401 Unauthorized -- Your API key is wrong.
403 Forbidden -- Requested resource is restricted.
404 Not Found -- The specified method could not be found.
409 Conflict - Resource already exists
500 Internal Server Error -- We had a problem with our server. Try again later.
503 Service Unavailable -- We're temporarily offline for maintenance. Please try again later.