Pular para o conteúdo principal
POST
/
v1
/
str
/
reserve-balance-queries
Enviar consulta de saldo de conta de reservas STR0013
curl --request POST \
  --url https://spb.sandbox.lerian.net/v1/str/reserve-balance-queries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "ispbIfLdl": "<string>"
}
'
import requests

url = "https://spb.sandbox.lerian.net/v1/str/reserve-balance-queries"

payload = { "ispbIfLdl": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ispbIfLdl: '<string>'})
};

fetch('https://spb.sandbox.lerian.net/v1/str/reserve-balance-queries', 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-balance-queries",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ispbIfLdl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

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

curl_close($curl);

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

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

func main() {

url := "https://spb.sandbox.lerian.net/v1/str/reserve-balance-queries"

payload := strings.NewReader("{\n \"ispbIfLdl\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://spb.sandbox.lerian.net/v1/str/reserve-balance-queries")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ispbIfLdl\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://spb.sandbox.lerian.net/v1/str/reserve-balance-queries")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ispbIfLdl\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "correlationId": "<string>",
  "id": "<string>",
  "ispbIfLdl": "<string>",
  "status": "<string>",
  "submittedAt": "<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.

Cabeçalhos

Authorization
string

Bearer JWT token.

X-Idempotency
string

Idempotency key (canonical; legacy alias X-Idempotency-Key).

X-Idempotency-Key
string

Idempotency key (legacy alias).

X-TTL
string

Idempotency key TTL in seconds.

Corpo

application/json
ispbIfLdl
string
obrigatório

ISPB of the requesting financial institution / clearing house (8 numeric digits).

Exemplo:

"12345678"

Resposta

Accepted

correlationId
string
obrigatório

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

Exemplo:

"req-7a3f9c2e"

id
string
obrigatório

Correlation id (the outbound STR0013 NUOp). Poll GET /v1/str/reserve-balance-queries/{id} for the answer.

Exemplo:

"12345678202606150000013"

ispbIfLdl
string
obrigatório

ISPB of the requesting financial institution / clearing house.

Exemplo:

"12345678"

status
string
obrigatório

Projection state: PENDING until the STR0013R1 answer arrives and is projected.

Exemplo:

"PENDING"

submittedAt
string
obrigatório

RFC3339 UTC timestamp the STR0013 query was persisted before send.

Exemplo:

"2026-06-15T12:00:00Z"