Start

Use api_token for authentication.

You can send the data to us via POST.

You must create a HASH for each API request.

Bank List


                    # EXAMPLE USAGE OF BANK LISTING PROCESS
                    $url = 'https://api.justpays.co/api/banklist';

                    $method = 'bankList';
                    $api_token = 'Api TOKEN';
                    $amount = 500;
                

                    Returned Value:

                    [
                    {
                        "bank": "Ziraat Bankası",
                        "bankCode": "15010"
                    },
                    {
                        "bank": "Akbank",
                        "bankCode": "15011"
                    }
                    ]                
                

API address you will use to list banks:
https://api.justpays.co/api/banklist


Parameters to Use

Field Type Description
api_token String Your Api Token.
method String bankList
amount Number Investment Amount

Investment Usage


                    # EXAMPLE USAGE OF INVESTMENT PROCESS
                    $url = 'https://api.justpays.co/api/yatirim?api_token={your_api_token}';

                    $method = 'bankDeposit';
                    $transaction_id = 2022;
                    $user_id = 1144;
                    $name_surname = 'John Doe';
                    $tc_number = '1212121212';
                    $amount = 10;
                    $bank_code = '15010';
                    $tel_no = '05301230012';
                    $note = 'notes';
                    $secret_key = 'YOUR SECRET KEY';
                    $hash=md5($method. $transaction_id.$user_id'.$secret_key')

                

                    Returned Value:

                    [
                    {
                        "bank": "Ziraat Bankası",
                        "NameSurname": "Ahmet Mehmet",
                        "bankBranch": "0000",
                        "bankNo": "00000",
                        "bankIban": "TR000000000000000000000000"
                    }
                    ]                
                

API address you will use for investment:
https://api.justpays.co/api/yatirim?api_token={your_api_token}


Parameters to Use

Field Type Description
secret_key String Your SECRET KEY.
method String bankDeposit
transaction_id Number Transaction ID of customer side
user_id Number User ID of customer side
name_surname String Name Surname of your user
tc_number String TC number
amount Number Investment Amount
bankCode String BankCode returned from the Bank List
tel_no String User Phone Number
note String (Optional) Note coming from the customer side.
hash String md5($xpdata['method'] . $xpdata['transaction_id'] . $xpdata['user_id'] . $xpdata['secret_key'])

Withdrawal Usage


                    # EXAMPLE OF WITHDRAWAL PROCESS
                    $url = 'https://api.justpays.co/api/cekim?api_token={your_api_token}';

                    $method = 'bankWithdraw';
                    $transaction_id = 2022;
                    $user_id = 1144;
                    $name_surname = 'John Doe';
                    $bank_name = 'Ziraat Bankası';
                    $branch_code = '59005';
                    $account_number = '597840455';
                    $iban = 'TR990051506045781059201560';
                    $amount = 500;
                    $tc_number = '1212121212';
                    $note = 'notes';
                    $tel_no = '05055055000';

                    $secret_key = 'YOUR SECRET KEY';

                    $hash=md5($method . $transaction_id . $user_id . $secret_key)

                

                    Returned Value:

                    {"code":200,"message":"Success"}
                

The API address you will use for withdrawals:
https://api.justpays.co/api/cekim?api_token={your_api_token}


The Parameters You Will Use

Field Type Description
secret_key String Your SECRET KEY.
method String bankWithdraw
transaction_id Number Transaction ID of customer side
user_id Number User ID of customer side
name_surname String Name Surname of your user
bank_name String Name of the bank
branch_code String Branch code of the bank
account_number String Bank account number
iban String User IBAN number
amount Number Withdrawal amount
tc_number String User TC number
tel_no String User phone number
note String (Optional) Note from the customer.
hash String md5($method.$transaction_id.$user_id.$secret_key)

Errors

Possible Errors You May Encounter:


                    Error Returned Values :

                    {"code":403,"message":"Unauthorized Access!"}
                    {"code":406,"message":"Incorrect Submission"}
                    {"code":409,"message":"Incorrect Submission"}
                    {"code":400,"message":"System Error"}
                    {"code":906,"message":"Incorrect Operation!"}
                    {"code":999,"message":"System Closed!"}
                
Error Code Description
403 One of your API Key or Secret Keys is wrong.
406 There is a missing or empty value in the submitted request (except for note).
409 The Hash Code is incorrect.
400 System error.
906 Incorrect operation.
999 System is closed.