Saltar al contenido principal
POST
/
v1
/
webhooks
/
cash-ins
Procesar un cash-in entrante del upstream
curl --request POST \
  --url https://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dtHrOp": "<string>",
  "endToEndId": "<string>",
  "idReqJdPi": "<string>",
  "pagador": {
    "cpfCnpj": "<string>",
    "ispb": "<string>",
    "nome": "<string>",
    "nrAgencia": "<string>",
    "nrConta": "<string>",
    "tpConta": 123,
    "tpPessoa": 123
  },
  "recebedor": {
    "cpfCnpj": "<string>",
    "ispb": "<string>",
    "nome": "<string>",
    "nrAgencia": "<string>",
    "nrConta": "<string>",
    "tpConta": 123,
    "tpPessoa": 123
  },
  "tpIniciacao": 123,
  "valor": 123,
  "bankIdPss": "<string>",
  "chave": "<string>",
  "cnpjIniciadorPagamento": "<string>",
  "dtContabil": "<string>",
  "dtHrLiquidacao": "<string>",
  "finalidade": 123,
  "idConciliacaoRecebedor": "<string>",
  "infEntreClientes": "<string>",
  "modalidadeAgente": 123,
  "prioridadePagamento": 123,
  "tpPrioridadePagamento": 123,
  "vlrDetalhe": [
    {
      "tipo": 123,
      "vlrTarifaDinheiroCompra": 123
    }
  ]
}
'
import requests

url = "https://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins"

payload = {
"dtHrOp": "<string>",
"endToEndId": "<string>",
"idReqJdPi": "<string>",
"pagador": {
"cpfCnpj": "<string>",
"ispb": "<string>",
"nome": "<string>",
"nrAgencia": "<string>",
"nrConta": "<string>",
"tpConta": 123,
"tpPessoa": 123
},
"recebedor": {
"cpfCnpj": "<string>",
"ispb": "<string>",
"nome": "<string>",
"nrAgencia": "<string>",
"nrConta": "<string>",
"tpConta": 123,
"tpPessoa": 123
},
"tpIniciacao": 123,
"valor": 123,
"bankIdPss": "<string>",
"chave": "<string>",
"cnpjIniciadorPagamento": "<string>",
"dtContabil": "<string>",
"dtHrLiquidacao": "<string>",
"finalidade": 123,
"idConciliacaoRecebedor": "<string>",
"infEntreClientes": "<string>",
"modalidadeAgente": 123,
"prioridadePagamento": 123,
"tpPrioridadePagamento": 123,
"vlrDetalhe": [
{
"tipo": 123,
"vlrTarifaDinheiroCompra": 123
}
]
}
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({
dtHrOp: '<string>',
endToEndId: '<string>',
idReqJdPi: '<string>',
pagador: {
cpfCnpj: '<string>',
ispb: '<string>',
nome: '<string>',
nrAgencia: '<string>',
nrConta: '<string>',
tpConta: 123,
tpPessoa: 123
},
recebedor: {
cpfCnpj: '<string>',
ispb: '<string>',
nome: '<string>',
nrAgencia: '<string>',
nrConta: '<string>',
tpConta: 123,
tpPessoa: 123
},
tpIniciacao: 123,
valor: 123,
bankIdPss: '<string>',
chave: '<string>',
cnpjIniciadorPagamento: '<string>',
dtContabil: '<string>',
dtHrLiquidacao: '<string>',
finalidade: 123,
idConciliacaoRecebedor: '<string>',
infEntreClientes: '<string>',
modalidadeAgente: 123,
prioridadePagamento: 123,
tpPrioridadePagamento: 123,
vlrDetalhe: [{tipo: 123, vlrTarifaDinheiroCompra: 123}]
})
};

fetch('https://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins', 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://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins",
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([
'dtHrOp' => '<string>',
'endToEndId' => '<string>',
'idReqJdPi' => '<string>',
'pagador' => [
'cpfCnpj' => '<string>',
'ispb' => '<string>',
'nome' => '<string>',
'nrAgencia' => '<string>',
'nrConta' => '<string>',
'tpConta' => 123,
'tpPessoa' => 123
],
'recebedor' => [
'cpfCnpj' => '<string>',
'ispb' => '<string>',
'nome' => '<string>',
'nrAgencia' => '<string>',
'nrConta' => '<string>',
'tpConta' => 123,
'tpPessoa' => 123
],
'tpIniciacao' => 123,
'valor' => 123,
'bankIdPss' => '<string>',
'chave' => '<string>',
'cnpjIniciadorPagamento' => '<string>',
'dtContabil' => '<string>',
'dtHrLiquidacao' => '<string>',
'finalidade' => 123,
'idConciliacaoRecebedor' => '<string>',
'infEntreClientes' => '<string>',
'modalidadeAgente' => 123,
'prioridadePagamento' => 123,
'tpPrioridadePagamento' => 123,
'vlrDetalhe' => [
[
'tipo' => 123,
'vlrTarifaDinheiroCompra' => 123
]
]
]),
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://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins"

payload := strings.NewReader("{\n \"dtHrOp\": \"<string>\",\n \"endToEndId\": \"<string>\",\n \"idReqJdPi\": \"<string>\",\n \"pagador\": {\n \"cpfCnpj\": \"<string>\",\n \"ispb\": \"<string>\",\n \"nome\": \"<string>\",\n \"nrAgencia\": \"<string>\",\n \"nrConta\": \"<string>\",\n \"tpConta\": 123,\n \"tpPessoa\": 123\n },\n \"recebedor\": {\n \"cpfCnpj\": \"<string>\",\n \"ispb\": \"<string>\",\n \"nome\": \"<string>\",\n \"nrAgencia\": \"<string>\",\n \"nrConta\": \"<string>\",\n \"tpConta\": 123,\n \"tpPessoa\": 123\n },\n \"tpIniciacao\": 123,\n \"valor\": 123,\n \"bankIdPss\": \"<string>\",\n \"chave\": \"<string>\",\n \"cnpjIniciadorPagamento\": \"<string>\",\n \"dtContabil\": \"<string>\",\n \"dtHrLiquidacao\": \"<string>\",\n \"finalidade\": 123,\n \"idConciliacaoRecebedor\": \"<string>\",\n \"infEntreClientes\": \"<string>\",\n \"modalidadeAgente\": 123,\n \"prioridadePagamento\": 123,\n \"tpPrioridadePagamento\": 123,\n \"vlrDetalhe\": [\n {\n \"tipo\": 123,\n \"vlrTarifaDinheiroCompra\": 123\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://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"dtHrOp\": \"<string>\",\n \"endToEndId\": \"<string>\",\n \"idReqJdPi\": \"<string>\",\n \"pagador\": {\n \"cpfCnpj\": \"<string>\",\n \"ispb\": \"<string>\",\n \"nome\": \"<string>\",\n \"nrAgencia\": \"<string>\",\n \"nrConta\": \"<string>\",\n \"tpConta\": 123,\n \"tpPessoa\": 123\n },\n \"recebedor\": {\n \"cpfCnpj\": \"<string>\",\n \"ispb\": \"<string>\",\n \"nome\": \"<string>\",\n \"nrAgencia\": \"<string>\",\n \"nrConta\": \"<string>\",\n \"tpConta\": 123,\n \"tpPessoa\": 123\n },\n \"tpIniciacao\": 123,\n \"valor\": 123,\n \"bankIdPss\": \"<string>\",\n \"chave\": \"<string>\",\n \"cnpjIniciadorPagamento\": \"<string>\",\n \"dtContabil\": \"<string>\",\n \"dtHrLiquidacao\": \"<string>\",\n \"finalidade\": 123,\n \"idConciliacaoRecebedor\": \"<string>\",\n \"infEntreClientes\": \"<string>\",\n \"modalidadeAgente\": 123,\n \"prioridadePagamento\": 123,\n \"tpPrioridadePagamento\": 123,\n \"vlrDetalhe\": [\n {\n \"tipo\": 123,\n \"vlrTarifaDinheiroCompra\": 123\n }\n ]\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://plugin-pix-direct.api.lerian.net/v1/webhooks/cash-ins")

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 \"dtHrOp\": \"<string>\",\n \"endToEndId\": \"<string>\",\n \"idReqJdPi\": \"<string>\",\n \"pagador\": {\n \"cpfCnpj\": \"<string>\",\n \"ispb\": \"<string>\",\n \"nome\": \"<string>\",\n \"nrAgencia\": \"<string>\",\n \"nrConta\": \"<string>\",\n \"tpConta\": 123,\n \"tpPessoa\": 123\n },\n \"recebedor\": {\n \"cpfCnpj\": \"<string>\",\n \"ispb\": \"<string>\",\n \"nome\": \"<string>\",\n \"nrAgencia\": \"<string>\",\n \"nrConta\": \"<string>\",\n \"tpConta\": 123,\n \"tpPessoa\": 123\n },\n \"tpIniciacao\": 123,\n \"valor\": 123,\n \"bankIdPss\": \"<string>\",\n \"chave\": \"<string>\",\n \"cnpjIniciadorPagamento\": \"<string>\",\n \"dtContabil\": \"<string>\",\n \"dtHrLiquidacao\": \"<string>\",\n \"finalidade\": 123,\n \"idConciliacaoRecebedor\": \"<string>\",\n \"infEntreClientes\": \"<string>\",\n \"modalidadeAgente\": 123,\n \"prioridadePagamento\": 123,\n \"tpPrioridadePagamento\": 123,\n \"vlrDetalhe\": [\n {\n \"tipo\": 123,\n \"vlrTarifaDinheiroCompra\": 123\n }\n ]\n}"

response = http.request(request)
puts response.read_body
{
  "dtHrCreditoSgct": "<string>",
  "dtHrReqJdPi": "<string>",
  "endToEndIdDevolucao": "<string>",
  "endToEndIdOriginal": "<string>",
  "idCreditoSgct": "<string>",
  "idReqJdPi": "<string>",
  "idReqSistemaCliente": "<string>"
}
{
"code": "<string>",
"detail": "<string>",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "<string>",
"status": 123,
"title": "<string>",
"type": "about:blank"
}

Autorizaciones

Authorization
string
header
requerido

Autenticación con token JWT Bearer. Obtén el token desde el endpoint /v1/login/oauth/access_token usando credenciales de cliente (clientId y clientSecret).

Incluye el token en el encabezado Authorization: Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

El token expira después de 3600 segundos (1 hora).

Cuerpo

application/json
dtHrOp
string
requerido

Marca de tiempo de la operación (ISO-8601).

endToEndId
string
requerido

End-to-end id del SPI (clave de idempotencia + deduplicación).

idReqJdPi
string
requerido

Id de solicitud del upstream (se convierte en el id de la fila local cuando es un UUID).

pagador
object
requerido
recebedor
object
requerido
tpIniciacao
integer<int64>
requerido

Tipo de iniciación (eStartupType: Chave -> ruta in, QR -> ruta inQrCode).

valor
number<double>
requerido

Monto en reales (un número JSON).

bankIdPss
string

ISPB del participante PSS de Saque/troco (una cadena v5.5.0).

chave
string

La clave Pix (presente en los cash-ins iniciados por clave).

cnpjIniciadorPagamento
string

CNPJ del iniciador del pago (una cadena v5.5.0).

dtContabil
string

Fecha contable (opcional).

dtHrLiquidacao
string

Marca de tiempo de liquidación (opcional).

finalidade
integer<int64>

Finalidad (eFinality).

idConciliacaoRecebedor
string

Id de conciliación del beneficiario (estampado en el registro + el marcador de 24 h).

infEntreClientes
string

Información entre clientes de texto libre.

modalidadeAgente
integer<int64>

Modalidad del agente (eModalityAgent).

prioridadePagamento
integer<int64>

Prioridad del pago (ePaymentPriority).

tpPrioridadePagamento
integer<int64>

Tipo de prioridad del pago.

vlrDetalhe
object[] | null

Entradas de detalle de valores opcionales.

Respuesta

OK

dtHrCreditoSgct
string

Marca de tiempo del crédito del settlement-gateway (ISO-8601), en un resultado acreditado.

dtHrReqJdPi
string

Marca de tiempo de la solicitud (ISO-8601).

endToEndIdDevolucao
string

End-to-end id de retorno, reflejado.

endToEndIdOriginal
string

End-to-end id original, reflejado.

idCreditoSgct
string

Id de lançamento de crédito del settlement-gateway (GUID), en un resultado acreditado.

idReqJdPi
string

Id de solicitud del upstream, reflejado.

idReqSistemaCliente
string

Id de solicitud del sistema cliente, reflejado.