Validate an inbound PIX Automatico payment instruction
curl --request POST \
--url https://api.example.com/v1/pix-automatico/schedules/inbound/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dtVencimento": "2024-09-26",
"endToEndId": "E00038166202409201500y6j6mt9l0pi",
"finalidadeAgendamento": 0,
"idConciliacaoRecebedor": "JDPI2024092000000000000000000000001",
"idRecorrencia": "RR0435879820240919njua7shf40o",
"pagador": {
"cpfCnpj": "11111111111",
"ispb": "99999004",
"tpPessoa": 0
},
"recebedor": {
"cnpj": "61695227000193",
"ispb": "04358798",
"nome": "Enel",
"nrConta": "12345678",
"tpConta": 0,
"nrAgencia": "1234"
},
"dtHrRecepcaoPspRecebedor": "2024-09-20T09:25:49.025Z",
"infEntreClientes": "Cobranca da Enel",
"valor": 550
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/pix-automatico/schedules/inbound/validate"
payload := strings.NewReader("{\n \"dtVencimento\": \"2024-09-26\",\n \"endToEndId\": \"E00038166202409201500y6j6mt9l0pi\",\n \"finalidadeAgendamento\": 0,\n \"idConciliacaoRecebedor\": \"JDPI2024092000000000000000000000001\",\n \"idRecorrencia\": \"RR0435879820240919njua7shf40o\",\n \"pagador\": {\n \"cpfCnpj\": \"11111111111\",\n \"ispb\": \"99999004\",\n \"tpPessoa\": 0\n },\n \"recebedor\": {\n \"cnpj\": \"61695227000193\",\n \"ispb\": \"04358798\",\n \"nome\": \"Enel\",\n \"nrConta\": \"12345678\",\n \"tpConta\": 0,\n \"nrAgencia\": \"1234\"\n },\n \"dtHrRecepcaoPspRecebedor\": \"2024-09-20T09:25:49.025Z\",\n \"infEntreClientes\": \"Cobranca da Enel\",\n \"valor\": 550\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dtVencimento: '2024-09-26',
endToEndId: 'E00038166202409201500y6j6mt9l0pi',
finalidadeAgendamento: 0,
idConciliacaoRecebedor: 'JDPI2024092000000000000000000000001',
idRecorrencia: 'RR0435879820240919njua7shf40o',
pagador: {cpfCnpj: '11111111111', ispb: '99999004', tpPessoa: 0},
recebedor: {
cnpj: '61695227000193',
ispb: '04358798',
nome: 'Enel',
nrConta: '12345678',
tpConta: 0,
nrAgencia: '1234'
},
dtHrRecepcaoPspRecebedor: '2024-09-20T09:25:49.025Z',
infEntreClientes: 'Cobranca da Enel',
valor: 550
})
};
fetch('https://api.example.com/v1/pix-automatico/schedules/inbound/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/pix-automatico/schedules/inbound/validate"
payload = {
"dtVencimento": "2024-09-26",
"endToEndId": "E00038166202409201500y6j6mt9l0pi",
"finalidadeAgendamento": 0,
"idConciliacaoRecebedor": "JDPI2024092000000000000000000000001",
"idRecorrencia": "RR0435879820240919njua7shf40o",
"pagador": {
"cpfCnpj": "11111111111",
"ispb": "99999004",
"tpPessoa": 0
},
"recebedor": {
"cnpj": "61695227000193",
"ispb": "04358798",
"nome": "Enel",
"nrConta": "12345678",
"tpConta": 0,
"nrAgencia": "1234"
},
"dtHrRecepcaoPspRecebedor": "2024-09-20T09:25:49.025Z",
"infEntreClientes": "Cobranca da Enel",
"valor": 550
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"dtHrValidacao": "2024-09-20T14:12:05.025Z",
"resultado": 1,
"motivoRejeicao": "AC06"
}{
"code": "<string>",
"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": "<string>",
"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": "<string>",
"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": "<string>",
"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"
}
}Validate an inbound PIX Automatico payment instruction
Validates an inbound scheduled payment instruction (pain.013) pushed by JDPI (section 5.3.1, the plugin is the server). The SGCT validates the charge data against the previously-confirmed authorization; the result is returned inline (200) as a Valido=1/Invalido=0 outcome, never an HTTP error.
POST
/
v1
/
pix-automatico
/
schedules
/
inbound
/
validate
Validate an inbound PIX Automatico payment instruction
curl --request POST \
--url https://api.example.com/v1/pix-automatico/schedules/inbound/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"dtVencimento": "2024-09-26",
"endToEndId": "E00038166202409201500y6j6mt9l0pi",
"finalidadeAgendamento": 0,
"idConciliacaoRecebedor": "JDPI2024092000000000000000000000001",
"idRecorrencia": "RR0435879820240919njua7shf40o",
"pagador": {
"cpfCnpj": "11111111111",
"ispb": "99999004",
"tpPessoa": 0
},
"recebedor": {
"cnpj": "61695227000193",
"ispb": "04358798",
"nome": "Enel",
"nrConta": "12345678",
"tpConta": 0,
"nrAgencia": "1234"
},
"dtHrRecepcaoPspRecebedor": "2024-09-20T09:25:49.025Z",
"infEntreClientes": "Cobranca da Enel",
"valor": 550
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/pix-automatico/schedules/inbound/validate"
payload := strings.NewReader("{\n \"dtVencimento\": \"2024-09-26\",\n \"endToEndId\": \"E00038166202409201500y6j6mt9l0pi\",\n \"finalidadeAgendamento\": 0,\n \"idConciliacaoRecebedor\": \"JDPI2024092000000000000000000000001\",\n \"idRecorrencia\": \"RR0435879820240919njua7shf40o\",\n \"pagador\": {\n \"cpfCnpj\": \"11111111111\",\n \"ispb\": \"99999004\",\n \"tpPessoa\": 0\n },\n \"recebedor\": {\n \"cnpj\": \"61695227000193\",\n \"ispb\": \"04358798\",\n \"nome\": \"Enel\",\n \"nrConta\": \"12345678\",\n \"tpConta\": 0,\n \"nrAgencia\": \"1234\"\n },\n \"dtHrRecepcaoPspRecebedor\": \"2024-09-20T09:25:49.025Z\",\n \"infEntreClientes\": \"Cobranca da Enel\",\n \"valor\": 550\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))
}const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dtVencimento: '2024-09-26',
endToEndId: 'E00038166202409201500y6j6mt9l0pi',
finalidadeAgendamento: 0,
idConciliacaoRecebedor: 'JDPI2024092000000000000000000000001',
idRecorrencia: 'RR0435879820240919njua7shf40o',
pagador: {cpfCnpj: '11111111111', ispb: '99999004', tpPessoa: 0},
recebedor: {
cnpj: '61695227000193',
ispb: '04358798',
nome: 'Enel',
nrConta: '12345678',
tpConta: 0,
nrAgencia: '1234'
},
dtHrRecepcaoPspRecebedor: '2024-09-20T09:25:49.025Z',
infEntreClientes: 'Cobranca da Enel',
valor: 550
})
};
fetch('https://api.example.com/v1/pix-automatico/schedules/inbound/validate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.example.com/v1/pix-automatico/schedules/inbound/validate"
payload = {
"dtVencimento": "2024-09-26",
"endToEndId": "E00038166202409201500y6j6mt9l0pi",
"finalidadeAgendamento": 0,
"idConciliacaoRecebedor": "JDPI2024092000000000000000000000001",
"idRecorrencia": "RR0435879820240919njua7shf40o",
"pagador": {
"cpfCnpj": "11111111111",
"ispb": "99999004",
"tpPessoa": 0
},
"recebedor": {
"cnpj": "61695227000193",
"ispb": "04358798",
"nome": "Enel",
"nrConta": "12345678",
"tpConta": 0,
"nrAgencia": "1234"
},
"dtHrRecepcaoPspRecebedor": "2024-09-20T09:25:49.025Z",
"infEntreClientes": "Cobranca da Enel",
"valor": 550
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"dtHrValidacao": "2024-09-20T14:12:05.025Z",
"resultado": 1,
"motivoRejeicao": "AC06"
}{
"code": "<string>",
"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": "<string>",
"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": "<string>",
"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": "<string>",
"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"
}
}Body
application/json
Was this page helpful?

