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

ParameterRequiredType

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 eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2RlbW8ubW9uaWNyZWRpdC5jb20vYXBpL3YxL2NvcmUvYXV0aC9sb2dpbiIsImlhdCI6MTY2ODk2NzQ0MywiZXhwIjoxNjY4OTcxMDQzLCJuYmYiOjE2Njg5Njc0NDMsImp0aSI6ImF0UE9GVHE4cU4yN2lBWlciLCJzdWIiOiJVU0FETUlOIiwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyJ9.shrbQUV29vXRF30qMeBN3zxlc5JXd03QyMeD6ekzudU");

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));

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
    },
]

Last updated