Pular para o conteúdo principal
GET
/
v1
/
str
/
reserve-statement-queries
/
{id}
Ler o resultado da consulta de extrato de reservas STR0014 (modo mensagem)
curl --request GET \
  --url https://spb.sandbox.lerian.net/v1/str/reserve-statement-queries/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://spb.sandbox.lerian.net/v1/str/reserve-statement-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/reserve-statement-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/reserve-statement-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/reserve-statement-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/reserve-statement-queries/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://spb.sandbox.lerian.net/v1/str/reserve-statement-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>",
  "ispbIfLdl": "<string>",
  "status": "<string>",
  "dtHrBC": "<string>",
  "dtMovto": "<string>",
  "entries": [
    {
      "codMsgOr": "<string>",
      "dtHrSit": "<string>",
      "numCtrlStrOr": "<string>",
      "tpDebCred": "<string>",
      "vlrLanc": "<string>",
      "ispbCtrapart": "<string>",
      "numCtrlIfLdlOr": "<string>"
    }
  ],
  "receivedAt": "2023-11-07T05:31:56Z",
  "sldFinl": "<string>",
  "sldInial": "<string>"
}
{
"code": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

id
string
obrigatório

Correlation id returned by POST /v1/str/reserve-statement-queries (the outbound STR0014 NUOp).

Resposta

OK

correlationId
string
obrigatório

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

Exemplo:

"req-7a3f9c2e"

id
string
obrigatório

Correlation id (the outbound STR0014 NUOp).

Exemplo:

"12345678202606150000014"

ispbIfLdl
string
obrigatório

ISPB of the requesting financial institution / clearing house.

Exemplo:

"12345678"

status
string
obrigatório

PENDING until the STR0014R1 answer arrives; ANSWERED once a message-mode statement has been projected.

Exemplo:

"ANSWERED"

dtHrBC
string

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

Exemplo:

"2026-06-15T18:00:00"

dtMovto
string

Movement date the statement applies to (DtMovto), verbatim. Empty while PENDING.

Exemplo:

"2026-06-15"

entries
object[] | null

Settled-entry group BACEN sent (Grupo_STR0014R1_Lanc), verbatim. Up to 200 entries; empty while PENDING.

receivedAt
string<date-time>

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

Exemplo:

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

sldFinl
string

Closing balance BACEN sent (SldFinl), verbatim. Empty while PENDING.

Exemplo:

"1234567.89"

sldInial
string

Opening balance BACEN sent (SldInial), verbatim. Empty while PENDING.

Exemplo:

"1000000.00"