Skip to main content
GET
/
v1
/
str
/
schedule-queries
/
{id}
Read STR0001 schedule-query result
curl --request GET \
  --url https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <token>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id}"

	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))

}
HttpResponse<String> response = Unirest.get("https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id}")
  .header("Authorization", "Bearer <token>")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://spb.sandbox.lerian.net/v1/str/schedule-queries/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "correlationId": "<string>",
  "id": "<string>",
  "ispbIf": "<string>",
  "status": "<string>",
  "dtHrBC": "<string>",
  "dtRef": "<string>",
  "grades": [
    {
      "codGrd": "<string>",
      "dtHrAbert": "<string>",
      "dtHrFcht": "<string>",
      "tpHrio": "<string>"
    }
  ],
  "receivedAt": "2023-11-07T05:31:56Z"
}
{
  "code": "<string>",
  "detail": "<string>",
  "errors": [
    {
      "location": "<string>",
      "message": "<string>",
      "value": "<unknown>"
    }
  ],
  "instance": "<string>",
  "status": 123,
  "title": "<string>",
  "type": "about:blank"
}

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

id
string
required

Correlation id returned by POST /v1/str/schedule-queries (the outbound STR0001 NUOp).

Response

OK

correlationId
string
required

Request-scoped correlation identifier echoing X-Request-ID.

Example:

"req-7a3f9c2e"

id
string
required

Correlation id (the outbound STR0001 NUOp).

Example:

"12345678202606150000001"

ispbIf
string
required

ISPB of the querying financial institution.

Example:

"12345678"

status
string
required

PENDING until the STR0001R1 answer arrives; ANSWERED once the schedule grid has been projected.

Example:

"ANSWERED"

dtHrBC
string

BACEN timestamp of the answer (DtHrBC), verbatim. Empty while PENDING.

Example:

"2026-06-15T10:00:00"

dtRef
string

Reference date the schedule grid applies to (DtRef), verbatim once answered.

Example:

"2026-06-15"

grades
object[] | null

Schedule grid BACEN sent (Grupo_STR0001R1_GrdHrio), verbatim. Up to 200 grids; empty while PENDING.

receivedAt
string<date-time>

RFC3339 UTC freshness timestamp the answer was projected. Empty while PENDING.

Example:

"2026-06-15T10:00:01Z"