Skip to main content

Retrieve multiple transaction metrics

GET /transactions/metrics

Description

Retrieve transaction metrics within a specified date range, allowing customization through various parameters.

Path Parameters

NameTypeDescriptionRequired
fromstring (query)Start date for the metrics period.Required
tostring (query)End date for the metrics period.Required
groupByListarray[string] (query)Group the metrics by specific criteria. Available values: TENANT, PAYMENT_METHOD, CUSTOMER, ACCOUNT, TYPE, STATUS, SOURCE, CURRENCY, CATEGORY, PAYMENT_CODE, TERMINAL, SUB_SOURCE, SUB_SOURCE_STATUS, PAYMENT, TRANSACTION, REFERENCE, REQUEST.Optional
metricsModestring (query)Metrics mode. Available values: BY_VOLUME.Optional
filterByStatusesarray[string] (query)Filter by transaction statuses. Available values: PENDING, APPROVED, REJECTED, REVERSED.Optional
filterBySourcesarray[string] (query)Filter by transaction sources. Available values: CORAL_PAY, AMETA, _9BSP.Optional
filterByPaymentMethodsarray[string] (query)Filter by payment methods. Available values: USSD, NQR, BANK, WALLET, CARD, PAYLINK, DEPOSIT_DEBIT, DEPOSIT_CREDIT.Optional
filterByTypesarray[string] (query)Filter by transaction types. Available values: CREDIT, DEBIT.Optional
filterByCategoriesarray[string] (query)Filter by transaction categories. Available values: Sales, Cash-in, Cash-out, Top-up, Bills, Transfer, Deposit, Withdraw, CHARGE.Optional
filterByTenantIdsarray[string] (query)Filter by tenant IDs.Optional
filterByCustomerIdsarray[string] (query)Filter by customer IDs.Optional
filterByAccountIdsarray[string] (query)Filter by account IDs.Optional
filterByCurrenciesarray[string] (query)Filter by currencies.Optional
filterByPaymentCodesarray[string] (query)Filter by payment codes.Optional
filterBySubSourcearray[string] (query)Filter by sub-sources.Optional
filterBySubSourceStatusesarray[string] (query)Filter by sub-source statuses.Optional
filterByPaymentIdsarray[string] (query)Filter by payment IDs.Optional
filterByTerminalIdsarray[string] (query)Filter by terminal IDs.Optional
filterByRequestIdsarray[string] (query)Filter by request IDs.Optional
countryCodestring (header)Country code.Required

StartFragment

Response Code: 200 - OK

Description

Transaction metric successful.

Response Field

FieldTypeDescription
statusbooleanIndicates the overall success of the operation.
statusCodeintegerRepresents the specific status code for the response.
messagestringProvides additional information about the response.
dataobjectContains the main data payload of the response.
errorsarrayAn array containing error details if issues occurred.
- messagestringDescribes the error.
- descriptiveMessagestringProvides a more detailed and descriptive message about the error.

Example

<response>
<status>true</status>
<statusCode>0</statusCode>
<message>string</message>
<data></data>
<errors>
<error>
<message>string</message>
<descriptiveMessage>string</descriptiveMessage>
</error>
</errors>
</response>

Method: GET

>http://20.87.230.105/platform/wallets/transactions/metrics

Headers

Content-TypeValue
apiKey{{apiKey}}

🔑 Authentication bearer

ParamvalueType
token{{accessCode}}string

LANGUAGE

AUTHORIZATION

Bearer

CURL REQUEST


curl --request GET \ 
--url /transactions/metrics \
--header 'accept: application/json' \
--header 'content-type: application/json'

RESPONSE


Click Try It! to start a request and see the response here!