API for wallet

Basics

1. The first request should be to get the language constant, this method takes back the translation of the current selected language

Request
GET
/api/front/get-language-constants
Answer

{ "type": "success",
  "messages":
    { "L_LANG":"en",
      "L_ACCEPT":"Accept",
      "L_ACCEPTOR": "Acceptor",
      "L_ACCESS_FROM_FOREIG  N_IP_ERROR": "Access to foreign IP banned i....com'>support@hashbon.com",
       ...
     }
}
                    
Parameters
-
                  

The first request to the server should always bring back parameter X-CSRF-Token in the headers of the of the answer that needs to be saved for the period of time while application is being used.

2. Get the system settings GET /api/front/get-app-config

3. Parameter X-CSRF-Token, that was received from the header should be put into all the requests to the server like parameter csrf_token

4. Next step is to query the global data that is always necessary. This method is an aggregator of different tasks, currently we have the following tasks:

  • getExchangeRates - to get the exchange rates
  • getCurrencies - to get the currencies
  • ajaxUpdateStatus - various general data on the user and system
  • getBalance- to get the balance
Tasks can be given chaotically in any combination.

Request
POST
/api/front/common-updater
Answer
JSON (show more) { "OK": 1, "tasks": { "getBalance": { "data": { "1": { "userId": 11, "isLived": false, "currencyId": 1, "balance": 500.06, "id": 49 }, "2": { "userId": 11, "isLived": false, "currencyId": 2, "balance": 1.51565074, "id": 50 }, "3": { "userId": 11, "isLived": false, "currencyId": 3, "balance": 0, "id": 51 30.03 .2018 1 / 40 }, "4": { "userId": 11, "isLived": false, "currencyId": 4, "balance": 604238.2, "id": 52 }, "5": { "userId": 11, "isLived": false, "currencyId": 5, "balance": 2126.77, "id": 102 } } }, "getExchangeRates": { "data": { "BTCEUR": { "pair": "BTCEUR", "buy": "916.37", "sell": "847.21" }, "BTCUSD": { "pair": "BTCUSD", "buy": "978.49", "sell": "904.64" } } }, "getCurrencies": { "data": [{ "name": "Bitcoin", "shortName": "BTC", "displayName": "\u0e3f", "prec": 8, "type": 0, "sort": 1, "id": 2 }, { "name": "Litecoin", "shortName": "LTC", "displayName": "\u0141", "prec": 8, "type": 0, "sort": 2, "id": 3 }, { "name": "U.S. dollars", "shortName": "USD", "displayName": "$", "prec": 2, "type": 1, "sort": 3, "id": 1 }, { "name": "\u0420\u0443\u0431\u043b\u0438", "shortName": "RUB", "displayName": "P", "prec": 2, "type": 1, "sort": 4, "id": 4 }, { "name": "Euro", "shortName": "EUR", "displayName": "\u20ac", "prec": 2, "type": 1, "sort": 5, "id": 5 }] }, "ajaxUpdateStatus": { "data": { "newSupportMessagesNumbe r ":0, " notifications ":[ { "text": "\u0412\u0446\ u0435\ u043b\ u044f\ u0445\ u0431\ u0435\ u0437\ u043e\ u043 f\ u0430\ u0441\ u043d\ u043e\ u0441\ u0442\ u0438. ", "userId": "11", "type": "info", "showed": "0", "date": "1456469410", 30.03 .2018 2 / 40 "id": "250" } ], "newDialogsMessagesNumbe r ":57, "isWorkingTime": true, "workTime": { "start": { "h": 9, "m": 0 }, "end": { "h": 21, "m": 45 } } } } }
Parameters
getExchangeRates[data][send] = 1
getCurrencies[data][send] = 1
ajaxUpdateStatus[data][send] = 1
getBalance[data][send] = 1
                  

Verification codes

Each request can return in response the requirement that the request should be added with verification codes
Example response


{
    "type": "sendConfirmCode"
    "text": "Approve code was sent",
    "data": {
        "settings": {
            "canResend": true,
            "canRecall": true,
            "timeout": 120,
            "restOfTimeout": 100,
            "handlers": [2, 4]
        }
    }
}

Answer with type = sendConfirmCode means that the authorization code with settings has been sent data.settings. Where:

  • canResend - code can be resent
  • canRecall - code can be heard in bot call
  • timeout - timer, after what time can resend or recall
  • handlers - list of the codes involved

Currently there are 4 existing ID

  • 1 - SMS
  • 2 - Google Auth
  • 3 - Word
  • 4 - Email
  • To send the required codes you have to check the request and add new parameters to it like approveCode_
    If a code is not correct in the answer you will get response.data.wrongConfirmCode = true

    Request to resend the code /api/front/resend-code

    Request to recall /api/front/recall-sms-code

    From the parameters you will need only csrf_token
    To get the current settings of the sent code you must run the request

    Request
    GET
    /api/front/get-language-constants
    Answer
    
    {
      "type": "success",
      "settings": {
        "canResend":true,
        "canRecall": true,
        "timeout": 120,
        "restOfTimeout": 100,
        "handlers": [2, 4]
      }
    }
                        
    Parameters
    -
                      

    Authorization

    Request
    POST
    /api/auth/login
    Answer
    
    {
      "type": "success",
      "moveTo": "/"
    }
                        
    Parameters
    
    send = true
    login = "+70000000001"
    password = "test"
    csrf_token = "65ce7fde8a436ee8989f90b60091c0955473532c"
                      

    Registration

    Request
    POST
    /api/registration/new-password
    Answer
    
    {
      "type": "success",
      "moveTo": "/"
    }
                        
    Parameters
    
    send_new_password = true
    phone_number = "+70000000001"
    newPassword = "asdasdasdasd"
    csrf_token = "63ad6df3cdad7c7fff6bb1a14bdcc1741f150c4a"
                      

    Password recovery

    First step

    Request
    POST
    /api/registration/new-password
    Answer
    
    {
      "type": "success",
      "moveTo": "/"
    }
                        
    1) Parameters
    
    send_new_password = true
    phone_number = "+70000000001"
    csrf_token = "63ad6df3cdad7c7fff6bb1a14bdcc1741f150c4a"
                      

    2) Second step

    Request
    POST
    /api/account/confirm-code-word
    Answer
    
    {
      "type": "success",
      "text": "Changes saved successfully"
    }
                        
    Parameters
    
    approveCode_3 = 123456
    approveCode_4 = 714264
    newPassword = "asdasdasd"
    csrf_token = "63ad6df3cdad7c7fff6bb1a14bdcc1741f150c4a"
                      

    History

    Request
    POST
    /api/account/ajax-history-pagination
    Answer
    JSON (show more) { "draw":0, "recordsTotal":507, "recordsFiltered":507, "data":[ { "userId":11, "walletId":0, "date":1504014140, "sum":10, "commission":0, "currencyId":5, "type":1, "info":"asdasd 23123123 23123 82 asdasd|||asd", "cashMethodId":1, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":2310.36, "balanceAfter":2300.36, "hand":false, "toUserId":null, "id":1098 }, { "userId":11, "walletId":0, "date":1493099421, "sum":100, "commission":0, "currencyId":1, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":500.06, "balanceAfter":400.06, "hand":false, "toUserId":null, "id":1096 }, { "userId":11, "walletId":0, "date":1493098267, "sum":100, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":2426.77, "balanceAfter":null, "hand":false, "toUserId":null, "id":1094 }, { "userId":11, "walletId":0, "date":1492094768, "sum":300, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":2126.77, "balanceAfter":2426.77, "hand":false, "toUserId":null, "id":1092 }, { "userId":11, "walletId":0, "date":1490167298, "sum":200, "commission":0, "currencyId":1, "type":1, "info":"82 56654", "cashMethodId":2, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":500.06, "balanceAfter":300.06, "hand":false, "toUserId":null, "id":1090 }, { "userId":11, "walletId":0, "date":1488465422, "sum":300, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":1826.77, "balanceAfter":2126.77, "hand":false, "toUserId":null, "id":1086 }, { "userId":11, "walletId":0, "date":1488464897, "sum":200, "commission":0, "currencyId":1, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":700.06, "balanceAfter":500.06, "hand":false, "toUserId":null, "id":1083 }, { "userId":11, "walletId":0, "date":1488464867, "sum":200, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":1626.77, "balanceAfter":1826.77, "hand":false, "toUserId":null, "id":1081 }, { "userId":11, "walletId":0, "date":1488464698, "sum":100, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":1526.77, "balanceAfter":1626.77, "hand":false, "toUserId":null, "id":1079 }, { "userId":11, "walletId":0, "date":1488463887, "sum":100, "commission":0, "currencyId":1, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":600.06, "balanceAfter":700.06, "hand":false, "toUserId":null, "id":1077 }, { "userId":11, "walletId":0, "date":1488458342, "sum":200, "commission":0, "currencyId":1, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":800.06, "balanceAfter":600.06, "hand":false, "toUserId":null, "id":1068 }, { "userId":11, "walletId":0, "date":1488457918, "sum":200, "commission":0, "currencyId":1, "type":1, "info":"82 asd", "cashMethodId":2, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":800.06, "balanceAfter":600.06, "hand":false, "toUserId":null, "id":1065 }, { "userId":11, "walletId":0, "date":1488457345, "sum":200, "commission":0, "currencyId":1, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":1000.06, "balanceAfter":800.06, "hand":false, "toUserId":null, "id":1063 }, { "userId":11, "walletId":0, "date":1488457104, "sum":100, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":1426.77, "balanceAfter":1526.77, "hand":false, "toUserId":null, "id":1061 }, { "userId":11, "walletId":0, "date":1485338870, "sum":200, "commission":0, "currencyId":1, "type":1, "info":"82 gjh", "cashMethodId":2, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":800.06, "balanceAfter":600.06, "hand":false, "toUserId":null, "id":1049 }, { "userId":11, "walletId":0, "date":1484816405, "sum":200, "commission":0, "currencyId":1, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":800.06, "balanceAfter":1000.06, "hand":false, "toUserId":null, "id":1047 }, { "userId":11, "walletId":0, "date":1484809629, "sum":500, "commission":0, "currencyId":1, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":800.06, "balanceAfter":null, "hand":false, "toUserId":null, "id":1045 }, { "userId":11, "walletId":0, "date":1482409186, "sum":100, "commission":0, "currencyId":1, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":800.06, "balanceAfter":null, "hand":false, "toUserId":null, "id":1043 }, { "userId":11, "walletId":0, "date":1482408375, "sum":100, "commission":0, "currencyId":1, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":900.06, "balanceAfter":800.06, "hand":false, "toUserId":null, "id":1041 }, { "userId":11, "walletId":0, "date":1482402243, "sum":100, "commission":0, "currencyId":1, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":1000.06, "balanceAfter":900.06, "hand":false, "toUserId":null, "id":1039 }, { "userId":11, "walletId":0, "date":1481870744, "sum":400, "commission":0, "currencyId":1, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":600.06, "balanceAfter":1000.06, "hand":false, "toUserId":null, "id":1037 }, { "userId":11, "walletId":0, "date":1481870495, "sum":500, "commission":0, "currencyId":1, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":2, "status":12, "hold":false, "showed":true, "confirm":1, "balanceBefore":100.06, "balanceAfter":600.06, "hand":false, "toUserId":null, "id":1035 }, { "userId":11, "walletId":0, "date":1481634767, "sum":34, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":1426.77, "balanceAfter":null, "hand":false, "toUserId":null, "id":1033 }, { "userId":11, "walletId":0, "date":1481615694, "sum":10, "commission":0, "currencyId":5, "type":1, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":3, "hold":false, "showed":true, "confirm":1, "balanceBefore":1436.77, "balanceAfter":1426.77, "hand":false, "toUserId":null, "id":1031 }, { "userId":11, "walletId":0, "date":1481615589, "sum":10, "commission":0, "currencyId":5, "type":2, "info":{ "myOrder":{ "9": "901234567890 1234123412341234 А А А" }, "answeredOrder":{ "9": "Тест" } }, "cashMethodId":1, "status":5, "hold":false, "showed":true, "confirm":1, "balanceBefore":1436.77, "balanceAfter":null, "hand":false, "toUserId":null, "id":1029 } ], "transactionTypeLabels":{ "1":"L_TRANSACTION_TYPE_1", "2":"L_TRANSACTION_TYPE_2", "4":"L_TRANSACTION_TYPE_4", "6":"L_TRANSACTION_TYPE_6" }, "transactionStatusLabels":{ "1":"L_TRANSACTION_STATUS_1", "2":"L_TRANSACTION_STATUS_2", "3":"L_TRANSACTION_STATUS_3", "4":"L_TRANSACTION_STATUS_4", "5":"L_TRANSACTION_STATUS_5", "8":"L_TRANSACTION_STATUS_8", "9":"L_TRANSACTION_STATUS_9" }, "orderTypeLabels":{ "1":"L_ORDER_TYPE_1", "2":"L_ORDER_TYPE_2" }, "orderStatusLabels":{ "1":"L_ORDER_STATUS_1", "2":"L_ORDER_STATUS_2", "3":"L_ORDER_STATUS_3", "4":"L_ORDER_STATUS_4", "5":"L_ORDER_STATUS_5", "6":"L_ORDER_STATUS_6", "7":"L_ORDER_STATUS_7", "10":"L_ORDER_STATUS_10", "11":"L_ORDER_STATUS_11", "12":"L_ORDER_STATUS_12" }, "paymentsSystems":{ "3":{ "name":"VISA\\MasterCard" }, "1":{ "name":"SEPA Wire Transfer" }, "2":{ "name":"USD Wire Transfer" } }, "currencies":{ "2":{ "name":"Bitcoin", "shortName":"BTC", "displayName":"\u0e3f", "prec":8, "type":0, "sort":1, "id":2 }, "3":{ "name":"Litecoin", "shortName":"LTC", "displayName":"\u0141", "prec":8, "type":0, "sort":2, "id":3 }, "1":{ "name":"U.S. dollars", "shortName":"USD", "displayName":"$", "prec":2, "type":1, "sort":3, "id":1 }, "4":{ "name":"\u0420\u0443\u0431\u043b\u0438", "shortName":"RUB", "displayName":"P", "prec":2, "type":1, "sort":4, "id":4 }, "5":{ "name":"Euro", "shortName":"EUR", "displayName":"\u20ac", "prec":2, "type":1, "sort":5, "id":5 }, "6":{ "name":"\u0427\u0435\u0448\u0441\u043a\u0438\u0435 \u043a\u0440\u043e\u043d\u044b", "shortName":"CZK", "displayName":"K\u010d", "prec":2, "type":1, "sort":6, "id":6 } }, "relationUsersData":[ ] }
    Parameters
    
    length = 25
    beforeTime = ''  time of last received element, with the first request send the void
    ajax_data_tables = true
    csrf_token = "e758a77aed58cf3948400e08d97063a2265957a6"
                      

    Chat with support team

    1) Receive messages

    Request
    POST
    /api/account/ajax-support-pagination
    Answer
    JSON (show more) { "draw":0, "recordsTotal":23, "recordsFiltered":23, "data":[ { "id":152, "date":1488465482, "text":"The decision on the complaint made to the order \u21161087\/1086 is in Your favor", "type":"admin", "fromWhom":"Operator", "fromUserId":1, "showed":true }, { "id":151, "date":1488465449, "text":"Send us a screenshot, or a photo of the payment receipt. (The file should be put this way: press PRNTSCR key, then go to imgur.com, click on the button upload images, press the keys CTRL + V).", "type":"admin", "fromWhom":"Operator", "fromUserId":1, "showed":true }, { "id":148, "date":1488465449, "text":"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439: dfg.\n\u041c\u043d\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0437\u0430\u0447\u0438\u0441\u043b\u0435\u043d\u043e 200 EUR \u043d\u0430 \u043c\u043e\u0439 \u0441\u0447\u0435\u0442 \u0432 Gefara, \u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0438\u043b \u0438\u0445 \u043d\u0430 SEPA Wire Transfer \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0435 \u21161087(#2)", "type":"user", "fromWhom":"You", "fromUserId":11, "showed":false }, { "id":113, "date":1481708338, "text":"asdasdsad", "type":"user", "fromWhom":"You", "fromUserId":11, "showed":false }, { "id":90, "date":1479192094, "text":"\u0412\u0430\u0448\u0430 \u0437\u0430\u044f\u0432\u043a\u0430 \u043d\u0430 \u0432\u0432\u043e\u0434 #1011 \u0431\u044b\u043b\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u0430, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u041c\u044b \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u043e\u043f\u043b\u0430\u0442\u0443 \u043e\u0442 \u0412\u0430\u0441 \u0432 \u0440\u0430\u0437\u0443\u043c\u043d\u044b\u0435 \u0441\u0440\u043e\u043a\u0438. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u0441\u043a\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0435\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u044b.", "type":"admin", "fromWhom":"Operator", "fromUserId":1, "showed":true }, { "id":76, "date":1478010030, "text":"--89800 BTC\n", "type":"admin", "fromWhom":"Operator", "fromUserId":1, "showed":true }, { "id":49, "date":1477317699, "text":"\u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e \u0436\u0430\u043b\u043e\u0431\u0435 \u043d\u0430 \u0437\u0430\u044f\u0432\u043a\u0443 \u2116972\/973 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u043d\u0435 \u0432 \u0412\u0430\u0448\u0443 \u043f\u043e\u043b\u044c\u0437\u0443", "type":"admin", "fromWhom":"Operator", "fromUserId":1, "showed":true }, { "id":44, "date":1477317464, "text":"\u041a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439: asd.\n\u041a\u043b\u0438\u0435\u043d\u0442 #2 \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u043b \u043e\u043f\u043b\u0430\u0442\u0443 \u043f\u043e \u0437\u0430\u044f\u0432\u043a\u0435 \u043d\u0430 \u0412\u0412\u041e\u0414 \u2116972\/973 \u0447\u0435\u0440\u0435\u0437 SEPA Wire Transfer \u043d\u0430 200 \u0440\u0443\u0431\u043b\u0435\u0439", "type":"user", "fromWhom":"You", "fromUserId":11, "showed":true }, { "id":27, "date":1474538621, "text":"\u0421\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435", "type":"user", "fromWhom":"You", "fromUserId":11, "showed":true }, { "id":24, "date":1473773033, "text":"sdf", "type":"user", "fromWhom":"You", "fromUserId":11, "showed":true } ] }
    Parameters
    
    start = 0
    length = 10
    csrf_token = "e758a77aed58cf3948400e08d97063a2265957a6"
    ajax_data_tables = true
                      

    2) Send messages

    Request
    POST
    /api/account/support
    Answer
    
    {
       "type": "success",
       "message": "Ok"
     }
                        
    Parameters
    
    text = "Hello"
    send_private_message = true
    csrf_token = "9f19076e77109c40cf5373ff8fa55645a1429197"
                      

    3) Setting up the flag of the problem solution

    Request
    POST
    /api/account/set-user-mark
    Answer
    
    {
      "type": "success",
      "text":"Changes saved successfully"
    }
                        
    Parameters
    
    mark = true
    csrf_token = "a068dd46b2d49da4c10c1a4c8caefe89a4c8383a"
                      

    Payment systems

    Request
    GET
    /api/account/get-payments-systems
    Answer
    JSON (show more) { "type":"success", "data":[ { "name":"VISA\\MasterCard", "nameR":"card", "currencyId":5, "timeout":21600, "mainTimeout":8640000, "forOrderDeposit":false, "forOrderWithdraw":false, "defaultRateDeposit":1, "defaultRateWithdraw":1, "payDetailsText":"L_PAYMENT_SYSTEM_PAY_DETAIL_TEXT_3", "forMainOrder":1, "icon":"\/img\/payment_systems_icons\/visa_eur.png", "manualDeposit":"L_PAYMENT_SYSTEM_MANUAL_DEPOSIT_3", "manualWithdraw":"L_PAYMENT_SYSTEM_MANUAL_WITHDRAW_3", "amountLowSimpleDeposit":10, "amountHighSimpleDeposit":25000, "amountLowSimpleWithdraw":10, "amountHighSimpleWithdraw":25000, "cardPhoneRequired":true, "outerCommission":0, "isCash":false, "depositOrderSeparateAmount":150000, "fixDeposit":0, "fixDepositTrusted":0, "percentDeposit":0.035, "percentDepositTrusted":0, "fixWithdraw":0, "fixCommissionAmount":0, "risky":true, "maxDepositOrderAmountBeforeSeparate":15000, "id":3 }, { "name":"SEPA Wire Transfer", "nameR":"SEPA", "currencyId":5, "timeout":1, "mainTimeout":8640000, "forOrderDeposit":true, "forOrderWithdraw":true, "defaultRateDeposit":1, "defaultRateWithdraw":1, "payDetailsText":"L_PAYMENT_SYSTEM_PAY_DETAIL_TEXT_1", "forMainOrder":2, "icon":"\/img\/payment_systems_icons\/sepa_eur.png", "manualDeposit":"L_PAYMENT_SYSTEM_MANUAL_DEPOSIT_1", "manualWithdraw":"L_PAYMENT_SYSTEM_MANUAL_WITHDRAW_1", "amountLowSimpleDeposit":10, "amountHighSimpleDeposit":25000, "amountLowSimpleWithdraw":10, "amountHighSimpleWithdraw":25000, "cardPhoneRequired":false, "outerCommission":0.01, "isCash":false, "depositOrderSeparateAmount":150000, "fixDeposit":0, "fixDepositTrusted":15, "percentDeposit":0, "percentDepositTrusted":0, "fixWithdraw":15, "fixCommissionAmount":0, "risky":false, "maxDepositOrderAmountBeforeSeparate":15000, "id":1 }, { "name":"USD Wire Transfer", "nameR":"USD WIRE", "currencyId":1, "timeout":21600, "mainTimeout":8640000, "forOrderDeposit":true, "forOrderWithdraw":true, "defaultRateDeposit":1, "defaultRateWithdraw":1, "payDetailsText":"L_PAYMENT_SYSTEM_PAY_DETAIL_TEXT_2", "forMainOrder":3, "icon":"\/img\/payment_systems_icons\/wire_transfer_usd.png", "manualDeposit":"L_PAYMENT_SYSTEM_MANUAL_DEPOSIT_2", "manualWithdraw":"L_PAYMENT_SYSTEM_MANUAL_WITHDRAW_2", "amountLowSimpleDeposit":10, "amountHighSimpleDeposit":25000, "amountLowSimpleWithdraw":10, "amountHighSimpleWithdraw":25000, "cardPhoneRequired":false, "outerCommission":0.01, "isCash":false, "depositOrderSeparateAmount":150000, "fixDeposit":0, "fixDepositTrusted":15, "percentDeposit":0, "percentDepositTrusted":0, "fixWithdraw":15, "fixCommissionAmount":0, "risky":false, "maxDepositOrderAmountBeforeSeparate":15000, "id":2 } ] }
    Parameters
    -
                      

    Worktime

    Request
    GET
    /api/front/get-working-time
    Answer
    
    {
        "type": "success",
        "data": {
            "settings": {
                "isWorkingTime": true,
                "todayWorkTime": {
                    "start": {
                        "h": 9,
                        "m": 0
                    },
                    "end": {
                        "h": 21,
                        "m": 45
                    }
                }
            }
        }
    }
                        
    Parameters
    -
                      

    Applications

    1) Get the list of the actual applications

    Request
    POST 
    /api/market/ajax-my-orders-dt
    Answer
    JSON (show more) { "draw":0, "recordsTotal":1, "recordsFiltered":1, "data":[ { "myOrder":{ "userId":11, "type":2, "amount":300, "paymentsSystemId":1, "currencyId":5, "rate":1, "details":{}, "status":10, "orderId":1093, "parentId":null, "isDefendant":false, "commissionRate":0, "timeCreate":1492094768, "timeUpdate":1492094768, "mainOrder":true, "updId":null, "suspect":0, "userPhoneId":0, "newAmount":0, "statUpdId":null, "balanceBefore":2126.77, "balanceAfter":null, "comms":0, "commsTrusted":0, "id":1092 }, "answeredOrder":{ "userId":2, "type":1, "amount":300, "paymentsSystemId":null, "currencyId":5, "rate":null, "details":{ "9":"SEPA Wire Transfer", }, "status":2, "orderId":1092, "parentId":"1072", "isDefendant":false, "commissionRate":0, "timeCreate":1492094768, "timeUpdate":1492094768, "mainOrder":false, "updId":26, "suspect":0, "userPhoneId":0, "newAmount":0, "statUpdId":26, "balanceBefore":0.6, "balanceAfter":0.6, "comms":0, "commsTrusted":0, "id":1093 }, "counterAgent":null, "canPay":true, "canDelete":true, "canComplaint":false, "canConfirm":false, "canChangeAmount":false, "canCancelComplaint":false, "timeoutBeforeComplaint":-7, "answeredCancelTimeout":-8, "canChangeAmountOfSelfDepositOrder":false, "timeoutBeforeAutoCancel":-7 } ], "systemWithdrawState":false }
    Parameters
    
    order_type = 2
    ajax_data_tables = true
    csrf_token = "63ad6df3cdad7c7fff6bb1a14bdcc1741f150c4a"
    for_my_orders = true
    length = 100
                      

    2) Create an entry request

    Request
    POST
    /api/market/add-client-depositorder
    Answer
    
    {
      "type": "success",
      "text": "Application created successfully"
    }
                        
    Parameters
    -
                      

    3) Pay for the application

    Request
    POST
    /marketInOut/sendActionToOrder
    Answer
    
    {
      "type": "success",
      "text": "Application succssefully created"
    }
                        
    Parameters
    
    id = 1094
    action = "pay"
    details = "I pay in 12:40"
    action_order = true
    csrf_token = "5382be0dac531b7b44cb40fd5f77366a29ff0a41"
                      

    4) File a complaint

    Request
    POST
    /marketInOut/sendActionToOrder
    Answer
    
    {
      "type": "success",
      "text": "Complaint Successful added"
    }
                        
    Parameters
    
    id = 1094
    action = "complaint"
    details = "text of complaint"
    action_order = true
    csrf_token = "5382be0dac531b7b44cb40fd5f77366a29ff0a41"
                      

    5) Cancel the complaint

    Request
    POST
    /marketInOut/sendActionToOrder
    Answer
    
    {
      "type" : "success",
      "text" : "Complaint successfully canceled"
    }
                        
    Parameters
    
    id = 1094
    action = "cancelComplaint"
    action_order = true
    csrf_token = "5382be0dac531b7b44cb40fd5f77366a29ff0a41"
                      

    6) Cancel the application

    Request
    POST
    /marketInOut/sendActionToOrder
    Answer
    
                        Answer
    {
      "type": "success",
      "text": "Application succssfully canceled"
    }
    
                        
    Parameters
    
    id = 1094
    action = "delete"
    action_order = true
    csrf_token = "5382be0dac531b7b44cb40fd5f77366a29ff0a41"
                      

    7) Get additional fields to create an order for output

    Request
    GET
    /api/market/get-ps-custom-fields-data
    Answer
    JSON (show more) { "type":"success", "data":{ "detailsFields":[ { "id":1, "name":"account" }, { "id":2, "name":"card" }, { "id":3, "name":"fio" }, { "id":4, "name":"dob" }, { "id":5, "name":"phone" }, { "id":6, "name":"yandex_money" }, { "id":7, "name":"email" }, { "id":8, "name":"bik" }, { "id":9, "name":"comment" }, { "id":10, "name":"bank" }, { "id":11, "name":"mobile_operator" }, { "id":12, "name":"contract_number" }, { "id":13, "name":"city" }, { "id":14, "name":"full_name_or_company_name" }, { "id":15, "name":"iban" }, { "id":16, "name":"bic" }, { "id":17, "name":"country" } ], "psDetailsFields":[ { "id":2, "psId":1, "fieldId":9 }, { "id":4, "psId":1, "fieldId":14 }, { "id":5, "psId":1, "fieldId":15 }, { "id":6, "psId":1, "fieldId":16 }, { "id":7, "psId":1, "fieldId":17 }, { "id":1, "psId":2, "fieldId":9 }, { "id":8, "psId":2, "fieldId":17 }, { "id":3, "psId":3, "fieldId":9 }, { "id":9, "psId":3, "fieldId":17 } ], "detailsFieldMobOp":[ { "id":1, "name":"Beeline" }, { "id":2, "name":"MTS" }, { "id":3, "name":"Megafon" }, { "id":4, "name":"Tele2" }, { "id":5, "name":"Smarts" }, { "id":6, "name":"Motiv" } ] } }
    Parameters
    -
                      

    8) Create an application for output

    Request
    POST
    /api/market/add-client-withdraw-order
    Answer
    
    {
      "type": "success",
      "text": "Application created successfully"
    }
                        
    Parameters
    
    paymentsSystem = 2
    amount = 100
    details17 = 20
    details9 = "some text"
    csrf_token = "5382be0dac531b7b44cb40fd5f77366a29ff0a41"
    
                      

    9) Confirm the paid application

    Request
    POST
    /api/market/add-client-withdraw-order
    Answer
    
    {
      "type": "success",
      "text": "Application created successfully"
    }
                        
    Parameters
    
    id = 1096
    action = "confirm"
    action_order = true
    csrf_token = "5382be0dac531b7b44cb40fd5f77366a29ff0a41"
                      

    Get information on input / output methods

    Request
    GET
    /api/front/get-cash-methods-settings
    Answer
    JSON (show more) { "type": "success", "message": null, "data": { "cashMethodsSettings": [{ "cashMethodId": 4, "currencyId": 2, "minSumIn": 0.0001, "minComIn": 0.0003, "comRateIn": 0, "minSumOut": 5.5e-5, "maxSumOut": 0, "minComOut": 0.0002, "comRateOut": 0, "id": "1" }, { "cashMethodId": 4, "currencyId": 3, "minSumIn": 0.1, "minComIn": 0, "comRateIn": 0, "minSumOut": 0.5, "maxSumOut": 0, "minComOut": 0.01, "comRateOut": 0, "id": "2" }, { "cashMethodId": 15, "currencyId": 4, "minSumIn": 0, "minComIn": 0, "comRateIn": 0, "minSumOut": 0, "maxSumOut": 0, "minComOut": 3.5, "comRateOut": 0.03, "id": "3" }, <...> { "cashMethodId": 37, "currencyId": 31, "minSumIn": 0.0001, "minComIn": 0.0003, "comRateIn": 0, "minSumOut": 5.5e-5, "maxSumOut": 0, "minComOut": 0.0002, "comRateOut": 0, "id": "238" }] } }
    Parameters
    -
                      

    Getting bitcoin addresses

    Request
    GET
    /api/account/get-my-coin-addresses
    Answer
    JSON (show more) { "type": "success", "message": null, "data": { "coinAddresses": { "2": [{ "coinAddress": "2N3VYCMv9jvucxLxJ47edt7caE9kzAsxMQA", "receivedBalance": 1.84626731, "currencyId": 2, "id": 724 }, { "coinAddress": "2N7jtFaT64FYZnU3k7XCrTNjsfFhuk4BkMt", "receivedBalance": 0.99337315, "currencyId": 2, "id": 727 }, { "coinAddress": "2Mx9a6noeQ32j1y8VEcLAcqXdhS72S32bPe", "receivedBalance": 0, "currencyId": 2, "id": 730 }], "3": [{ "coinAddress": "mvXuN4AEL9eKGAm1Lsfr2fkxWYUJkxD1C4", "receivedBalance": 1, "currencyId": 3, "id": 925 }, { "coinAddress": "n3Vks5WLM6qDvQH2r14FDRWz5tPQEtDVUd", "receivedBalance": 0, "currencyId": 3, "id": 927 }], "31": [{ "coinAddress": "tmDUADKvWgrPubC7QRnXwobyavwFpy2LNiF", "receivedBalance": 2.9997, "currencyId": 31, "id": 1046 }, { "coinAddress": "tmYYsZL6HBratEDZStaXkgPhQ6Y1VKhQ5fq", "receivedBalance": 0, "currencyId": 31, "id": 1048 }] } } }
    
    
                        
    Parameters
    -
                      

    Send bitcoin

    Request
    POST
    /api/account/cash-out-btc
    Answer
    
    {
      "type": "success",
      "text": "Request for an outputsent"
    }
                        
    Parameters
    
    amount = 0.00000055
    outData = "+70000000001"(BTC address can be specified)
    csrf_token = "63ecb6172f4418ec31fedd936117931edecf0ddf"
                      

    Mass Payout

    1) Enabling mass payout

    Request
    POST
    /api/account/enable-massive-payments
    Answer
    
    {
      "type": "success",
      "text": "Settings successfully saved"
    }
                        
    Parameters
    
    bool = true
    csrf_token = "63ecb6172f4418ec31fedd936117931edecf0ddf"
                      

    2) Receiving a secret key

    Request
    POST
    /api/account/get-massive-payments-secret-key
    Answer
    
    {
      "type": "success",
      "data": {
        "massivePaymentsSecretKey": "SDA231FASDA"
      }
    }
                        
    Parameters
    
    bool = true
    csrf_token = "63ecb6172f4418ec31fedd936117931edecf0ddf"
                      

    3) Mass payment

    Request
    POST
    /api/account/send-massive-payments-file
    Answer
    
    {
      "type": "success",
      "text": "Application for a mass payment received"
    }
    
                        
    Parameters
    
    bool = true
    massPaymentsFile = FILE (each line of the file has address and amount through any separator)
                      

    Exchange

    Request
    POST 
    /api/account/exchange
    Answer
    
    {
      "type": "success",
      "text": "Exchange successfully executed"
    }
                        
    Parameters
    
    exchange_from_shortName = "EUR"
    exchange_to_shortName = "BTC"
    source_amount = 5.3
    send_exchange = true
    csrf_token ="fb385ea2b98e21ebaea5b02c055b396d44839e43"
                      

    User Settings

    1) Get the data

    Request
    GET
    /api/account/get-settings-data
    Answer
    JSON (show more) { "type": "success", "data": { "firstName": "someNmae", "word": "*****", "email": "K**********************m ", " codeWordsBlackList ":[ "0987"], "passportName": "asd", "lastName": "asd", "middleName": "", "birthday": 1490994000, "forwardState": 0, "passport": { "isApprove": false, "number": "1234 1234", "whomIssued": "", "date": 1493240400, "registrationAddress": "" }, "location": { "countryId": 82, "city": "asd", "address": "asdf", "postalCode": "1234" }, "documentPhotoLoaded": false, "codeSendHandlerId": 1 }
    Parameters
    
    csrf_token = "cc6fd611cf84ece89b4206b9077e4282ee571a22"
                      

    2) Change of name and email

    Request
    POST
    /api/account/settings-handler
    Answer
    
    {
        "type": "success",
        "text": "Settings successfully saved"
    }
                        
    Parameters
    
    firstName = "someNmae"
    email = "some@email.com"
    csrf_token = "cc6fd611cf84ece89b4206b9077e4282ee571a22"
                      

    3) PIN change

    Request
    POST
    /api/account/change-code-word
    Answer
    
    {
        "type": "success",
        "text": "Settings successfully saved"
    }
                        
    Parameters
    
    codeWord = 123456
    repeatCodeWord = 123456
    csrf_token = "cc6fd611cf84ece89b4206b9077e4282ee571a22"
                      

    4) Change of codes sending type

    Request
    POST
    /api/account/save-code-send-handler
    Answer
    
    Data field is not available for all the senders
    {
        "type": "success",
        "text": "Changes successfully saved",
        "data": {
            "googleQRCodeUrl": "https://chart.googleapis.com/chart? ...",
            "googleSecretCode" : "3J6J4DY2PM7KGZ4E"
        }
    }
                        
    Parameters
    
    handlerId = 2
    csrf_token = "cc6fd611cf84ece89b4206b9077e4282ee571a22"
                      

    5) Google Authenticator data request

    Request
    POST
    /api/account/get-user-google-code
    Answer
    
    {
        "type": "success",
        "data": {
            "googleQRCodeUrl": "https://chart.googleapis.com/...",
            "googleSecretCode": "3D3J6J4ZY2PM7KGZ4E"
        }
    }
                        
    Parameters
    
                          csrf_token = "cc6fd611cf84ece89b4206b9077e4282ee571a22"
                      

    6) Verification saving

    Request
    POST
    /api/account/update-identification-data
    Answer
    
    {
        "type": "success",
        "text": "Settings successfully saved"
    }
                        
    Parameters
    
    passportName = "Name"
    lastName = "Surname"
    birthday = "01/04/2017"
    passportNumber = "1234+1234"
    passportDate = "27/04/2017"
    locationCountryId = 82
    locationCity = "Moscow"
    passportRegistrationAddress = "Street, bld, apt"
    locationPostalCode = 1234
    notLiveInCountry = true
    csrf_token = "16747338b7473af83fc22af2a60855525bbfcd3e"
                      

    7) Saving photos

    Request
    POST
    /api/account/update-identification-photos
    Answer
    
    {
        "type": "success",
        "text": "Files successfully uploaded "
    }
                        
    Parameters
    
    idDocument = FILE
    idDocumentBack = FILE
    proofOfResidence = FILE
    csrf_token = "16747338b7473af83fc22af2a60855525bbfcd3e"
                      

    8) Phone number change

    Request
    POST
    /api/account/change-phone
    Answer
    
    {
        "type": "success",
        "text": "Change phone number successfully completed"
    }
                        
    Parameters
    
    newPhoneNumber = '+71234567890'
    csrf_token = "16747338b7473af83fc22af2a60855525bbfcd3e"
                      

    Get a list of countries

    Request
    POST 
    /api/account/exchange
    Answer
    JSON (show more) { "type": "success", "data": [{ "name": "Afghanistan", "inBlacklist": true, "order": 999, "id": 1 }, { "name": "Albania", "inBlacklist": false, "order": 999, "id": 2 }, { "name": "Algeria", "inBlacklist": false, "order": 999, "id": 3 }, { "name": "American Samoa ", "inBlacklist": false, "order": 999, "id": 4 }, { "name": "Andorra", "inBlacklist": false, "order": 999, "id": 5 }, { "name": "Angola", "inBlacklist": false, "order": 999, "id": 6 }, { "name": "Anguilla", "inBlacklist": false, "order": 999, "id": 7 }, { "name": "Antigua & Barbuda ", "inBlacklist": false, "order": 999, "id": 8 }, { "name": "Argentina", "inBlacklist": false, "order": 999, "id": 9 }, { "name": "Armenia", "inBlacklist": false, "order": 999, "id": 10 }, { "name": "Aruba", "inBlacklist": false, "order": 999, "id": 11 }, { "name": "Australia", "inBlacklist": false, "order": 999, "id": 12 }, { "name": "Austria", "inBlacklist": false, "order": 2, "id": 13 }, { "name": "Azerbaijan", "inBlacklist": false, "order": 999, "id": 14 }, { "name": "Bahamas", "inBlacklist": false, "order": 999, "id": 15 }, { "name": "Bahrain", "inBlacklist": false, "order": 999, "id": 16 }, { "name": "Bangladesh", "inBlacklist": true, "order": 999, "id": 17 }, { "name": "Barbados", "inBlacklist": false, "order": 999, "id": 18 }, { "name": "Belarus", "inBlacklist": false, "order": 999, "id": 19 }, { "name": "Belgium", "inBlacklist": false, "order": 3, "id": 20 }, { "name": "Belize", "inBlacklist": false, "order": 999, "id": 21 }, { "name": "Benin", "inBlacklist": false, "order": 999, "id": 22 }, { "name": "Bermuda", "inBlacklist": false, "order": 999, "id": 23 }, { "name": "Bhutan", "inBlacklist": false, "order": 999, "id": 24 }, { "name": "Bolivia", "inBlacklist": true, "order": 999, "id": 25 }, { "name": "Bonaire", "inBlacklist": false, "order": 999, "id": 26 }, { "name": "Bosnia & Herzegovina ", "inBlacklist": true, "order": 999, "id": 27 }, { "name": "Botswana", "inBlacklist": false, "order": 999, "id": 28 }, { "name": "Brazil", "inBlacklist": false, "order": 999, "id": 29 }, { "name": "British Indian Ocean Ter ", "inBlacklist": false, "order": 999, "id": 30 }, { "name": "Brunei", "inBlacklist": false, "order": 999, "id": 31 }, { "name": "Bulgaria", "inBlacklist": false, "order": 999, "id": 32 }, { "name": "Burkina Faso ", " inBlacklist ":false, "order": 999, "id": 33 }, { "name": "Burundi", "inBlacklist": false, "order": 999, "id": 34 }, { "name": "Cambodia", "inBlacklist": false, "order": 999, "id": 35 }, { "name": "Cameroon", "inBlacklist": false, "order": 999, "id": 36 }, { "name": "Canada", "inBlacklist": false, "order": 999, "id": 37 }, { "name": "Canary Islands ", "inBlacklist": false, "order": 999, "id": 38 }, { "name": "Cape Verde", "inBlacklist": false, "order": 999, "id": 39 }, { "name": "Cayman Islands ", "inBlacklist": false, "order": 999, "id": 40 }, { "name": "Central African Republic ", "inBlacklist": false, "order": 999, "id": 41 }, { "name": "Chad", "inBlacklist": false, "order": 999, "id": 42 }, { "name": "Channel Islands ", "inBlacklist": false, "order": 999, "id": 43 }, { "name": "Chile", "inBlacklist": false, "order": 999, "id": 44 }, { "name": "China", "inBlacklist": false, "order": 999, "id": 45 }, { "name": "Christmas Island ", "inBlacklist": false, "order": 999, "id": 46 }, { "name": "Cocos Island ", "inBlacklist": false, "order": 999, "id": 47 }, { "name": "Colombia", "inBlacklist": false, "order": 999, "id": 48 }, { "name": "Comoros", "inBlacklist": false, "order": 999, "id": 49 }, { "name": "Congo", "inBlacklist": false, "order": 999, "id": 50 }, { "name": "Cook Islands ", "inBlacklist": false, "order": 999, "id": 51 }, { "name": "Costa Rica", "inBlacklist": false, "order": 999, "id": 52 }, { "name": "Cote D 'Ivoire", "inBlacklist": false, "order": 999, "id": 53 }, { "name": "Croatia", "inBlacklist": false, "order": 999, "id": 54 }, { "name": "Cuba", "inBlacklist": true, "order": 999, "id": 55 }, { "name": "Curacao", "inBlacklist": false, "order": 999, "id": 56 }, { "name": "Cyprus", "inBlacklist": false, "order": 999, "id": 57 }, { "name": "Czech Republic ", "inBlacklist": false, "order": 999, "id": 58 }, { "name": "Denmark", "inBlacklist": false, "order": 999, "id": 59 }, { "name": "Djibouti", "inBlacklist": false, "order": 999, "id": 60 }, { "name": "Dominica", "inBlacklist": false, "order": 999, "id": 61 }, { "name": "Dominican Republic ", "inBlacklist": false, "order": 999, "id": 62 }, { "name": "East Timor", "inBlacklist": false, "order": 999, "id": 63 }, { "name": "Ecuador", "inBlacklist": true, "order": 999, "id": 64 }, { "name": "Egypt", "inBlacklist": false, "order": 999, "id": 65 }, { "name": "El Salvador", "inBlacklist": false, "order": 999, "id": 66 }, { "name": "Equatorial Guinea ", "inBlacklist": false, "order": 999, "id": 67 }, { "name": "Eritrea", "inBlacklist": false, "order": 999, "id": 68 }, { "name": "Estonia", "inBlacklist": false, "order": 999, "id": 69 }, { "name": "Ethiopia", "inBlacklist": false, "order": 999, "id": 70 }, { "name": "Falkland Islands ", "inBlacklist": false, "order": 999, "id": 71 }, { "name": "Faroe Islands ", "inBlacklist": false, "order": 999, "id": 72 }, { "name": "Fiji", "inBlacklist": false, "order": 999, "id": 73 }, { "name": "Finland", "inBlacklist": false, "order": 999, "id": 74 }, { "name": "France", "inBlacklist": false, "order": 999, "id": 75 }, { "name": "French Guiana ", "inBlacklist": false, "order": 999, "id": 76 }, { "name": "French Polynesia ", "inBlacklist": false, "order": 999, "id": 77 }, { "name": "French Southern Ter ", "inBlacklist": false, "order": 999, "id": 78 }, { "name": "Gabon", "inBlacklist": false, "order": 999, "id": 79 }, { "name": "Gambia", "inBlacklist": false, "order": 999, "id": 80 }, { "name": "Georgia", "inBlacklist": false, "order": 999, "id": 81 }, { "name": "Germany", "inBlacklist": false, "order": 1, "id": 82 }, { "name": "Ghana", "inBlacklist": false, "order": 999, "id": 83 }, { "name": "Gibraltar", "inBlacklist": false, "order": 999, "id": 84 }, { "name": "Great Britain ", "inBlacklist": false, "order": 999, "id": 85 }, { "name": "Greece", "inBlacklist": false, "order": 999, "id": 86 }, { "name": "Greenland", "inBlacklist": false, "order": 999, "id": 87 }, { "name": "Grenada", "inBlacklist": false, "order": 999, "id": 88 }, { "name": "Guadeloupe", "inBlacklist": false, "order": 999, "id": 89 }, { "name": "Guam", "inBlacklist": false, "order": 999, "id": 90 }, { "name": "Guatemala", "inBlacklist": false, "order": 999, "id": 91 }, { "name": "Guinea", "inBlacklist": false, "order": 999, "id": 92 }, { "name": "Guyana", "inBlacklist": true, "order": 999, "id": 93 }, { "name": "Haiti", "inBlacklist": false, "order": 999, "id": 94 }, { "name": "Hawaii", "inBlacklist": false, "order": 999, "id": 95 }, { "name": "Honduras", "inBlacklist": false, "order": 999, "id": 96 }, { "name": "Hong Kong", "inBlacklist": false, "order": 999, "id": 97 }, { "name": "Hungary", "inBlacklist": false, "order": 999, "id": 98 }, { "name": "Iceland", "inBlacklist": false, "order": 999, "id": 99 }, { "name": "India", "inBlacklist": false, "order": 999, "id": 100 }, { "name": "Indonesia", "inBlacklist": false, "order": 999, "id": 101 }, { "name": "Iran", "inBlacklist": true, "order": 999, "id": 102 }, { "name": "Iraq", "inBlacklist": false, "order": 999, "id": 103 }, { "name": "Ireland", "inBlacklist": false, "order": 999, "id": 104 }, { "name": "Isle of Man ", " inBlacklist ":false, "order": 999, "id": 105 }, { "name": "Israel", "inBlacklist": false, "order": 999, "id": 106 }, { "name": "Italy", "inBlacklist": false, "order": 999, "id": 107 }, { "name": "Jamaica", "inBlacklist": false, "order": 999, "id": 108 }, { "name": "Japan", "inBlacklist": false, "order": 999, "id": 109 }, { "name": "Jordan", "inBlacklist": false, "order": 999, "id": 110 }, { "name": "Kazakhstan", "inBlacklist": false, "order": 999, "id": 111 }, { "name": "Kenya", "inBlacklist": false, "order": 999, "id": 112 }, { "name": "Kiribati", "inBlacklist": false, "order": 999, "id": 113 }, { "name": "Korea North ", " inBlacklist ":true, "order": 999, "id": 114 }, { "name": "Korea South ", "inBlacklist": false, "order": 999, "id": 115 }, { "name": "Kuwait", "inBlacklist": false, "order": 999, "id": 116 }, { "name": "Kyrgyzstan", "inBlacklist": false, "order": 999, "id": 117 }, { "name": "Laos", "inBlacklist": true, "order": 999, "id": 118 }, { "name": "Latvia", "inBlacklist": false, "order": 999, "id": 119 }, { "name": "Lebanon", "inBlacklist": false, "order": 999, "id": 120 }, { "name": "Lesotho", "inBlacklist": false, "order": 999, "id": 121 }, { "name": "Liberia", "inBlacklist": false, "order": 999, "id": 122 }, { "name": "Libya", "inBlacklist": false, "order": 999, "id": 123 }, { "name": "Liechtenstein", "inBlacklist": false, "order": 999, "id": 124 }, { "name": "Lithuania", "inBlacklist": false, "order": 999, "id": 125 }, { "name": "Luxembourg", "inBlacklist": false, "order": 999, "id": 126 }, { "name": "Macau", "inBlacklist": false, "order": 999, "id": 127 }, { "name": "Macedonia", "inBlacklist": false, "order": 999, "id": 128 }, { "name": "Madagascar", "inBlacklist": false, "order": 999, "id": 129 }, { "name": "Malawi", "inBlacklist": false, "order": 999, "id": 130 }, { "name": "Malaysia", "inBlacklist": false, "order": 999, "id": 131 }, { "name": "Maldives", "inBlacklist": false, "order": 999, "id": 132 }, { "name": "Mali", "inBlacklist": false, "order": 999, "id": 133 }, { "name": "Malta", "inBlacklist": false, "order": 999, "id": 134 }, { "name": "Marshall Islands ", "inBlacklist": false, "order": 999, "id": 135 }, { "name": "Martinique", "inBlacklist": false, "order": 999, "id": 136 }, { "name": "Mauritania", "inBlacklist": false, "order": 999, "id": 137 }, { "name": "Mauritius", "inBlacklist": false, "order": 999, "id": 138 }, { "name": "Mayotte", "inBlacklist": false, "order": 999, "id": 139 }, { "name": "Mexico", "inBlacklist": false, "order": 999, "id": 140 }, { "name": "Midway Islands ", "inBlacklist": false, "order": 999, "id": 141 }, { "name": "Moldova", "inBlacklist": false, "order": 999, "id": 142 }, { "name": "Monaco", "inBlacklist": false, "order": 999, "id": 143 }, { "name": "Mongolia", "inBlacklist": false, "order": 999, "id": 144 }, { "name": "Montserrat", "inBlacklist": false, "order": 999, "id": 145 }, { "name": "Morocco", "inBlacklist": false, "order": 999, "id": 146 }, { "name": "Mozambique", "inBlacklist": false, "order": 999, "id": 147 }, { "name": "Myanmar", "inBlacklist": false, "order": 999, "id": 148 }, { "name": "Nambia", "inBlacklist": false, "order": 999, "id": 149 }, { "name": "Nauru", "inBlacklist": false, "order": 999, "id": 150 }, { "name": "Nepal", "inBlacklist": false, "order": 999, "id": 151 }, { "name": "Netherland Antilles ", "inBlacklist": false, "order": 999, "id": 152 }, { "name": "Netherlands (Holland, Europe) ", "inBlacklist": false, "order": 999, "id": 153 }, { "name": "Nevis", "inBlacklist": false, "order": 999, "id": 154 }, { "name": "New Caledonia ", "inBlacklist": false, "order": 999, "id": 155 }, { "name": "New Zealand ", "inBlacklist": false, "order": 999, "id": 156 }, { "name": "Nicaragua", "inBlacklist": false, "order": 999, "id": 157 }, { "name": "Niger", "inBlacklist": false, "order": 999, "id": 158 }, { "name": "Nigeria", "inBlacklist": false, "order": 999, "id": 159 }, { "name": "Niue", "inBlacklist": false, "order": 999, "id": 160 }, { "name": "Norfolk Island ", "inBlacklist": false, "order": 999, "id": 161 }, { "name": "Norway", "inBlacklist": false, "order": 999, "id": 162 }, { "name": "Oman", "inBlacklist": false, "order": 999, "id": 163 }, { "name": "Pakistan", "inBlacklist": false, "order": 999, "id": 164 }, { "name": "Palau Island ", "inBlacklist": false, "order": 999, "id": 165 }, { "name": "Palestine", "inBlacklist": false, "order": 999, "id": 166 }, { "name": "Panama", "inBlacklist": false, "order": 999, "id": 167 }, { "name": "Papua New Guinea ", "inBlacklist": false, "order": 999, "id": 168 }, { "name": "Paraguay", "inBlacklist": false, "order": 999, "id": 169 }, { "name": "Peru", "inBlacklist": false, "order": 999, "id": 170 }, { "name": "Philippines", "inBlacklist": false, "order": 999, "id": 171 }, { "name": "Pitcairn Island ", "inBlacklist": false, "order": 999, "id": 172 }, { "name": "Poland", "inBlacklist": false, "order": 999, "id": 173 }, { "name": "Portugal", "inBlacklist": false, "order": 999, "id": 174 }, { "name": "Puerto Rico ", " inBlacklist ":false, "order": 999, "id": 175 }, { "name": "Qatar", "inBlacklist": false, "order": 999, "id": 176 }, { "name": "Republic of Montenegro ", "inBlacklist": false, "order": 999, "id": 177 }, { "name": "Republic of Serbia ", "inBlacklist": false, "order": 999, "id": 178 }, { "name": "Reunion", "inBlacklist": false, "order": 999, "id": 179 }, { "name": "Romania", "inBlacklist": false, "order": 999, "id": 180 }, { "name": "Russia", "inBlacklist": false, "order": 999, "id": 181 }, { "name": "Rwanda", "inBlacklist": false, "order": 999, "id": 182 }, { "name": "Saipan", "inBlacklist": false, "order": 999, "id": 183 }, { "name": "Samoa", "inBlacklist": false, "order": 999, "id": 184 }, { "name": "Samoa American ", "inBlacklist": false, "order": 999, "id": 185 }, { "name": "San Marino ", "inBlacklist": false, "order": 999, "id": 186 }, { "name": "Sao Tome & Principe ", "inBlacklist": false, "order": 999, "id": 187 }, { "name": "Saudi Arabia ", "inBlacklist": false, "order": 999, "id": 188 }, { "name": "Senegal", "inBlacklist": false, "order": 999, "id": 189 }, { "name": "Serbia", "inBlacklist": false, "order": 999, "id": 190 }, { "name": "Seychelles", "inBlacklist": false, "order": 999, "id": 191 }, { "name": "Sierra Leone ", "inBlacklist": false, "order": 999, "id": 192 }, { "name": "Singapore", "inBlacklist": false, "order": 999, "id": 193 }, { "name": "Slovakia", "inBlacklist": false, "order": 999, "id": 194 }, { "name": "Slovenia", "inBlacklist": false, "order": 999, "id": 195 }, { "name": "Solomon Islands ", "inBlacklist": false, "order": 999, "id": 196 }, { "name": "Somalia", "inBlacklist": false, "order": 999, "id": 197 }, { "name": "South Africa ", "inBlacklist": false, "order": 999, "id": 198 }, { "name": "Spain", "inBlacklist": false, "order": 4, "id": 199 }, { "name": "Sri Lanka", "inBlacklist": false, "order": 999, "id": 200 }, { "name": "St Barthelemy ", "inBlacklist": false, "order": 999, "id": 201 }, { "name": "St Eustatius ", "inBlacklist": false, "order": 999, "id": 202 }, { "name": "St Helena", "inBlacklist": false, "order": 999, "id": 203 }, { "name": "St Kitts - Nevis ", "inBlacklist": false, "order": 999, "id": 204 }, { "name": "St Lucia", "inBlacklist": false, "order": 999, "id": 205 }, { "name": "St Maarten ", "inBlacklist": false, "order": 999, "id": 206 }, { "name": "St Pierre & Miquelon ", "inBlacklist": false, "order": 999, "id": 207 }, { "name": "St Vincent & Grenadines ", "inBlacklist": false, "order": 999, "id": 208 }, { "name": "Sudan", "inBlacklist": true, "order": 999, "id": 209 }, { "name": "Suriname", "inBlacklist": false, "order": 999, "id": 210 }, { "name": "Swaziland", "inBlacklist": false, "order": 999, "id": 211 }, { "name": "Sweden", "inBlacklist": false, "order": 999, "id": 212 }, { "name": "Switzerland", "inBlacklist": false, "order": 999, "id": 213 }, { "name": "Syria", "inBlacklist": true, "order": 999, "id": 214 }, { "name": "Tahiti", "inBlacklist": false, "order": 999, "id": 215 }, { "name": "Taiwan", "inBlacklist": false, "order": 999, "id": 216 }, { "name": "Tajikistan", "inBlacklist": false, "order": 999, "id": 217 }, { "name": "Tanzania", "inBlacklist": false, "order": 999, "id": 218 }, { "name": "Thailand", "inBlacklist": false, "order": 999, "id": 219 }, { "name": "Togo", "inBlacklist": false, "order": 999, "id": 220 }, { "name": "Tokelau", "inBlacklist": false, "order": 999, "id": 221 }, { "name": "Tonga", "inBlacklist": false, "order": 999, "id": 222 }, { "name": "Trinidad & Tobago ", "inBlacklist": false, "order": 999, "id": 223 }, { "name": "Tunisia", "inBlacklist": false, "order": 999, "id": 224 }, { "name": "Turkey", "inBlacklist": false, "order": 999, "id": 225 }, { "name": "Turkmenistan", "inBlacklist": false, "order": 999, "id": 226 }, { "name": "Turks & Caicos Is ", "inBlacklist": false, "order": 999, "id": 227 }, { "name": "Tuvalu", "inBlacklist": false, "order": 999, "id": 228 }, { "name": "UK", "inBlacklist": false, "order": 999, "id": 229 }, { "name": "Uganda", "inBlacklist": true, "order": 999, "id": 230 }, { "name": "Ukraine", "inBlacklist": false, "order": 999, "id": 231 }, { "name": "United Arab Emirates ", "inBlacklist": false, "order": 999, "id": 232 }, { "name": "United States of America ", "inBlacklist": true, "order": 999, "id": 233 }, { "name": "Uruguay", "inBlacklist": false, "order": 999, "id": 234 }, { "name": "Uzbekistan", "inBlacklist": false, "order": 999, "id": 235 }, { "name": "Vanuatu", "inBlacklist": true, "order": 999, "id": 236 }, { "name": "Vatican City State ", " inBlacklist ":false, "order": 999, "id": 237 }, { "name": "Venezuela", "inBlacklist": false, "order": 999, "id": 238 }, { "name": "Vietnam", "inBlacklist": false, "order": 999, "id": 239 }, { "name": "Virgin Islands(Brit) ", "inBlacklist": false, "order": 999, "id": 240 }, { "name": "Virgin Islands(USA) ", "inBlacklist": true, "order": 999, "id": 241 }, { "name": "Wake Island ", "inBlacklist": false, "order": 999, "id": 242 }, { "name": "Wallis & Futana Is ", "inBlacklist": false, "order": 999, "id": 243 }, { "name": "Yemen", "inBlacklist": true, "order": 999, "id": 244 }, { "name": "Zaire", "inBlacklist": false, "order": 999, "id": 245 }, { "name": "Zambia", "inBlacklist": false, "order": 999, "id": 246 }, { "name": "Zimbabwe", "inBlacklist": false, "order": 999, "id": 247 } ] }
    Parameters
    - 

    Merchant

    For using the processing API in Your service, You need:

    1. Enable the processing service on page Settings in subpage Online shop setup.
    2. Fill all required fields.
    3. Copy the secret key.
    4. After that U can use the processing service, for this You need to send the user to the address GET https://hashbon.com/api/processing, with params:
      shopId - unique identificator of the shop, it is published when You create a shop and You can find it on page Settings in subpage Online shop setup
      shopInvoiceId - order identificator from Your shop
      sum - sum of order
      currency - currency of order (USD, EUR etc.)
      settelmentCurrency - currency that will be credited to your account (EUR by default)
      callbackValue - any string. Will be returned as a parameter after successful payment, should be used by the shop for an uniquely identification of payment
      title - title of goods (order)
      description - description of goods (order)
      signature - is the signature of the request, calculated as sha256(secretKey.shopId.shopInvoiceId.sum.currency.callbackValue.title.description.defaultPayCurrency).
    5. After that, the user will see the form of payment.

    After successful payment or late payment, the user will be redirected to the address specified in the settings of the shop with the following parameters:
    shopId - unique identificator of the shop
    shopInvoiceId - order identificator from Your shop
    callbackValue - a similar value from the payment request form
    signature - is the signature of the request sha256(secretKey.shopId.shopInvoiceId.callbackValue)

    When the user pays the form, the URL is specified as Payment result request will be sent by method POST, with params:
    shopId - unique identificator of the shop
    shopInvoiceId - order identificator from Your shop
    result - payment processing result expired - overdue, success - payment is completed, money is credited to the shop account and cancel in the case of canceling the payment by the user
    orderTime - Unix time of moment, when we received a request for payment
    requestTime - Unix time time of sending a notification
    invoiceId - unique identifier of payment in processing service
    callbackValue - a similar value from the payment request form
    orderSum - sum of order
    signature - is the signature of the request, calculated as sha256(secretKey.shopId.shopInvoiceId.result.orderTime.requestTime.invoiceId.callbackValue.orderSum)

    In response to this request, the shop must provide a reply with format JSON, with params:
    status - success if all is ok, error if has any error
    message - message text
    signature - signaruew, calculated as sha256(secretKey.status.message)

    If the shop notification failed, you can request the current payment status by sending a request GET https://hashbon.com/api/processing/check-invoice-status, with params:
    shopId - unique identificator of the shop
    shopInvoiceId - order identificator from Your shop
    sum - sum of order
    currency - currency of order (USD, EUR etc.)
    callbackValue - any string. Will be returned as a parameter after successful payment, should be used by the shop for an uniquely identification of payment
    title - title of goods (order)
    description - description of goods (order)
    signature - is the signature of the request, calculated as sha256(secretKey.shopId.shopInvoiceId.sum.currency.callbackValue.title.description.defaultPayCurrency).

    Answer will have format JSON with params:
    type - type of answer (success, error, not found)
    invoce - invoice data
    signature - signature of the request sha256(secretKey.invoce.signature).

    Invoce data to be transferred upon request:
    id - unique identificator of invoice in processing service
    createdAt - unix time of creating invoice
    shopId - identificator of the shop
    status - current status
    shopInvoiceId - order identificator from Your shop
    orderSum - sum of order
    orderCurrency - currency of order
    btcAmount - sum of order in bitcoins
    btcReceived - received sum in bitcoins
    confirmationCount - the minimum number of confirmations on payments received
    callbackValue - a similar value from the payment request form
    title - name of goods (order)
    description - description of goods (order) (not required)
    paidAt - the arrival unix time of payment
    shopNotificationTime - the unix time of the last attempt to notify the shop
    endTime - payment processing completion unix time
    payFormId - unique identificator of payment form
    notificationStatus - shop notification result
    notificationCounter - how many attempts to notify the shop
    transfered - flag of the fact that the money is credited to the personal account of the shop in processing service
    paymentWaitTime - how many seconds are left before the expiry of the payment term. If the timer is not active, the value will be "-1"

    Available invoce statuses:
    0 - The timeout period has expired. Go back to the shop and try again.
    1 - Waiting for payment.
    2 - Payment received, waiting for confirmation.
    4 - The invoice is paid, waiting for confirmation from the shop.
    5 - The bill is paid.
    6 - The transaction confirmation timed out. Contact Support.
    7 - Payment received, received 1 confirmation.
    8 - The waiting time for the required number of confirmations has expired.
    9 - Payment was canceled by the user.

    Shop information statuses:
    -4 - Any other notification problem.
    -3 - Could not be notified within the allotted time.
    -2 - The problem with checking the hash on the side of the shop.
    -1 - The shop did not receive the correct approval.
    0 - Notification at this stage is not required.
    1 - Add to queue for notification.
    2 - Notification successful

    You can also use simplified processing, it does not have shop settings and, as a consequence, is easier to use. For its operation, it is only necessary to forward the user to address GET https://hashbon.com/api/processing/simple with params:
    user - the phone number of the user to whom the funds are to be credited
    amount - the amount that must be credited to the user
    currency - currency of order (USD, EUR etc.)
    settelmentCurrency - currency that will be credited to your account (EUR by default)