Generates a report detailing payroll status and employee counts for employers within the banking system.
Employers Report
This endpoint generates a comprehensive report of employers registered in the Netevia Banking system. It returns payroll status and employee count data for each employer, optionally filtered by agent associations and scoped to a specific time period. The endpoint supports pagination via take and skip parameters, making it suitable for both summary views and large-scale data exports.
Endpoint
POST /Report/employers
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 to audit or analyze employer relationships managed through the platform, particularly to monitor payroll enrollment status and workforce headcount trends. It is useful for partners managing Earned Wage Access (EWA) programs who need to track employer eligibility and employee participation across reporting periods. Filtering by agentIds allows partner agents to retrieve data scoped to their own employer portfolios.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| period | string (date-time) | null | No | The date-time for which the report is generated (ISO 8601). If null, a default period is used. |
| take | integer (int32) | null | No | Maximum number of employer records to return. If null, all matching records are returned. |
| skip | integer (int32) | null | No | Number of records to skip before retrieving results. Used for pagination. Defaults to 0. |
| agentIds | array of integer (int32) | null | No | List of agent IDs to filter results. Only employers associated with these agents are included. If null, all employers are returned. |
{
"period": "2024-10-09T14:53:38.154Z",
"take": 50,
"skip": 0,
"agentIds": [101, 102, 103]
}Response
200 OK
Returns an array of employer report objects.
| Field | Type | Description |
|---|---|---|
| profileId | integer (int32) | Unique identifier for the employer's profile. |
| name | string | null | The name of the employer. |
| isPayroll | boolean | Indicates whether the employer has a payroll setup configured. |
| employeesAtPeriod | integer (int32) | Number of employees registered with the employer during the specified period. |
| employeesTotal | integer (int32) | Total number of employees registered with the employer across all time. |
| employeesAtEndOfPeriod | integer (int32) | Number of employees registered with the employer at the end of the specified period. |
[
{
"profileId": 4821,
"name": "Acme Logistics Inc.",
"isPayroll": true,
"employeesAtPeriod": 312,
"employeesTotal": 340,
"employeesAtEndOfPeriod": 318
},
{
"profileId": 4830,
"name": "Summit Retail Group",
"isPayroll": false,
"employeesAtPeriod": 87,
"employeesTotal": 95,
"employeesAtEndOfPeriod": 90
}
]Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields or validation error (e.g., malformed date-time format) |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions to access employer report data |
| 404 | No employer records found matching the provided filters |
| 500 | Internal server error |
Common Mistakes
- Providing
periodin a non-ISO 8601 format (e.g.,"10/09/2024"instead of"2024-10-09T14:53:38.154Z") will result in a 400 error. - Omitting both
takeandskipwhen querying large datasets may return an unexpectedly large payload; use pagination parameters for production workloads. - Passing an empty array
[]foragentIdsmay return no results; passnullinstead if you intend to retrieve all employers regardless of agent association. - Assuming
employeesAtPeriodandemployeesAtEndOfPeriodwill always be equal — they differ when employee registrations changed during the period.
Related Endpoints
POST /Report/employees— Generates a report of individual employees within the systemPOST /Report/transactions— Retrieves transaction-level reporting dataPOST /api/auth/v2— Obtain a Bearer token for authenticationPOST /api/auth/refresh— Refresh an existing Bearer token
Example
curl -X POST https://api.banking.netevia.dev/Report/employers \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"period": "2024-10-09T14:53:38.154Z",
"take": 50,
"skip": 0,
"agentIds": [101, 102, 103]
}'