Get Rewards Report

Download a detailed statement of reward activities for a selected period, including earnings, redemptions, and conversions.

Get Rewards Report

This endpoint enables business customers to download a detailed statement of their reward activities for a selected period. The statement includes reward points earned, redeemed, and exchanged for cash or other benefits. Customers can use this report to track and manage their rewards across a defined date range.

Endpoint

GET /api/UsersReward/v2/report

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 a business customer needs a downloadable summary of their reward activity over a specific period. This is useful for reconciliation, auditing reward balances, or providing customers with a record of how points were earned and spent. The response contains file content that can be rendered or saved as a report document.

Query Parameters

ParameterTypeRequiredDescription
reportPeriodIdinteger (int32)NoIdentifier for the reporting period to retrieve the rewards statement for. Omit to retrieve the most recent available period.

Response

200 OK

FieldTypeDescription
namestring (nullable)The filename of the generated report.
contentstring (nullable)The file content of the rewards report, typically base64-encoded or as a text payload.
contentTypestring (nullable)The MIME type of the report content (e.g., application/pdf, text/csv).
{
  "name": "rewards-report-2024-q1.pdf",
  "content": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago...",
  "contentType": "application/pdf"
}

Error Codes

CodeWhen it happens
400Invalid or malformed reportPeriodId value provided
401Token missing, expired, or invalid
403Insufficient permissions or caller is not a business customer
404No rewards report found for the specified period
500Internal server error

Common Mistakes

  • Passing a reportPeriodId that does not exist or belongs to a different customer will result in a 404 response.
  • Rewards reports are only available for business customers; personal customer tokens will receive a 403 error.
  • The content field may be base64-encoded depending on the contentType; ensure your client decodes it appropriately before rendering or saving.

Related Endpoints

  • GET /api/UsersReward/v2/balance — Retrieve the current rewards balance for the authenticated customer
  • GET /api/UsersReward/v2/transactions — List individual reward transaction history
  • POST /api/UsersReward/v2/redeem — Redeem reward points to a financial account

Example

curl -X GET "https://api.banking.netevia.dev/api/UsersReward/v2/report?reportPeriodId=3" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json"
Query Params
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