List & Download Reports
How It Works
Step 1 — Get the list of all reports
Bearer Authentication scheme.
To use this authentication method indicate Authorization: Bearer <JWT> in the header.
Please replace the value of <JWT> with the JWT generated for that user.
Example
Authorization: Bearer eyJ0eX... (please note that for security reasons the JWT in this example is limited to 6 characters)
Page number for records.
1Example: 1Page size for returned records.
50Example: 50The ordering sequence of the selected records. If this parameter is not provided, descending order will be chosen.
| Value | Description |
|---|---|
| ASC | Ascending order |
| DESC | Descending order |
The ordering criteria of the selected records.
If this parameter not provided, the result will be ordered by createdOn.
| Value | Description |
|---|---|
| createdOn | Date & Time |
| modifiedOn | Date & Time |
| status | Report status |
| mimeType | Mime type |
| reportType | Report type |
| reportUid | Report identifier |
A filter query in RSQL format.
The returned reports are limited to those that can be retrieved by the user. Please note that if
reportEntityUid is not provided as a search criteria, only records will be returned for the current
reportEntityUid assigend to that user (and does not include descendants).
| Criteria | Description | Operator Used |
|---|---|---|
| createdOn | The date and time the report was created (Date & Time) | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
| modifiedOn | Date & Time | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
| status | Report status | ==,=in=,=out= |
| mimeType | Mime type | ==,=in=,=out= |
| reportType | Report type | ==,=in=,=out= |
| reportUid | Report identifier | ==,=regex=,=in=,=out= |
| reportEntityUid | Report entity UUID | ==,=in= |
| reportParameter.batchUUID | The unique identifier of the settlement batch this report is related to. Mapped to PDSP's transaction.context.paymentContext.batchUUID. |
==,=in= |
| reportParameter.settlementBatchFileNumber | The identifier of the settlement batch file this report is related to. Mapped to PDSP's transaction.settlementContext.settlementBatchFileNumber. |
==,=regex=,=in=,=out= |
| reportParameter.clearingEntityUid | Clearing entity UUID | ==,=in= |
| reportParameter.clearingAccountUid | clearingAccountUid | ==,=in= |
| reportParameter.clearingDate | clearingDate (Date & Time) | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
| reportParameter.clearingMerchantName | clearingMerchantName | ==,=regex=,=in=,=out= |
| reportParameter.clearingUid | clearingUid | ==,=in= |
| reportParameter.clearingBankAccount | clearingBankAccount | ==,=in= |
| reportParameter.bankingPartner | bankingPartner | ==,=regex=,=in=,=out= |
| reportParameter.clearingBankCode | clearingBankCode | ==,=regex=,=in=,=out= |
| reportParameter.clearingMerchantId | clearingMerchantId | ==,=regex=,=in=,=out= |
| reportParameter.clearingReference | clearingReference | ==,=regex=,=in=,=out= |
| reportParameter.generatedOn (deprecated) | generatedOn | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
| reportParameter.invoicePeriodFrom | invoicePeriodFrom | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
| reportParameter.invoicePeriodTo | invoicePeriodTo | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
| reportParameter.invoiceNumber | invoiceNumber | ==,=regex=,=in=,=out= |
| reportParameter.reportDescription | reportDescription | ==,=regex=,=in=,=out= |
| reportParameter.reportableDay | reportableDay | ==,=lt=,=le=,=gt=,=ge=,=in=,=out= |
RSQL Operators RSQL Query is composed of one or more expressions, combined to each other with following logical operators:
| Operator | Syntax |
|---|---|
| Logical AND | ; or & |
| Logical OR | , |
RSQL Comparators
| Comparator | Description |
|---|---|
| == | equal |
| != | not equal |
| =lt= | less than |
| =le= | less than and equal to |
| =gt= | greater than |
| =ge= | greater than and equal to |
| =regex= | pattern matching |
| =in= | multiple arguments search |
| =out= | exclude |
Examples
-
/reports?search=reportType=in=(MERCHANT_SETTLEMENT_REPORT,DAILY_TRANSACTION_REPORT);createdOn=gt=2020-09-20T00:00:00.000Z
-
/reports?search=reportEntityUid=in=(2cbc7ec7-49dd-4e70-be98-dd751cf8640b,0d7e19f7-94d5-49ad-890d-1ce636912fb7,a3ca2522-2810-4db1-b535-6e449c3cea6c)
-
/reports?search=reportParameter.clearingReference==12345
search results matching criteria
Total number of reports. The total number of reports matching the search criteria, which can be larger than the number of elements in the array "reports" (which is upper bound by the "pageSize" parameter from the query request).
Bad Request. Unable to interpret the request.
Unauthorized. Unable to authenticate client to allow request.
Forbidden. This Feature is not enabled. This feature has not been authorised for the client.
Not found. The requested resource does not exist.
Too many requests. Too many requests from the client hit the API.
Internal error. There was an error processing the request; try again later.
Service Unavailable. Unable process requests at this time, please try again later.
Service Unavailable. Unable process requests at this time, please try again later.
Pagination
RSQL Search Filter
Report Types
Report Status Values
Step 2 — Download specific report
Bearer Authentication scheme.
To use this authentication method indicate Authorization: Bearer <JWT> in the header.
Please replace the value of <JWT> with the JWT generated for that user.
Example
Authorization: Bearer eyJ0eX... (please note that for security reasons the JWT in this example is limited to 6 characters)
The unique identifier of that specific report.
04f5ea24-cc4f-11e8-a8d5-f2801f1b9fd1Search results matching the criteria.
Bad Request. Unable to interpret the request.
Unauthorized. Unable to authenticate client to allow request.
Forbidden. This Feature is not enabled. This feature has not been authorised for the client.
Not found. The requested resource does not exist.
Too many requests. Too many requests from the client hit the API.
Internal error. There was an error processing the request; try again later.
Service Unavailable. Unable process requests at this time, please try again later.
Service Unavailable. Unable process requests at this time, please try again later.
Deprecated Search Criteria
Was this helpful?
