Set a pre-auction fund policy
curl --request PUT \
--url https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency: <x-idempotency>' \
--data '
{
"participa": true,
"peso": 50,
"horario": {
"fim": "22:00",
"inicio": "08:00"
},
"limites": {
"capital": "10000000.00",
"quantidadeDiaria": 800,
"valorDiario": "4000000.00"
},
"restricoes": {
"garantiaFgts": "recusa",
"parcelasMax": 48,
"parcelasMin": 6,
"taxaMensalMax": "3.50",
"taxaMensalMin": "1.80",
"valorLiberadoMax": "50000.00",
"valorLiberadoMin": "1000.00",
"valorParcelaMax": "2000.00"
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref}"
payload := strings.NewReader("{\n \"participa\": true,\n \"peso\": 50,\n \"horario\": {\n \"fim\": \"22:00\",\n \"inicio\": \"08:00\"\n },\n \"limites\": {\n \"capital\": \"10000000.00\",\n \"quantidadeDiaria\": 800,\n \"valorDiario\": \"4000000.00\"\n },\n \"restricoes\": {\n \"garantiaFgts\": \"recusa\",\n \"parcelasMax\": 48,\n \"parcelasMin\": 6,\n \"taxaMensalMax\": \"3.50\",\n \"taxaMensalMin\": \"1.80\",\n \"valorLiberadoMax\": \"50000.00\",\n \"valorLiberadoMin\": \"1000.00\",\n \"valorParcelaMax\": \"2000.00\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Idempotency", "<x-idempotency>")
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))
}const options = {
method: 'PUT',
headers: {
'X-Idempotency': '<x-idempotency>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
participa: true,
peso: 50,
horario: {fim: '22:00', inicio: '08:00'},
limites: {capital: '10000000.00', quantidadeDiaria: 800, valorDiario: '4000000.00'},
restricoes: {
garantiaFgts: 'recusa',
parcelasMax: 48,
parcelasMin: 6,
taxaMensalMax: '3.50',
taxaMensalMin: '1.80',
valorLiberadoMax: '50000.00',
valorLiberadoMin: '1000.00',
valorParcelaMax: '2000.00'
}
})
};
fetch('https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref}"
payload = {
"participa": True,
"peso": 50,
"horario": {
"fim": "22:00",
"inicio": "08:00"
},
"limites": {
"capital": "10000000.00",
"quantidadeDiaria": 800,
"valorDiario": "4000000.00"
},
"restricoes": {
"garantiaFgts": "recusa",
"parcelasMax": 48,
"parcelasMin": 6,
"taxaMensalMax": "3.50",
"taxaMensalMin": "1.80",
"valorLiberadoMax": "50000.00",
"valorLiberadoMin": "1000.00",
"valorParcelaMax": "2000.00"
}
}
headers = {
"X-Idempotency": "<x-idempotency>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"configurada": true,
"fundoRef": "fundo-a",
"horario": {
"fim": "22:00",
"inicio": "08:00"
},
"limites": {
"capital": "10000000.00",
"quantidadeDiaria": 800,
"valorDiario": "4000000.00"
},
"participa": true,
"peso": 50,
"restricoes": {
"garantiaFgts": "recusa",
"parcelasMax": 48,
"parcelasMin": 6,
"taxaMensalMax": "3.50",
"taxaMensalMin": "1.80",
"valorLiberadoMax": "50000.00",
"valorLiberadoMin": "1000.00",
"valorParcelaMax": "2000.00"
},
"uso": {
"confirmado": "1240000.00",
"dia": "2026-11-03",
"quantidadeHoje": 12,
"reservado": "92000.00",
"valorHoje": "184000.00",
"capitalDisponivel": "8668000.00"
},
"createdAt": "2026-11-03T15:00:00Z",
"updatedAt": "2026-11-03T15:00:00Z",
"updatedBy": "user-123"
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Set a pre-auction fund policy
Writes the policy of a fund known to the validated tenant; a deactivated fund is accepted. An identical PUT changes nothing. X-Idempotency is required. There is no DELETE: participa false takes the fund out of the pre-auction. Counters derive from the reservation ledger in the America/Sao_Paulo day.
PUT
/
v1
/
consignado
/
preleilao
/
fundos
/
{fundo_ref}
Set a pre-auction fund policy
curl --request PUT \
--url https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency: <x-idempotency>' \
--data '
{
"participa": true,
"peso": 50,
"horario": {
"fim": "22:00",
"inicio": "08:00"
},
"limites": {
"capital": "10000000.00",
"quantidadeDiaria": 800,
"valorDiario": "4000000.00"
},
"restricoes": {
"garantiaFgts": "recusa",
"parcelasMax": 48,
"parcelasMin": 6,
"taxaMensalMax": "3.50",
"taxaMensalMin": "1.80",
"valorLiberadoMax": "50000.00",
"valorLiberadoMin": "1000.00",
"valorParcelaMax": "2000.00"
}
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref}"
payload := strings.NewReader("{\n \"participa\": true,\n \"peso\": 50,\n \"horario\": {\n \"fim\": \"22:00\",\n \"inicio\": \"08:00\"\n },\n \"limites\": {\n \"capital\": \"10000000.00\",\n \"quantidadeDiaria\": 800,\n \"valorDiario\": \"4000000.00\"\n },\n \"restricoes\": {\n \"garantiaFgts\": \"recusa\",\n \"parcelasMax\": 48,\n \"parcelasMin\": 6,\n \"taxaMensalMax\": \"3.50\",\n \"taxaMensalMin\": \"1.80\",\n \"valorLiberadoMax\": \"50000.00\",\n \"valorLiberadoMin\": \"1000.00\",\n \"valorParcelaMax\": \"2000.00\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("X-Idempotency", "<x-idempotency>")
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))
}const options = {
method: 'PUT',
headers: {
'X-Idempotency': '<x-idempotency>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
participa: true,
peso: 50,
horario: {fim: '22:00', inicio: '08:00'},
limites: {capital: '10000000.00', quantidadeDiaria: 800, valorDiario: '4000000.00'},
restricoes: {
garantiaFgts: 'recusa',
parcelasMax: 48,
parcelasMin: 6,
taxaMensalMax: '3.50',
taxaMensalMin: '1.80',
valorLiberadoMax: '50000.00',
valorLiberadoMin: '1000.00',
valorParcelaMax: '2000.00'
}
})
};
fetch('https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://br-consignado-gw.sandbox.lerian.net/v1/consignado/preleilao/fundos/{fundo_ref}"
payload = {
"participa": True,
"peso": 50,
"horario": {
"fim": "22:00",
"inicio": "08:00"
},
"limites": {
"capital": "10000000.00",
"quantidadeDiaria": 800,
"valorDiario": "4000000.00"
},
"restricoes": {
"garantiaFgts": "recusa",
"parcelasMax": 48,
"parcelasMin": 6,
"taxaMensalMax": "3.50",
"taxaMensalMin": "1.80",
"valorLiberadoMax": "50000.00",
"valorLiberadoMin": "1000.00",
"valorParcelaMax": "2000.00"
}
}
headers = {
"X-Idempotency": "<x-idempotency>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"configurada": true,
"fundoRef": "fundo-a",
"horario": {
"fim": "22:00",
"inicio": "08:00"
},
"limites": {
"capital": "10000000.00",
"quantidadeDiaria": 800,
"valorDiario": "4000000.00"
},
"participa": true,
"peso": 50,
"restricoes": {
"garantiaFgts": "recusa",
"parcelasMax": 48,
"parcelasMin": 6,
"taxaMensalMax": "3.50",
"taxaMensalMin": "1.80",
"valorLiberadoMax": "50000.00",
"valorLiberadoMin": "1000.00",
"valorParcelaMax": "2000.00"
},
"uso": {
"confirmado": "1240000.00",
"dia": "2026-11-03",
"quantidadeHoje": 12,
"reservado": "92000.00",
"valorHoje": "184000.00",
"capitalDisponivel": "8668000.00"
},
"createdAt": "2026-11-03T15:00:00Z",
"updatedAt": "2026-11-03T15:00:00Z",
"updatedBy": "user-123"
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}{
"code": "AUT-0033",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example",
"upstream": {
"code": "E4001",
"message": "account not found at provider"
}
}Encabezados
Parámetros de ruta
Cuerpo
application/json
Respuesta
OK
¿Esta página le ayudó?

