P2P Transfer

get
β€Ž
https://<domain>/<api prefix>/<version>/user/p2p/transfer/

Node
var request = require('request');
var options = {
'method': 'GET',
'url': 'https://<domain>/<api prefix>/<version>/user/p2p/transfer/',
'headers': {
'apikey': '<apikey>',
'Authorization': 'Bearer <access token>',
},
formData: {}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
​
PHP
<?php
​
$curl = curl_init();
​
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://<domain>/<api prefix>/<version>/user/p2p/transfer/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'apikey: <apikey>',
'Authorization: Bearer <access token>',
),
));
​
$response = curl_exec($curl);
​
curl_close($curl);
echo $response;

Status Code
Error Type
FIeld
Description
401
Request Failed
​
P2P transactions are disabled, Please contact your administrator.
400
Validation Error
wallet
P2P transactions are disabled for this wallet, Please contact your administrator or invalid wallet.
400
Validation Error
reciever
This field is required.
Reciever not found.
Self transfer not allowed.

post
β€Ž
https://<domain>/<api prefix>/<version>/user/p2p/transfer/

Node
var request = require('request');
var options = {
'method': 'POST',
'url': 'https://<domain>/<api prefix>/<version>/user/p2p/transfer/',
'headers': {
'apikey': '<apikey>',
'Authorization': 'Bearer <access token>',
},
formData: {
'wallet': '<wallet_key>',
'transfer_amount': '<amount>',
'reciever': '<reciever_username>',
'form_key': '<form_key>',
'token_checksum_field': '<token_checksum>',
'token_field': '<token>'
}
};
request(options, function (error, response) {
if (error) throw new Error(error);
console.log(response.body);
});
PHP
<?php
​
$curl = curl_init();
​
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://<domain>/<api prefix>/<version>/user/p2p/transfer/',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => array('wallet' => '<wallet_key>','transfer_amount' => '<amount>','reciever' => '<reciever_username>','form_key' => '<form_key>','token_checksum_field' => '<token_cheksum>','token_field' => '<token>'),
CURLOPT_HTTPHEADER => array(
'apikey: <apikey>',
'Authorization: Bearer <access token>'
),
));
​
$response = curl_exec($curl);
​
curl_close($curl);
echo $response;

Status Code
Error Type
FIeld
Description
400
Validation Error
wallet
This field is required.
This field may not be blank.
P2P transactions are disabled for this wallet, Please contact your administrator or invalid wallet.
400
Validation Error
transfer_amount
This field is required.
This field may not be blank.
Minimum transaction amount is <min_amount>.
Transaction Limit is <max_amount>.
Ensure this field has no more than 7 characters.
Only integers are allowed.
Entered amount is greater than wallet balance.
Invalid amount.
400
Validation Error
reciever
This field is required.
This field may not be blank.
Reciever user not found.
Self transfer not allowed.
400
Validation Error
form_key
This field is required.
This field may not be blank.
You have another form running, Please reload.
400
Validation Error
token_checksum_field
This field is required.
This field may not be blank.
400
Validation Error
token_field
This field is required.
This field may not be blank.
Token is not matching.
Only numeric characters are allowed.
401
Request Failed
​
P2P transactions are disabled, Please contact your administrator.
Copy link
On this page
Get Transfer Data
get
P2P Transfer
post