Reports API

Muestra la lista de reportes de un admin.

Reports de un merchant

GET /internal/admin/reports

Retorna la lista de reportes.

Parameters

Name Description
per_page Cantidad de recursos por pagina
page Pagina

Request

Headers

Content-Type: application/json
Authorization: <integration-token>
Host: example.org
Cookie: 

Route

GET /internal/admin/reports

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/json; charset=utf-8
ETag: W/"3442d63309a393eab274de3d1316a92b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: c6d0e90a-4b77-435e-8a90-fb4ff47456a5
X-Runtime: 0.056524
Vary: Origin
Content-Length: 423

Status

200 OK

Body

{
  "data": [
    {
      "id": 200,
      "type": "Reporte (xls)",
      "created_at": "2021-12-02T13:38:30.000Z",
      "last_download": null,
      "downloadable": false
    },
    {
      "id": 201,
      "type": "Reporte (csv)",
      "created_at": "2021-12-01T13:38:30.000Z",
      "last_download": null,
      "downloadable": true
    },
    {
      "id": 203,
      "type": "Reporte (xls)",
      "created_at": "2021-12-01T13:38:30.000Z",
      "last_download": null,
      "downloadable": false
    }
  ],
  "current_page": 1,
  "per_page": 25,
  "total_pages": 1,
  "total_elements": 3
}