Skip to main content
POST
/
wallets
/
ext
/
debit
/
fiat
Request Bank Account Withdrawal
curl --request POST \
  --url https://api.obiex.finance/v1/wallets/ext/debit/fiat \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "destination": {
    "accountNumber": "",
    "accountName": "",
    "bankName": "",
    "bankCode": ""
  },
  "amount": 1,
  "currency": "string",
  "narration": "string"
}
'
import requests

url = "https://api.obiex.finance/v1/wallets/ext/debit/fiat"

payload = {
"destination": {
"accountNumber": "",
"accountName": "",
"bankName": "",
"bankCode": ""
},
"amount": 1,
"currency": "string",
"narration": "string"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
destination: {accountNumber: '', accountName: '', bankName: '', bankCode: ''},
amount: 1,
currency: 'string',
narration: 'string'
})
};

fetch('https://api.obiex.finance/v1/wallets/ext/debit/fiat', 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://api.obiex.finance/v1/wallets/ext/debit/fiat",
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([
'destination' => [
'accountNumber' => '',
'accountName' => '',
'bankName' => '',
'bankCode' => ''
],
'amount' => 1,
'currency' => 'string',
'narration' => 'string'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://api.obiex.finance/v1/wallets/ext/debit/fiat"

payload := strings.NewReader("{\n \"destination\": {\n \"accountNumber\": \"\",\n \"accountName\": \"\",\n \"bankName\": \"\",\n \"bankCode\": \"\"\n },\n \"amount\": 1,\n \"currency\": \"string\",\n \"narration\": \"string\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("x-api-key", "<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://api.obiex.finance/v1/wallets/ext/debit/fiat")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination\": {\n \"accountNumber\": \"\",\n \"accountName\": \"\",\n \"bankName\": \"\",\n \"bankCode\": \"\"\n },\n \"amount\": 1,\n \"currency\": \"string\",\n \"narration\": \"string\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.obiex.finance/v1/wallets/ext/debit/fiat")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination\": {\n \"accountNumber\": \"\",\n \"accountName\": \"\",\n \"bankName\": \"\",\n \"bankCode\": \"\"\n },\n \"amount\": 1,\n \"currency\": \"string\",\n \"narration\": \"string\"\n}"

response = http.request(request)
puts response.read_body
{
  "message": "Ok",
  "data": {
    "id": "0edb705b-9392-49c7-ad16-76bea0f84faf",
    "createdAt": "2026-03-31T15:17:08.555Z",
    "updatedAt": "2026-03-31T15:17:08.555Z",
    "active": true,
    "reference": "bb976d10-d805-456a-9b3e-5a4ec4c9a026",
    "description": "External payout",
    "narration": "first withdrawal",
    "type": "DEBIT",
    "category": "WITHDRAWAL",
    "amount": 15000,
    "walletId": "638ded38-77db-4763-9106-c9923bf5151b",
    "payout": {
      "id": "4c55a831-7909-432a-8db4-5514ff9fac62",
      "createdAt": "2026-03-31T15:17:08.555Z",
      "updatedAt": "2026-03-31T15:17:08.555Z",
      "active": true,
      "transferReference": null,
      "externalReference": null,
      "status": "APPROVED",
      "dollarValue": 8.7,
      "fee": 50,
      "bitcoinValue": 0.00012964,
      "payoutAmount": 15000,
      "payoutCurrency": "NGNX",
      "bankAccount": {
        "id": "52669ecc-b842-4976-9e55-05697d7702d3",
        "createdAt": "2026-03-31T15:17:08.555Z",
        "updatedAt": "2026-03-31T15:17:08.555Z",
        "active": true,
        "accountNumber": "90xxxxxxxxx",
        "accountName": "Jane Doe",
        "bankName": "OPAY",
        "payoutId": "4c55a831-7909-432a-8db4-5514ff9fac62"
      },
      "transactionId": "0edb705b-9392-49c7-ad16-76bea0f84faf"
    }
  }
}

Authorizations

x-api-key
string
header
required

Headers

Body

application/json

The body is of type object.

Response

200 - application/json

Successful response

The response is of type object.