POST
/
core
/
MerchantAnalytics
/
GetConnectorSummaryCountMetrics
Get Connector Summary By Count
curl --request POST \
  --url https://api.onekhusa.com/sandbox/v1/core/MerchantAnalytics/GetConnectorSummaryCountMetrics \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Merchant-Account-Number: <x-merchant-account-number>' \
  --header 'X-Organisation-Id: <x-organisation-id>' \
  --data '{
  "merchantAccountNumber": 35253486,
  "summaryType": "D",
  "fromDate": "2024-01-01T00:00:00Z",
  "toDate": "2024-01-31T23:59:59Z"
}'
[
  {
    "connectorName": "National Bank of Malawi",
    "currencyCode": "MWK",
    "successfulTransactions": 150,
    "failedTransactions": 5,
    "totalTransactions": 155
  },
  {
    "connectorName": "FDH Bank Limited",
    "currencyCode": "MWK",
    "successfulTransactions": 89,
    "failedTransactions": 2,
    "totalTransactions": 91
  },
  {
    "connectorName": "Airtel Money",
    "currencyCode": "MWK",
    "successfulTransactions": 245,
    "failedTransactions": 8,
    "totalTransactions": 253
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <Token>, where <Token> is your access token.

Headers

X-Organisation-Id
string
required

The organization identifier

X-Merchant-Account-Number
string
required

The merchant account number

Accept-Language
string
default:en

Preferred language for the response

Body

application/json
merchantAccountNumber
integer
required

The merchant account number

Required range: 10000000 <= x <= 99999999
Example:

35253486

summaryType
string
required

The type of summary (e.g., "D" for Disbursement and "C" for Collections)

Example:

"D"

fromDate
string<date-time>
required

Start date for the metrics period (ISO 8601 format)

Example:

"2024-01-01T00:00:00Z"

toDate
string<date-time>
required

End date for the metrics period (ISO 8601 format)

Example:

"2024-01-31T23:59:59Z"

Response

200 - application/json

Success Response (200)

connectorName
string

The name of the payment connector

Example:

"National Bank of Malawi"

currencyCode
string

The currency code for the transactions

Example:

"MWK"

successfulTransactions
integer

Number of successful transactions

Example:

150

failedTransactions
integer

Number of failed transactions

Example:

5

totalTransactions
integer

Total number of transactions

Example:

155