List the days of a file dataset
curl --request GET \
--url https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"createdAt": "2026-01-01T00:00:00Z",
"datasetId": "00000000-0000-0000-0000-000000000000",
"id": "00000000-0000-0000-0000-000000000000",
"noDelivery": false,
"overdue": false,
"referenceDate": "2026-01-31",
"revisions": [
{
"acceptedAt": "2026-02-01T09:00:00Z",
"contractVersion": 1,
"files": [
{
"bytes": 2048,
"name": "entries.csv",
"rows": 120,
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"table": "entries"
}
],
"number": 1,
"noDeliveryBy": "operator",
"sourceRevision": 2,
"warnings": [
{
"control": "file-sha256",
"message": "3 rows: amount is not a decimal (lines 12, 40, 41)",
"refuses": true,
"table": "entries"
}
]
}
],
"state": "accepted",
"updatedAt": "2026-02-01T09:00:00Z",
"checkedAt": "2026-02-01T09:00:00Z",
"lastAttempt": {
"at": "2026-02-01T09:00:00Z",
"outcome": "accepted",
"trigger": "schedule",
"error": "connect failed",
"findings": [
{
"control": "file-sha256",
"message": "3 rows: amount is not a decimal (lines 12, 40, 41)",
"refuses": true,
"table": "entries"
}
]
}
}
],
"limit": 10,
"nextCursor": "eyJkIjoiMjAyNi0wMi0wMyIsIm8iOiJkZXNjIn0",
"prevCursor": "eyJkIjoiMjAyNi0wMi0wMyIsIm8iOiJkZXNjIiwiYiI6dHJ1ZX0"
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}List the days of a file dataset
Returns a page of the days the dataset’s ledger holds, newest first unless sort_order asks for asc. Paginated by cursor; page is refused, and a sort_order that disagrees with the cursor is refused with 400. A day is shown as the ledger keeps it.
GET
/
v1
/
file-datasets
/
{fileDatasetId}
/
days
List the days of a file dataset
curl --request GET \
--url https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days \
--header 'Authorization: Bearer <token>'package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://reporter.sandbox.lerian.net/v1/file-datasets/{fileDatasetId}/days"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"items": [
{
"createdAt": "2026-01-01T00:00:00Z",
"datasetId": "00000000-0000-0000-0000-000000000000",
"id": "00000000-0000-0000-0000-000000000000",
"noDelivery": false,
"overdue": false,
"referenceDate": "2026-01-31",
"revisions": [
{
"acceptedAt": "2026-02-01T09:00:00Z",
"contractVersion": 1,
"files": [
{
"bytes": 2048,
"name": "entries.csv",
"rows": 120,
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"table": "entries"
}
],
"number": 1,
"noDeliveryBy": "operator",
"sourceRevision": 2,
"warnings": [
{
"control": "file-sha256",
"message": "3 rows: amount is not a decimal (lines 12, 40, 41)",
"refuses": true,
"table": "entries"
}
]
}
],
"state": "accepted",
"updatedAt": "2026-02-01T09:00:00Z",
"checkedAt": "2026-02-01T09:00:00Z",
"lastAttempt": {
"at": "2026-02-01T09:00:00Z",
"outcome": "accepted",
"trigger": "schedule",
"error": "connect failed",
"findings": [
{
"control": "file-sha256",
"message": "3 rows: amount is not a decimal (lines 12, 40, 41)",
"refuses": true,
"table": "entries"
}
]
}
}
],
"limit": 10,
"nextCursor": "eyJkIjoiMjAyNi0wMi0wMyIsIm8iOiJkZXNjIn0",
"prevCursor": "eyJkIjoiMjAyNi0wMi0wMyIsIm8iOiJkZXNjIiwiYiI6dHJ1ZX0"
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "<string>",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "body.templateId",
"message": "expected string to match 'uuid' format",
"value": "not-a-uuid"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Parâmetros de consulta
Resposta
OK
Esta página foi útil?

