Skip to main content

Reports

  GET https://api.letpay.io/myreports/report?size=30&reportName=ura

Retrieve the list of Reports

This endpoint is used to retrieve the list of reports available to the user.

Authorization

AUTHORIZATIONAPI Key
KeyX-Auth-Token
ValueMY_ACCESS_TOKEN

Example Request

Example Request

200 - OK
    curl --location -g 'https://api.letpay.io/myreports/report?reportName=ura&size=30' \
--header 'X-Auth-Token: MY_ACCESS_TOKEN' \
--params 'reportName=ura' \
--params 'size=30' \

Example Response

Header
  Content-Type: application/json
Body
    {
"content": [
{
"id": 212,
"name": "M1009",
"folder": "default",
"report_type": "MERCHANT",
"enable": true,
"offset": null,
"limit": 3000,
"fields": [
{
"field": {
"id": 118
},
"id": 202,
"position": 1,
"alias": "Base Asset Currency Code",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
},
{
"field": {
"id": 83
},
"id": 201,
"position": 2,
"alias": "Corporate Name",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
}
],
"filters": [
{
"field": {
"id": 120
},
"id": 121,
"position": 1,
"filter_operator": "=",
"value": "12369",
"logical_operator": "AND",
"dynamic_filter": false
}
],
"group_by": [
""
],
"order_by": [
{
"id": 100,
"position": 1,
"field_position": 1,
"direction": "ASC"
}
],
"report_type_name": "Merchant"
},
{
"id": 173,
"name": "Pi1135",
"folder": "Admin",
"report_type": "PAYIN",
"enable": true,
"offset": null,
"limit": null,
"fields": [
{
"field": {
"id": 1
},
"id": 45,
"position": 1,
"alias": "Payment Id",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
},
{
"field": {
"id": 2
},
"id": 44,
"position": 2,
"alias": "Amount d",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
},
{
"field": {
"id": 68
},
"id": 43,
"position": 3,
"alias": "Name",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
}
],
"filters": [
{
"field": {
"id": 5
},
"id": 46,
"position": 1,
"filter_operator": "<",
"value": "NOW",
"logical_operator": "AND",
"dynamic_filter": true
},
{
"field": {
"id": 5
},
"id": 47,
"position": 1,
"filter_operator": ">=",
"value": "CURRENT_MONTH",
"logical_operator": "AND",
"dynamic_filter": true
}
],
"group_by": [
""
],
"order_by": [
{
"id": 34,
"position": 1,
"field_position": 3,
"direction": "ASC"
}
],
"report_type_name": "Payin"
},
{
"id": 174,
"name": "Pi11Asset",
"folder": "default",
"report_type": "PAYIN",
"enable": true,
"offset": null,
"limit": null,
"fields": [
{
"field": {
"id": 2
},
"id": 46,
"position": 1,
"alias": "Amount",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
},
{
"field": {
"id": 204
},
"id": 47,
"position": 2,
"alias": "Currency Code",
"aggregation_operator": null,
"arithmetic_operator": null,
"wrap": null,
"open_parentheses": false,
"close_parentheses": false
}
],
"filters": [
{
"field": {
"id": 6
},
"id": 48,
"position": 1,
"filter_operator": ">=",
"value": "CURRENT_DAY",
"logical_operator": "AND",
"dynamic_filter": true
},
{
"field": {
"id": 6
},
"id": 49,
"position": 1,
"filter_operator": "<",
"value": "NOW",
"logical_operator": "AND",
"dynamic_filter": true
}
],
"group_by": [
""
],
"order_by": [
{
"id": 35,
"position": 1,
"field_position": 2,
"direction": "ASC"
}
],
"report_type_name": "Payin"
}
],
"pageable": {
"sort": {
"empty": true,
"sorted": false,
"unsorted": true
},
"offset": 0,
"pageSize": 3,
"pageNumber": 0,
"paged": true,
"unpaged": false
},
"last": false,
"totalPages": 14,
"totalElements": 42,
"first": true,
"size": 3,
"number": 0,
"sort": {
"empty": true,
"sorted": false,
"unsorted": true
},
"numberOfElements": 3,
"empty": false
}