Logo PopinaPopina API

List fiscal archives

This endpoint is used get list of fiscal archives

GET/v1/fiscal/

Query Parameters

since?string

Start date for date range (first day included). Accepts a date in the format ISO 8601 : YYYY-MM-DD

Match^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$
until?string

End date for date range (last day included). Accepts a date in the format ISO 8601 : YYYY-MM-DD

Match^[0-9]{4}-(((0[13578]|(10|12))-(0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|((0[469]|11)-(0[1-9]|[1-2][0-9]|30)))$
index?integer

Index of the page query parameter

Default0
Range0 <= value
size?integer

Number of record on a page query parameter (capped to 100)

Default10
Range1 <= value <= 100

Response Body

application/json

curl -X GET "http://localhost:4004/v1/fiscal/"
{
  "data": [
    {
      "id": "string",
      "name": "string",
      "size": 0,
      "startedAt": "2019-08-24T14:15:22Z",
      "closedAt": "2019-08-24T14:15:22Z"
    }
  ],
  "meta": {
    "totalPage": 0,
    "totalCount": 0,
    "currentPageIndex": 0,
    "pageSize": 0
  },
  "links": {
    "self": "http://example.com",
    "first": "http://example.com",
    "last": "http://example.com",
    "next": "http://example.com",
    "prev": "http://example.com"
  },
  "nextPageToken": "string"
}