Merchant Report

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

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

Endpoint: GET - {{baseUrl}}/api/v1/public/reports/merchant-transactions

Parameter
Required
Type

private_key

yes

string

Request

Use the provided code snippet as a reference to make requests to the Merchant Report endpoint.

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

var raw = "";

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

fetch("https://demo.backend.monicredit.com/api/v1/public/reports/merchant-transactions", requestOptions)
  .then(response => response.text())
  .then(result => console.log(result))
  .catch(error => console.log('error', error));

Response

{
    "success": true,
    "message": "merchant report data fetched successfully",
    "data": [
        {
            "merchant_id": "MCxxxxxxx",
            "business_name": "xxxxx",
            "business_phone": "234xxxxxx",
            "business_email": "xxx@xx.ng",
            "total_transaction_count": 0,
            "settlement_count": 0,
            "transfer_count": 0,
            "card_count": 0,
            "transfer_total": 0,
            "card_total": 0,
            "collection": 0,
            "settlement": 0,
            "balance": 0
        }
    ]
}

Last updated