Pular para o conteúdo principal
POST
/
v1
/
str
/
responsibles
Atualizar responsáveis do participante (GEN0019)
curl --request POST \
  --url https://spb.sandbox.lerian.net/v1/str/responsibles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "responsibles": [
    {
      "cpf": "<string>",
      "documentNumber": "<string>",
      "email": "<string>",
      "name": "<string>",
      "phone1": "<string>",
      "type": "<string>",
      "phone2": "<string>",
      "phone3": "<string>"
    }
  ]
}
'
import requests

url = "https://spb.sandbox.lerian.net/v1/str/responsibles"

payload = { "responsibles": [
        {
            "cpf": "<string>",
            "documentNumber": "<string>",
            "email": "<string>",
            "name": "<string>",
            "phone1": "<string>",
            "type": "<string>",
            "phone2": "<string>",
            "phone3": "<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({
    responsibles: [
      {
        cpf: '<string>',
        documentNumber: '<string>',
        email: '<string>',
        name: '<string>',
        phone1: '<string>',
        type: '<string>',
        phone2: '<string>',
        phone3: '<string>'
      }
    ]
  })
};

fetch('https://spb.sandbox.lerian.net/v1/str/responsibles', 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/responsibles",
  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([
    'responsibles' => [
        [
                'cpf' => '<string>',
                'documentNumber' => '<string>',
                'email' => '<string>',
                'name' => '<string>',
                'phone1' => '<string>',
                'type' => '<string>',
                'phone2' => '<string>',
                'phone3' => '<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/responsibles"

	payload := strings.NewReader("{\n  \"responsibles\": [\n    {\n      \"cpf\": \"<string>\",\n      \"documentNumber\": \"<string>\",\n      \"email\": \"<string>\",\n      \"name\": \"<string>\",\n      \"phone1\": \"<string>\",\n      \"type\": \"<string>\",\n      \"phone2\": \"<string>\",\n      \"phone3\": \"<string>\"\n    }\n  ]\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/responsibles")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"responsibles\": [\n    {\n      \"cpf\": \"<string>\",\n      \"documentNumber\": \"<string>\",\n      \"email\": \"<string>\",\n      \"name\": \"<string>\",\n      \"phone1\": \"<string>\",\n      \"type\": \"<string>\",\n      \"phone2\": \"<string>\",\n      \"phone3\": \"<string>\"\n    }\n  ]\n}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://spb.sandbox.lerian.net/v1/str/responsibles")

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  \"responsibles\": [\n    {\n      \"cpf\": \"<string>\",\n      \"documentNumber\": \"<string>\",\n      \"email\": \"<string>\",\n      \"name\": \"<string>\",\n      \"phone1\": \"<string>\",\n      \"type\": \"<string>\",\n      \"phone2\": \"<string>\",\n      \"phone3\": \"<string>\"\n    }\n  ]\n}"

response = http.request(request)
puts response.read_body
{
  "controlNumber": "<string>",
  "correlationId": "<string>",
  "messageType": "<string>",
  "nuOp": "<string>",
  "responsibleCount": 123,
  "status": "<string>",
  "submittedAt": "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"
}

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string

Idempotency key (primary).

X-Idempotency-Key
string

Idempotency key (legacy alias for X-Idempotency).

X-TTL
string

Idempotency key TTL in seconds (overrides the configured default).

Corpo

application/json
responsibles
object[]
obrigatório

Complete responsável roster (full-replacement; no partial update). 1..100 entries per the Catálogo SFN Vol III bound.

Required array length: 1 - 100 elements

Resposta

OK

controlNumber
string
obrigatório

Participant control number assigned to the GEN0019 submission.

Exemplo:

"20260616000001"

correlationId
string
obrigatório

Request-scoped correlation identifier echoing X-Request-ID, for pivoting from response to trace.

Exemplo:

"req-7a3f9c2e"

messageType
string
obrigatório

STR message code of the submission (always GEN0019 for a responsável update).

Exemplo:

"GEN0019"

nuOp
string
obrigatório

BACEN protocol identifier (NUOp) assigned to the GEN0019 submission.

Exemplo:

"12345678202606160000001"

responsibleCount
integer<int64>
obrigatório

Number of responsável records carried in the full-replacement roster.

Exemplo:

3

status
string
obrigatório

Submission status; always SUBMITTED until BACEN's GEN0019R1 acknowledgment flips it to CONFIRMED.

Exemplo:

"SUBMITTED"

submittedAt
string<date-time>
obrigatório

RFC3339 UTC timestamp when the submission was persisted before dispatch.

Exemplo:

"2026-06-16T18:30:00Z"