Statements
Operations related to statements
All endpoints require a JWT Bearer token in the Authorization header; most also require an API key in the X-API-KEY header.
GET /v1/statements/{id}
Get a specific statement by ID
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path |
| Yes | The _id field |
| query |
| No | Choose specific fields to include in the response (comma-separated). If provided, excludeFields will be ignored. |
| query |
| No | Exclude specific fields from the response (comma-separated). |
| query |
| No | Include related data in query results using a JSON object. |
Responses
Status | Description |
|---|---|
| Statement details retrieved successfully |
GET /v1/statements
Get a list of statements with pagination
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| query |
| Yes | Maximum number of records to return. Starts from 1 to 1000. |
| query |
| Yes | Page number to retrieve, starting from 0. |
| query |
| No | Choose specific fields to include in the response (comma-separated). If provided, excludeFields will be ignored. |
| query |
| No | Exclude specific fields from the response (comma-separated). |
| query |
| No | JSON object representing filter criteria in MongoDB Query Language (MQL) format. |
| query |
| No | JSON object representing sort criteria in MongoDB Query Language (MQL) format. |
| query |
| No | Include related data in query results using a JSON object. |
Responses
Status | Description |
|---|---|
| Successfully retrieved a paginated list of statements. |
The following endpoint is served from https://payments.valpay.com.
PATCH /v1/statements/{id}
Update a statement record by _id
Parameters
Name | In | Type | Required | Description |
|---|---|---|---|---|
| path |
| Yes | MongoDB _id |
Request body (required)
Field | Type | Required | Description |
|---|---|---|---|
|
| No | Type of payment One of: |
|
| No | Whether the fees have been paid |
Responses
Status | Description |
|---|---|
| Statement updated successfully |
Response schema (2xx)
Field | Type | Required | Description |
|---|---|---|---|
|
| No | |
|
| No | Success message |
Examples
GET /v1/statements
Response 200 (illustrative):
PATCH /v1/statements/{id}
Response 200: the updated statement record.