Display Spend Report Data by Customer

Generates a detailed spend report for customers based on filters such as date, profile type, agent, and application status.

Display Spend Report Data by Customer

This endpoint generates a detailed spend report for customers based on the provided filters. It returns comprehensive financial data including spending activity, refunds, ATM transactions, ACH transfers, internal transfers, and account balances, along with customer profile details. The report is date-based, allowing partners to track financial activities for a specific period.

Endpoint

POST /Report/spendReport

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 when you need a consolidated view of customer spending activity for a given reporting period. It is suitable for financial analysis, compliance reporting, and account management — for example, to review all customers with outstanding balances, filter by agent or ISO, or identify customers by application status. Partners and agents can narrow results by supplying specific profile IDs, agent IDs, or ISO IDs to scope the report to their relevant portfolio.

Request Body

FieldTypeRequiredDescription
reportDatestring (date-time)YesThe date for which the report should be generated (ISO 8601 format).
agentsIdarray of integer (int32)NoList of agent IDs to filter the report by specific agents.
isoIdinteger (int32)NoISO ID for filtering data by a specific ISO.
profileIdsarray of integer (int32)NoList of profile IDs to retrieve data for specific customer profiles.
havePointsbooleanNoWhen true, includes only customers who have reward points.
profileTypeinteger (int32)NoType of profile to query. Enum values: 1, 2, 3, 4, 5 (e.g., personal, business, and subtypes).
applicationStatusstringNoFilter customers by application status. Allowed values: New, Submitted, PendingUW, ApprovedUW, Closed, Cancelled, Pending_Review, Denied, Approved, Pending, InReview, AutoApprovedUW.
{
  "reportDate": "2024-10-01T00:00:00.000Z",
  "agentsId": [101, 102],
  "isoId": 55,
  "profileIds": [2001, 2002, 2003],
  "havePoints": false,
  "profileType": 2,
  "applicationStatus": "Approved"
}

Response

200 OK

Returns an array of spend report objects. Each object contains financial activity totals and customer profile information for the specified reporting period.

FieldTypeDescription
idinteger (int32)Unique report record ID.
userProfileIdinteger (int32)ID of the user profile associated with this report entry.
profileIdinteger (int32)ID of the customer profile.
periodstring (date-time)The reporting period this entry covers.
dayGenerationstring (date-time)Timestamp when the report entry was generated.
spendBalanceinteger (int64)Total spend balance for the customer during the period (in cents).
refundsinteger (int64)Total refund amount issued during the period (in cents).
atminteger (int64)Total ATM transaction amount during the period (in cents).
agentIdinteger (int32)ID of the agent associated with the customer. Nullable.
dbastringDoing Business As (DBA) name of the customer. Nullable.
legalNamestringLegal name of the customer or business. Nullable.
emailstringEmail address of the customer. Nullable.
firstNamestringFirst name of the customer. Nullable.
lastNamestringLast name of the customer. Nullable.
transferACHOutinteger (int64)Total ACH outbound transfer amount during the period (in cents).
transferACHIninteger (int64)Total ACH inbound transfer amount during the period (in cents).
transferInternalinteger (int64)Total internal transfer amount during the period (in cents).
merchantProfileIdinteger (int32)Merchant profile ID if applicable. Nullable.
stateinteger (int32)Numeric code representing the U.S. state associated with the profile (1–53).
accountsBalanceinteger (int64)Total balance across all associated financial accounts (in cents).
statusstringCurrent application or account status. Matches bankingapplicationstatus enum values.
[
  {
    "id": 8842,
    "userProfileId": 1045,
    "profileId": 2001,
    "period": "2024-10-01T00:00:00.000Z",
    "dayGeneration": "2024-10-09T10:37:34.308Z",
    "spendBalance": 358400,
    "refunds": 5000,
    "atm": 20000,
    "agentId": 101,
    "dba": "Acme Supplies Co.",
    "legalName": "Acme Supplies LLC",
    "email": "[email protected]",
    "firstName": "Jane",
    "lastName": "Smith",
    "transferACHOut": 100000,
    "transferACHIn": 250000,
    "transferInternal": 50000,
    "merchantProfileId": 3301,
    "state": 12,
    "accountsBalance": 1520000,
    "status": "Approved"
  }
]

Error Codes

CodeWhen it happens
400Missing required fields (e.g., reportDate not provided) or validation error on field values
401Token missing, expired, or invalid
403Insufficient permissions to access report data
404No data found for the specified filters
500Internal server error

Common Mistakes

  • Omitting the required reportDate field — this will result in a 400 error. Always provide a valid ISO 8601 date-time string.
  • Passing an invalid applicationStatus value not in the allowed enum list (e.g., using "Active" instead of "Approved"), which will cause a validation error.
  • Providing profileType as a string (e.g., "business") instead of its integer enum value (e.g., 2).
  • Expecting monetary values in dollars — all financial amounts (spendBalance, refunds, atm, transferACHOut, transferACHIn, transferInternal, accountsBalance) are returned in cents.

Related Endpoints

  • POST /api/auth/v2 — Obtain a Bearer token for authentication
  • POST /api/auth/refresh — Refresh an expiring Bearer token
  • GET /Profile/{profileId} — Retrieve details for a specific customer profile
  • GET /Report/transactionReport — Retrieve transaction-level report data for customers

Example

curl -X POST https://api.banking.netevia.dev/Report/spendReport \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reportDate": "2024-10-01T00:00:00.000Z",
    "agentsId": [101],
    "isoId": 55,
    "profileIds": [2001, 2002],
    "havePoints": false,
    "profileType": 2,
    "applicationStatus": "Approved"
  }'
Body Params
date-time
required
boolean
int32
enum
Allowed:
string
enum
agentsId
array of int32s | null
agentsId
int32 | null
profileIds
array of int32s | null
profileIds
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json

Generated from available request 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