Settlements

This section details all necessary APIs needed for managing your settlements.

Get all Settlements

This section describes how to query all settlements made to an account.

get https://api.flutterwave.com/v3/settlements

Query Params

Show optional parameters

Headers

Authorization string

Pass your secret key as a bearer token in the request header to authorize this call

var request = require('request');
var options = {
  'method': 'GET',
  'url': '{{BASE_API_URL}}/settlements',
  'headers': {
    'Authorization': 'Bearer FLWSECK_TEST-SANDBOXDEMOKEY-X'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "{{BASE_API_URL}}/settlements",
  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(
    "Authorization: Bearer FLWSECK_TEST-SANDBOXDEMOKEY-X"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
require "uri"
require "net/http"

url = URI("{{BASE_API_URL}}/settlements")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer FLWSECK_TEST-SANDBOXDEMOKEY-X"

response = http.request(request)
puts response.read_body
{
    "status": "success",
    "message": "Settlements fetched",
    "meta": {
        "page_info": {
            "total": 80,
            "current_page": 1,
            "total_pages": 4,
            "page_size": 20
        }
    },
    "data": [
        {
            "id": 5032128,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-07-09T01:00:00.000Z",
            "due_date": "2024-07-10T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 202.8,
            "app_fee": 2.8,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 200,
            "transaction_count": 2,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-07-10T01:20:14.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4976227,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-06-24T01:00:00.000Z",
            "due_date": "2024-06-25T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 304.2,
            "app_fee": 4.2,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 300,
            "transaction_count": 2,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2024-06-25T01:09:28.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4929297,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-06-11T01:00:00.000Z",
            "due_date": "2024-06-16T01:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": false,
            "currency": "GBP",
            "gross_amount": 1.04,
            "app_fee": 0.04,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 1,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-06-12T01:21:10.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4929298,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-06-11T01:00:00.000Z",
            "due_date": "2024-06-12T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 202.8,
            "app_fee": 2.8,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 200,
            "transaction_count": 2,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-06-12T01:21:10.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4877552,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-05-28T01:00:00.000Z",
            "due_date": "2024-05-29T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 405.6,
            "app_fee": 5.6,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 400,
            "transaction_count": 4,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2024-05-29T01:24:55.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4863037,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-05-24T01:00:00.000Z",
            "due_date": "2024-05-25T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 101.4,
            "app_fee": 1.4,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 100,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-05-25T01:29:26.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4859464,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-05-23T01:00:00.000Z",
            "due_date": "2024-05-24T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 101.4,
            "app_fee": 1.4,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 100,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-05-24T05:40:18.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4855538,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-05-22T01:00:00.000Z",
            "due_date": "2024-05-23T01:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "GBP",
            "gross_amount": 1.5,
            "app_fee": 0.52,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 0.98,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2024-05-23T01:21:46.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4855539,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-05-22T01:00:00.000Z",
            "due_date": "2024-05-23T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 202.8,
            "app_fee": 2.8,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 200,
            "transaction_count": 2,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-05-23T01:21:46.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4760015,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-04-26T01:00:00.000Z",
            "due_date": "2024-05-01T01:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": false,
            "currency": "USD",
            "gross_amount": 1.04,
            "app_fee": 0.04,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 1,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-04-27T01:13:44.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4756049,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-04-25T01:00:00.000Z",
            "due_date": "2024-04-26T01:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "XAF",
            "gross_amount": 22.75,
            "app_fee": 1.19,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 21.56,
            "transaction_count": 4,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2024-04-26T01:05:14.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4756048,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-04-25T01:00:00.000Z",
            "due_date": "2024-04-26T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 405.6,
            "app_fee": 5.6,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 400,
            "transaction_count": 4,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2024-04-26T01:05:14.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4748382,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2024-04-23T01:00:00.000Z",
            "due_date": "2024-04-24T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 111.54,
            "app_fee": 1.54,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 110,
            "transaction_count": 2,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "No settlement account",
            "source_bankcode": null,
            "created_at": "2024-04-24T01:02:52.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4272754,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-12-21T01:00:00.000Z",
            "due_date": "2023-12-22T00:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 200,
            "app_fee": 2.8,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 197.2,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2023-12-22T01:23:46.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4242187,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-12-12T01:00:00.000Z",
            "due_date": "2023-12-17T01:00:00.000Z",
            "processed_date": null,
            "status": "flagged",
            "is_local": false,
            "currency": "USD",
            "gross_amount": 2,
            "app_fee": 0.08,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 1.92,
            "transaction_count": 1,
            "processor_ref": null,
            "disburse_ref": null,
            "disburse_message": null,
            "channel": "web",
            "destination": "account",
            "fx_data": null,
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2023-12-13T01:23:11.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 4036421,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-10-12T01:00:00.000Z",
            "due_date": "2023-10-13T01:00:00.000Z",
            "processed_date": "2023-10-13T05:49:28.000Z",
            "status": "completed",
            "is_local": true,
            "currency": "XOF",
            "gross_amount": 5,
            "app_fee": 0.18,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 4.82,
            "transaction_count": 1,
            "processor_ref": "CC-SMT-28973167341",
            "disburse_ref": "CC-SMT-28973167341",
            "disburse_message": "Transfer was successful",
            "channel": "web",
            "destination": "wallet",
            "fx_data": "false",
            "flag_message": null,
            "source_bankcode": "044",
            "created_at": "2023-10-13T01:32:44.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 3959603,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-09-19T01:00:00.000Z",
            "due_date": "2023-09-20T00:00:00.000Z",
            "processed_date": "2023-09-20T07:14:49.000Z",
            "status": "completed",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 100,
            "app_fee": 1.4,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 98.6,
            "transaction_count": 1,
            "processor_ref": "CC-SMT-71198087382",
            "disburse_ref": "CC-SMT-71198087382",
            "disburse_message": "Transfer was successful",
            "channel": "web",
            "destination": "wallet",
            "fx_data": "false",
            "flag_message": null,
            "source_bankcode": null,
            "created_at": "2023-09-20T01:26:26.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 3943041,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-09-14T01:00:00.000Z",
            "due_date": "2023-09-15T00:00:00.000Z",
            "processed_date": "2023-09-15T07:14:08.000Z",
            "status": "completed",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 100,
            "app_fee": 1.4,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 98.6,
            "transaction_count": 1,
            "processor_ref": "CC-SMT-17913047330",
            "disburse_ref": "CC-SMT-17913047330",
            "disburse_message": "Transfer was successful",
            "channel": "web",
            "destination": "wallet",
            "fx_data": "false",
            "flag_message": null,
            "source_bankcode": null,
            "created_at": "2023-09-15T01:20:29.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 3939688,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-09-13T01:00:00.000Z",
            "due_date": "2023-09-14T00:00:00.000Z",
            "processed_date": "2023-09-14T07:14:25.000Z",
            "status": "completed",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 300,
            "app_fee": 4.2,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 295.8,
            "transaction_count": 3,
            "processor_ref": "CC-SMT-99109664790",
            "disburse_ref": "CC-SMT-99109664790",
            "disburse_message": "Transfer was successful",
            "channel": "web",
            "destination": "wallet",
            "fx_data": "false",
            "flag_message": "Settlement in Review",
            "source_bankcode": null,
            "created_at": "2023-09-14T01:27:42.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        },
        {
            "id": 3916335,
            "account_id": 35308,
            "merchant_name": "Flutterwave Developers",
            "merchant_email": "cornelius@flutterwavego.com",
            "settlement_account": null,
            "bank_code": null,
            "transaction_date": "2023-09-06T01:00:00.000Z",
            "due_date": "2023-09-07T00:00:00.000Z",
            "processed_date": "2023-09-07T07:14:00.000Z",
            "status": "completed",
            "is_local": true,
            "currency": "NGN",
            "gross_amount": 20,
            "app_fee": 0.28,
            "merchant_fee": 0,
            "chargeback": 0,
            "refund": 0,
            "stampduty_charge": 0,
            "net_amount": 19.72,
            "transaction_count": 1,
            "processor_ref": "CC-SMT-69902839408",
            "disburse_ref": "CC-SMT-69902839408",
            "disburse_message": "Transfer was successful",
            "channel": "web",
            "destination": "wallet",
            "fx_data": "false",
            "flag_message": null,
            "source_bankcode": null,
            "created_at": "2023-09-07T01:20:09.000Z",
            "meta": [],
            "refund_meta": [],
            "chargeback_meta": []
        }
    ]
}
{}

Get a Settlement

This section describes how to get details on a particular settlement specified by its ID.

get https://api.flutterwave.com/v3/settlements/:id

Path Params

id int32

This is a unique identifier for the particular settlement you want to fetch. It is returned in the call to list all settlements as data.id.

Query Params

Show optional parameters

Headers

Authorization string

Pass your secret key as a bearer token in the request header to authorize this call

var request = require('request');
var options = {
  'method': 'GET',
  'url': '{{BASE_API_URL}}/settlements/41497',
  'headers': {
    'Authorization': 'Bearer FLWSECK_TEST-SANDBOXDEMOKEY-X'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "{{BASE_API_URL}}/settlements/41497",
  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(
    "Authorization: Bearer FLWSECK_TEST-SANDBOXDEMOKEY-X"
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
require "uri"
require "net/http"

url = URI("{{BASE_API_URL}}/settlements/41497")

http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "Bearer FLWSECK_TEST-SANDBOXDEMOKEY-X"

response = http.request(request)
puts response.read_body
{
  "status": "success",
  "message": "Settlement fetched",
  "data": {
    "id": 41497,
    "account_id": 73362,
    "merchant_name": "Earth Gang",
    "merchant_email": "selma.m0ckaham@flutterwavego.com",
    "settlement_account": "0031318432",
    "bank_code": "063",
    "transaction_date": "2019-12-30T04:00:00.000Z",
    "due_date": "2019-12-30T04:00:00.000Z",
    "processed_date": null,
    "status": "completed",
    "is_local": 1,
    "currency": "NGN",
    "gross_amount": 50800,
    "app_fee": 950,
    "merchant_fee": 0,
    "chargeback": 0,
    "refund": 0,
    "stampduty_charge": 0,
    "net_amount": 49850,
    "transaction_count": 5,
    "processor_ref": null,
    "disburse_ref": "RV3E18675549F6A0",
    "disburse_message": null,
    "channel": "web",
    "destination": "autowallet",
    "fx_data": null,
    "flag_message": null,
    "meta": "[906256,906358,906301,906362,906319]",
    "refund_meta": null,
    "chargeback_meta": null,
    "source_bankcode": null,
    "created_at": "2019-12-31T01:30:00.000Z",
    "transactions": [
      {
        "customer_email": "h0vkard@flw.ext",
        "flw_ref": "FLW-MOCK-RECURR-42b3daee9f470127dacd19560533f3a6",
        "tx_ref": "Rave-Pages017117571060",
        "id": 984411,
        "charged_amount": 10140,
        "app_fee": 190,
        "merchant_fee": 0,
        "stampduty_charge": 0,
        "settlement_amount": 9950,
        "status": "successful",
        "payment_entity": "card",
        "transaction_date": "2019-12-30",
        "currency": "NGN",
        "card_locale": "LOCAL",
        "rrn": "N/A",
        "subaccount_settlement": 0
      },
      {
        "customer_email": "h0vkard@flw.ext",
        "flw_ref": "FLW-MOCK-RECURR-c536481525f02f76409892f517a16300",
        "tx_ref": "Rave-Pages017117571060",
        "id": 984456,
        "charged_amount": 10140,
        "app_fee": 190,
        "merchant_fee": 0,
        "stampduty_charge": 0,
        "settlement_amount": 9950,
        "status": "successful",
        "payment_entity": "card",
        "transaction_date": "2019-12-30",
        "currency": "NGN",
        "card_locale": "LOCAL",
        "rrn": "N/A",
        "subaccount_settlement": 0
      },
      {
        "customer_email": "h0vkard@flw.ext",
        "flw_ref": "FLW-MOCK-RECURR-d22d0ec0955047e9648bec46da40c987",
        "tx_ref": "Rave-Pages017117571060",
        "id": 984474,
        "charged_amount": 10190,
        "app_fee": 190,
        "merchant_fee": 0,
        "stampduty_charge": 0,
        "settlement_amount": 10000,
        "status": "successful",
        "payment_entity": "card",
        "transaction_date": "2019-12-30",
        "currency": "NGN",
        "card_locale": "LOCAL",
        "rrn": "N/A",
        "subaccount_settlement": 0
      },
      {
        "customer_email": "h0vkard@flw.ext",
        "flw_ref": "FLW-MOCK-RECURR-e55f863f14a95816e0939e7c4625ee43",
        "tx_ref": "Rave-Pages017117571060",
        "id": 984513,
        "charged_amount": 10190,
        "app_fee": 190,
        "merchant_fee": 0,
        "stampduty_charge": 0,
        "settlement_amount": 10000,
        "status": "successful",
        "payment_entity": "card",
        "transaction_date": "2019-12-30",
        "currency": "NGN",
        "card_locale": "LOCAL",
        "rrn": "N/A",
        "subaccount_settlement": 0
      },
      {
        "customer_email": "h0vkard@flw.ext",
        "flw_ref": "FLW-MOCK-RECURR-6100e5300876cef2270b2e31bc9cc16e",
        "tx_ref": "Rave-Pages017117571060",
        "id": 984517,
        "charged_amount": 10140,
        "app_fee": 190,
        "merchant_fee": 0,
        "stampduty_charge": 0,
        "settlement_amount": 9950,
        "status": "successful",
        "payment_entity": "card",
        "transaction_date": "2019-12-30",
        "currency": "NGN",
        "card_locale": "LOCAL",
        "rrn": "N/A",
        "subaccount_settlement": 0
      }
    ]
  }
}
{}
Loading...