Pular para o conteúdo principal
POST
/
v1
/
str
/
operations
/
ibs-repasses
Criar operação de repasse IBS
curl --request POST \
  --url https://spb.sandbox.lerian.net/v1/str/operations/ibs-repasses \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "<string>",
  "dtHrInfSeggc": "<string>",
  "dtRepFinanc": "<string>",
  "identdInfSeggc": "<string>",
  "recipient": {
    "ispb": "<string>",
    "account": "<string>",
    "accountType": "<string>",
    "branch": "<string>",
    "document": "<string>",
    "name": "<string>",
    "party": "<string>",
    "paymentAccount": "<string>"
  },
  "sender": {
    "ispb": "<string>",
    "account": "<string>",
    "accountType": "<string>",
    "branch": "<string>",
    "document": "<string>",
    "name": "<string>",
    "party": "<string>",
    "paymentAccount": "<string>"
  },
  "clientReference": "<string>",
  "description": "<string>",
  "metadata": {},
  "qtdTransc": "<string>"
}
'
import requests

url = "https://spb.sandbox.lerian.net/v1/str/operations/ibs-repasses"

payload = {
"amount": "<string>",
"dtHrInfSeggc": "<string>",
"dtRepFinanc": "<string>",
"identdInfSeggc": "<string>",
"recipient": {
"ispb": "<string>",
"account": "<string>",
"accountType": "<string>",
"branch": "<string>",
"document": "<string>",
"name": "<string>",
"party": "<string>",
"paymentAccount": "<string>"
},
"sender": {
"ispb": "<string>",
"account": "<string>",
"accountType": "<string>",
"branch": "<string>",
"document": "<string>",
"name": "<string>",
"party": "<string>",
"paymentAccount": "<string>"
},
"clientReference": "<string>",
"description": "<string>",
"metadata": {},
"qtdTransc": "<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({
amount: '<string>',
dtHrInfSeggc: '<string>',
dtRepFinanc: '<string>',
identdInfSeggc: '<string>',
recipient: {
ispb: '<string>',
account: '<string>',
accountType: '<string>',
branch: '<string>',
document: '<string>',
name: '<string>',
party: '<string>',
paymentAccount: '<string>'
},
sender: {
ispb: '<string>',
account: '<string>',
accountType: '<string>',
branch: '<string>',
document: '<string>',
name: '<string>',
party: '<string>',
paymentAccount: '<string>'
},
clientReference: '<string>',
description: '<string>',
metadata: {},
qtdTransc: '<string>'
})
};

fetch('https://spb.sandbox.lerian.net/v1/str/operations/ibs-repasses', 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/operations/ibs-repasses",
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([
'amount' => '<string>',
'dtHrInfSeggc' => '<string>',
'dtRepFinanc' => '<string>',
'identdInfSeggc' => '<string>',
'recipient' => [
'ispb' => '<string>',
'account' => '<string>',
'accountType' => '<string>',
'branch' => '<string>',
'document' => '<string>',
'name' => '<string>',
'party' => '<string>',
'paymentAccount' => '<string>'
],
'sender' => [
'ispb' => '<string>',
'account' => '<string>',
'accountType' => '<string>',
'branch' => '<string>',
'document' => '<string>',
'name' => '<string>',
'party' => '<string>',
'paymentAccount' => '<string>'
],
'clientReference' => '<string>',
'description' => '<string>',
'metadata' => [

],
'qtdTransc' => '<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/operations/ibs-repasses"

payload := strings.NewReader("{\n \"amount\": \"<string>\",\n \"dtHrInfSeggc\": \"<string>\",\n \"dtRepFinanc\": \"<string>\",\n \"identdInfSeggc\": \"<string>\",\n \"recipient\": {\n \"ispb\": \"<string>\",\n \"account\": \"<string>\",\n \"accountType\": \"<string>\",\n \"branch\": \"<string>\",\n \"document\": \"<string>\",\n \"name\": \"<string>\",\n \"party\": \"<string>\",\n \"paymentAccount\": \"<string>\"\n },\n \"sender\": {\n \"ispb\": \"<string>\",\n \"account\": \"<string>\",\n \"accountType\": \"<string>\",\n \"branch\": \"<string>\",\n \"document\": \"<string>\",\n \"name\": \"<string>\",\n \"party\": \"<string>\",\n \"paymentAccount\": \"<string>\"\n },\n \"clientReference\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"qtdTransc\": \"<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/operations/ibs-repasses")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": \"<string>\",\n \"dtHrInfSeggc\": \"<string>\",\n \"dtRepFinanc\": \"<string>\",\n \"identdInfSeggc\": \"<string>\",\n \"recipient\": {\n \"ispb\": \"<string>\",\n \"account\": \"<string>\",\n \"accountType\": \"<string>\",\n \"branch\": \"<string>\",\n \"document\": \"<string>\",\n \"name\": \"<string>\",\n \"party\": \"<string>\",\n \"paymentAccount\": \"<string>\"\n },\n \"sender\": {\n \"ispb\": \"<string>\",\n \"account\": \"<string>\",\n \"accountType\": \"<string>\",\n \"branch\": \"<string>\",\n \"document\": \"<string>\",\n \"name\": \"<string>\",\n \"party\": \"<string>\",\n \"paymentAccount\": \"<string>\"\n },\n \"clientReference\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"qtdTransc\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://spb.sandbox.lerian.net/v1/str/operations/ibs-repasses")

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 \"amount\": \"<string>\",\n \"dtHrInfSeggc\": \"<string>\",\n \"dtRepFinanc\": \"<string>\",\n \"identdInfSeggc\": \"<string>\",\n \"recipient\": {\n \"ispb\": \"<string>\",\n \"account\": \"<string>\",\n \"accountType\": \"<string>\",\n \"branch\": \"<string>\",\n \"document\": \"<string>\",\n \"name\": \"<string>\",\n \"party\": \"<string>\",\n \"paymentAccount\": \"<string>\"\n },\n \"sender\": {\n \"ispb\": \"<string>\",\n \"account\": \"<string>\",\n \"accountType\": \"<string>\",\n \"branch\": \"<string>\",\n \"document\": \"<string>\",\n \"name\": \"<string>\",\n \"party\": \"<string>\",\n \"paymentAccount\": \"<string>\"\n },\n \"clientReference\": \"<string>\",\n \"description\": \"<string>\",\n \"metadata\": {},\n \"qtdTransc\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "acceptedAt": "2023-11-07T05:31:56Z",
  "capabilityId": "<string>",
  "correlationId": "<string>",
  "isReplay": true,
  "operationFamily": "<string>",
  "operationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "<string>",
  "protocolMetadata": {
    "controlNumber": "<string>",
    "nuOp": "<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).

X-Idempotency-Key
string

Idempotency key (legacy alias).

X-TTL
string

Idempotency key TTL in seconds.

Corpo

application/json
amount
string
obrigatório

Repasse amount as a decimal string in BRL, minor-unit precision (two decimal places).

Pattern: ^[0-9]+(\.[0-9]+)?$
Exemplo:

"1500.25"

dtHrInfSeggc
string
obrigatório

Settlement-info timestamp in BACEN STR0053 ISO dateTime form (e.g. 2026-06-09T12:00:00) WITHOUT a timezone offset; the use case validates the BACEN format.

Exemplo:

"2026-06-09T12:00:00"

dtRepFinanc
string
obrigatório

Financial repasse date in BACEN STR0053 ISO date form (e.g. 2026-06-09).

Exemplo:

"2026-06-09"

identdInfSeggc
string
obrigatório

Comitê-gestor settlement-info identifier (required, 1-50 chars).

Maximum string length: 50
Exemplo:

"SEGGC-INFO-0001"

recipient
object
obrigatório

Crediting participant account (comitê gestor) receiving the IBS repasse.

sender
object
obrigatório

Debiting participant account originating the IBS repasse.

clientReference
string

Optional caller-supplied correlation reference echoed back for client-side reconciliation.

Exemplo:

"ibs-ref-1"

description
string

Optional free-text description carried with the operation.

Exemplo:

"Repasse IBS comite gestor"

metadata
object

Opaque client-side metadata forwarded verbatim to the legacy submit DTO. NOT persisted on the operation intent or sanitized payload.

qtdTransc
string

Optional transaction count (digits only).

Exemplo:

"10"

Resposta

Created

acceptedAt
string<date-time>
obrigatório

UTC RFC 3339 timestamp at which the command was accepted.

Exemplo:

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

capabilityId
string
obrigatório

STR capability identifier resolved for the accepted operation (e.g. STR0004).

Exemplo:

"STR0004"

correlationId
string
obrigatório

Request correlation identifier for tracing the accept across logs and traces.

Exemplo:

"req-7c8b3a2e-9f1d-4a55-9b8e-1e1234567890"

isReplay
boolean
obrigatório

True when this response replays a prior idempotent accept rather than creating a new operation.

Exemplo:

false

operationFamily
string
obrigatório

Operation family the accepted command belongs to (e.g. bankTransfer).

Exemplo:

"bankTransfer"

operationId
string<uuid>
obrigatório

Server-assigned operation aggregate UUID used for subsequent status, return, and cancellation calls.

Exemplo:

"7c8b3a2e-9f1d-4a55-9b8e-1e1234567890"

status
string
obrigatório

Current control-plane lifecycle status of the operation; ACCEPTED on initial accept.

Exemplo:

"ACCEPTED"

protocolMetadata
object

Optional SAFE protocol correlation fields; present once the operation is mapped to STR wire identifiers.