Count Clients with No Spending by Date

Returns a count of clients who made no spending transactions within a specified date range.

Count Clients with No Spending by Date

This endpoint counts the number of clients who did not make any spending transactions within a specified date range. Results can be filtered optionally by ISO ID or agent ID to narrow the scope to a specific sales organization or agent. The response separates counts into banking and merchant client categories.

Endpoint

GET /api/Widget/NonSpendingbyDate

Authentication

Bearer token required. Obtain via:

POST https://api.banking.netevia.dev/api/auth/v2

Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.

When to use

Use this endpoint to identify customer inactivity within a given time window. It is particularly useful for partners building re-engagement campaigns, monitoring dormant accounts, or generating business intelligence reports on spending behavior across their client base.

Query Parameters

ParameterTypeRequiredDescription
fromDatestring (date-time)NoThe start date of the non-spending period to query (ISO 8601 format).
toDatestring (date-time)NoThe end date of the non-spending period to query (ISO 8601 format).
isoIdinteger (int32)NoFilter results by ISO (Independent Sales Organization) ID.
agentIdinteger (int32)NoFilter results by agent ID.

Response

200 OK

FieldTypeDescription
bankingCountinteger (int32), nullableNumber of banking clients who had no spending transactions in the specified period.
merchantCountinteger (int32), nullableNumber of merchant clients who had no spending transactions in the specified period.
{
  "bankingCount": 142,
  "merchantCount": 37
}

Error Codes

CodeWhen it happens
400Invalid date format supplied for fromDate or toDate
401Token missing, expired, or invalid
403Insufficient permissions
404Resource not found
500Internal server error

Common Mistakes

  • Supplying dates in a non-ISO 8601 format (e.g., MM/DD/YYYY) instead of the expected date-time format (e.g., 2024-01-01T00:00:00Z).
  • Omitting both fromDate and toDate, which may return unexpected or unscoped results — always specify a date range for meaningful data.
  • Confusing isoId with an ISO country code; this field refers to the numeric ID of an Independent Sales Organization, not a country identifier.

Related Endpoints

  • GET /api/Widget/SpendingbyDate — Count clients who made spending transactions within a date range
  • GET /api/Widget/ActiveClients — Retrieve a count of active clients

Example

curl -X GET "https://api.banking.netevia.dev/api/Widget/NonSpendingbyDate?fromDate=2024-01-01T00%3A00%3A00Z&toDate=2024-01-31T23%3A59%3A59Z&isoId=101&agentId=55" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Query Params
date-time
date-time
int32
int32
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json