Monicredit Api
  • 😊Hello
  • How to use this documentation
  • Demo vs Live Environment
  • Authentication
    • Login
  • OnBoarding
    • OnBoard New Merchant
  • Collection
    • Getting Started
    • Accept Payment (Inline)
    • Accept Payment (Standard)
    • Verify Payment
    • Virtual Accounts
    • Revenue Head
    • Settlement Bank
  • Transactions
    • Get Transactions
    • Get Initiated Transaction Info
    • Verify Transaction
    • Verify Payment
    • Transaction Virtual Account
    • Settlement Transactions
    • Initiate Transaction
  • Commercial
    • Calculate Commercials
  • Settlement Bank
    • Create Settlement Bank
    • List Settlement Banks
    • Update Settlement Bank
  • Revenue Heads
    • Create Revenue Head
    • Update Revenue Head
    • List Revenue Heads
    • Get Single Revenue Head
    • Search Revenue Head
    • Delete Revenue Head
  • Reports
    • Settlement Bank Report
    • Revenue Head Report
    • Merchant Report
  • Settlement
    • Get Settlements
    • Get Single Settlement
  • Wallets
    • Create Wallet
    • Update Wallet
    • Get Wallet Transactions
    • Get Single Customer Wallet
    • Get Account Wallets
    • Get All Wallets
    • Create Virtual Account
  • Customer Wallet
    • Create Customer Wallet
    • Get Customer Wallets
    • Create Customer Virtual Account
    • Update Customer Wallet
  • Beneficiary
    • Add Beneficiary
    • Update Beneficiary
    • Search Beneficiary
  • Disbursement
    • Single Fund Transfer
    • Transaction Settlement
    • Bank List
    • Name Enquiry
Powered by GitBook
On this page
  1. Reports

Revenue Head Report

The Revenue Head Report enables you to retrieve detailed information about your revenue sources. By accessing this report through our API, you gain transparency into the various revenue streams associated with your financial activities.

To access the Revenue Head Report, make a GET request to the following endpoint:

Endpoint: GET - {{baseUrl}}/v1/reports/revenue

Parameter
Required
Type

revenue_head_id

no

string

search

no

string

Request

Use the provided code snippet as a reference to make requests to the Revenue Head Report endpoint. Ensure that you replace "YOUR_BEARER_TOKEN" with the actual bearer token obtained through our authentication process.

//A code snippet of how to consume the API

var myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer YOUR_BEARER_TOKEN");

var raw = "";

var requestOptions = {
  method: 'GET',
  headers: myHeaders,
  body: raw,
  redirect: 'follow'
};

fetch("https://demo.backend.monicredit.com/api/v1/reports/revenue", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));
//A code snippet of how to consume the API

<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://demo.backend.monicredit.com/api/v1/reports/revenue',
  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(
    'Accept: application/json',
    'Authorization: Bearer YOUR_BEARER_TOKEN'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
//A code snippet of how to consume the API

curl --location '{{baseUrl}}/v1/reports/revenue' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_BEARER_TOKEN' \
--data ''

Response

[
    {
        "id": "REV_00000000",
        "revname": "Test Testing",
        "merchant_id": "MC00000000",
        "business_name": "Test Testing",
        "settlement_bank_id": "SBK_000000",
        "settlement_bank_name": "Autocredit Bank",
        "account_name": "Test Testing",
        "account_no": "00000000",
        "total_transaction_count": 85,
        "settlement_count": 75,
        "transfer_count": 85,
        "card_count": 0,
        "transfer_total": 425000,
        "card_total": 0,
        "collection": 425000,
        "settlement": 375000,
        "balance": 50000
    },
]
PreviousSettlement Bank ReportNextMerchant Report

Last updated 3 months ago