Easy and comfortable sell or buy cryptocurrency
Start accept payment with CresoCoin on you site or online shop

Start Now

Features of the service

List of advantages and features of the exchange and payment service based on the CRC cryptocurrency

Modern technologies

We follow the development of innovative technologies and apply the most relevant in our developments

Speed

Quick confirmation transfers, after only 3 network confirmations appear on your balance

Security and HTTPS

When working with the service API, Google 2FA technologies and a secure HTTPS communication channel are used

Intuitive and simple interface

When developing the user interface, such technologies as Bootstrap, HTML5, CSS3 and jQuery were used. You can use your personal cabinet on any device. The work does not bring difficulties and inconvenience. In each section there is a help panel, and in the most difficult situations you can create a request to the technical support

Start Now
img

Webmasters information

For Webmasters

Documentation on the use of the service, basic queries, server responses and how to start using.

The use of the payment service occurs through POST requests via a secure communication channel with the node::

https://api.cresopay.com
All incoming and outgoing requests contain JSON strings.

Atorization of most queries occurs through the mechanism of Google 2FA, libraries for its use exist for such programming languages as: PHP, Node.JS, Ruby, Python and others.

Account registration


Server request:

{
    "method": "createaccount", 
    "backurl": "https://myshop.com/accept.php"
}
"createaccount" - method of registration of a new account (user) in the payment system;
"backurl" - URL, which the merchant will report successful payment by the POST request *.

* Please note - your server should only use valid certificates!Б

Server response:

{
  "result": {
      "status": "ok",
      "userid": 1,
      "secret": "qta3whcytmysb2tq",
      "balance": 0.0,
      "backurl": "https://myshop.com/accept.php",
      "timestamp": 1493195829
  }
}
"userid" - ID assigned to the new account will be used later for authorization;
"secret" - hash string to generate the Google 2FA key.

Account updates (changes)


Server request:

{
    "method": "updateaccount", 
    "backurl": "http://newshop.net/payok/",
    "userid": 1,
    "key": "490321"
}
"updateaccount" - method of updating the account (user) in the payment system;
"backurl" - URL, which the merchant will report successful payment by the POST request;
"userid" - account ID for which the data is changing;
"key" - the generated Google 2FA key.

Server response:

{
  "result": {
      "status": "ok",
      "userid": 1,
      "backurl": "http://newshop.net/payok/",
      "timestamp": 1493197926
  }
}
"userid" - account ID;
"backurl" - URL, which the merchant will report a successful payment with a POST request.

Checking account balance


Server request:

{
   "method": "getaccountbalance", 
   "userid": 1, 
   "key": "832712"
}
"getaccountbalance" - account balance request method;
"userid" - account ID whose balance is requested;
"key" - the generated Google 2FA key.

Server response:

{
  "result": {
      "status": "ok",
      "userid": 1,
      "balance": 0.0,
      "timestamp": 1493198052
  }
}
"userid" - account ID of the requested account;
"balance" - current account balance.

Create order


Server request:

{
   "method": "createorder", 
   "amount": 12.50, 
   "userid": 1, 
   "key": "209843"
}
"createorder" - method of creating a new order;
"amount" - amount payable under this order;
"key" - the generated Google 2FA key.

Server response:

{
  "result": {
      "status": "ok",
      "userid": 1,
      "orderid": 1,
      "wallet": "Cdr6RFA2GXhjFAPDmV3WHP7za5BHPYMKjT",
      "amount": 12.5,
      "timestamp": 1493195900
  }
}
"userid" - account ID (the owner of the order, payment on the order is transferred to the balance of this account);
"orderid" - ordinal order ID;
"wallet" - wallet for transfer coins for payment of an order;
"amount" - amount payable under this order.

Check order status


Server request:

{
   "method": "getorderstatus", 
   "orderid": 1, 
   "userid": 1, 
   "key": "398402"
}
"getorderstatus" - method of requesting status of order;
"orderid" - ordinal number of the order for payment;
"userid" - account ID from which the order was placed;
"key" - the generated Google 2FA key.

Server response:

{
  "result": {
      "status": "ok",
      "userid": 1,
      "orderid": 1,
      "wallet": "Cdr6RFA2GXhjFAPDmV3WHP7za5BHPYMKjT",
      "amount": 10.0,
      "paid": 0.0,
      "orderstatus": "new",
      "timestamp": 1493200005
  }
}
"userid" - account ID from which the order was placed;
"orderid" - ordinal number of the order for payment;
"wallet" - wallet for transfer coins (this is in case, if forgotten);
"amount" - amount payable under this order;
"paid" - received coins for this order;

"orderstatus" - order status:

   Order status can have three basic statuses:
     "new" - new (unpaid);
     "part" - not fully paid (part);
     "close" - paid and closed (coins transferred to the account balance).

Transfer coins (withdraw)


Server request:

{
   "method": "transfertoaddress", 
   "userid": 1, 
   "wallet": "CN9VuoMSk3LfVdars9PUntmv8r5ckHKnUZ", 
   "amount": 3.234, 
   "key": "398402"
}
"transfertoaddress" - method of transferring coins from the account balance;
"userid" - account ID from the balance of which the coins are transferred;
"wallet" - wallet to which coins will be withdraw;
"amount" - amount of transfer (withdrawal);
"key" - the generated Google 2FA key.

Server response:

{
  "result": {
      "status": "ok",
      "userid": 2,
      "txid": "7b76bf262f89be0dc9d17cd5d28d8fc155a1a3de57023b2ba1eeaf4b1ac7faeb",
      "timestamp": 1493225903
  }
}
"userid" - account ID from the balance of which the coins are transferred;
"txid" - transaction hash.

POST request to successful payment URL


On the successful payment URL, the merchant sends the following data:

{
    :userid => 1,
    :orderid => 23, 
    :amount => 2.0, 
    :paid => 2.0,
    :key => "022637", 
    :timestamp => 1493228072
}
":userid" - account ID in the merchant system;
":orderid" - order ID in the merchant system;
":amount" - the value of the order;
":paid" - the value of the order, upon payment;
":key" - the generated back key is a Google 2FA server.

Error processing


Example of a server response when an error occurs:

{
  "result": {
      "status": "error",
      "data": "Authorization filed!",
      "timestamp": 1493195969
  }
}
"error" - error return method;
"data" - error description.