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

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));
//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/public/reports/merchant-transactions',
  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',
  ),
));

$response = curl_exec($curl);

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

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

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
        }
    ]
}
PreviousRevenue Head ReportNextGet Settlements

Last updated 3 months ago