Withdraw balance
curl --request POST \
--url https://staging-biz.coinprofile.co/v2/balance/withdraw \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-User: <api-key>' \
--header 'X-User-Version: <api-key>' \
--data '
{
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>",
"currency": "<string>",
"amount": "<string>",
"token": "<string>"
}
'import requests
url = "https://staging-biz.coinprofile.co/v2/balance/withdraw"
payload = {
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>",
"currency": "<string>",
"amount": "<string>",
"token": "<string>"
}
headers = {
"X-Api-User": "<api-key>",
"X-Api-Key": "<api-key>",
"X-User-Version": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-User': '<api-key>',
'X-Api-Key': '<api-key>',
'X-User-Version': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountNumber: '<string>',
accountName: '<string>',
bank: '<string>',
bankCode: '<string>',
currency: '<string>',
amount: '<string>',
token: '<string>'
})
};
fetch('https://staging-biz.coinprofile.co/v2/balance/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging-biz.coinprofile.co/v2/balance/withdraw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accountNumber' => '<string>',
'accountName' => '<string>',
'bank' => '<string>',
'bankCode' => '<string>',
'currency' => '<string>',
'amount' => '<string>',
'token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Api-User: <api-key>",
"X-User-Version: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-biz.coinprofile.co/v2/balance/withdraw"
payload := strings.NewReader("{\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": \"<string>\",\n \"token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-User", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-User-Version", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging-biz.coinprofile.co/v2/balance/withdraw")
.header("X-Api-User", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-User-Version", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": \"<string>\",\n \"token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-biz.coinprofile.co/v2/balance/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-User"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-User-Version"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": \"<string>\",\n \"token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}Payout
Withdraw balance
Withdraw funds from the user’s balance
POST
/
balance
/
withdraw
Withdraw balance
curl --request POST \
--url https://staging-biz.coinprofile.co/v2/balance/withdraw \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Api-User: <api-key>' \
--header 'X-User-Version: <api-key>' \
--data '
{
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>",
"currency": "<string>",
"amount": "<string>",
"token": "<string>"
}
'import requests
url = "https://staging-biz.coinprofile.co/v2/balance/withdraw"
payload = {
"accountNumber": "<string>",
"accountName": "<string>",
"bank": "<string>",
"bankCode": "<string>",
"currency": "<string>",
"amount": "<string>",
"token": "<string>"
}
headers = {
"X-Api-User": "<api-key>",
"X-Api-Key": "<api-key>",
"X-User-Version": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-Api-User': '<api-key>',
'X-Api-Key': '<api-key>',
'X-User-Version': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
accountNumber: '<string>',
accountName: '<string>',
bank: '<string>',
bankCode: '<string>',
currency: '<string>',
amount: '<string>',
token: '<string>'
})
};
fetch('https://staging-biz.coinprofile.co/v2/balance/withdraw', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging-biz.coinprofile.co/v2/balance/withdraw",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'accountNumber' => '<string>',
'accountName' => '<string>',
'bank' => '<string>',
'bankCode' => '<string>',
'currency' => '<string>',
'amount' => '<string>',
'token' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>",
"X-Api-User: <api-key>",
"X-User-Version: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://staging-biz.coinprofile.co/v2/balance/withdraw"
payload := strings.NewReader("{\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": \"<string>\",\n \"token\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-User", "<api-key>")
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-User-Version", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://staging-biz.coinprofile.co/v2/balance/withdraw")
.header("X-Api-User", "<api-key>")
.header("X-Api-Key", "<api-key>")
.header("X-User-Version", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": \"<string>\",\n \"token\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-biz.coinprofile.co/v2/balance/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-User"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
request["X-User-Version"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accountNumber\": \"<string>\",\n \"accountName\": \"<string>\",\n \"bank\": \"<string>\",\n \"bankCode\": \"<string>\",\n \"currency\": \"<string>\",\n \"amount\": \"<string>\",\n \"token\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {}
}Authorizations
Body
application/json
The account number of the user's bank account.
The account name. This is the name of the account holder.
The bank name. e.g. "Access Bank".
The bank code. e.g. "044".
The currency of the withdrawal.
The amount to be withdrawn.
The type of OTP to be used.
Available options:
otp, totp The token to be used for OTP.
Response
200 - application/json
successful operation
Was this page helpful?
⌘I