Confirm a scanned Pix Automático recurrence
curl --request POST \
--url https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Account-Id: <x-account-id>' \
--data '
{
"decision": "ACCEPTED",
"idRec": "RR0000000000000000001",
"journey": "J2",
"receiverMaxAmount": "500.00"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm"
payload := strings.NewReader("{\n \"decision\": \"ACCEPTED\",\n \"idRec\": \"RR0000000000000000001\",\n \"journey\": \"J2\",\n \"receiverMaxAmount\": \"500.00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Account-Id", "<x-account-id>")
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: {
'X-Account-Id': '<x-account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
decision: 'ACCEPTED',
idRec: 'RR0000000000000000001',
journey: 'J2',
receiverMaxAmount: '500.00'
})
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm"
payload = {
"decision": "ACCEPTED",
"idRec": "RR0000000000000000001",
"journey": "J2",
"receiverMaxAmount": "500.00"
}
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"authorizationRequest": {
"accountId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"amount": {
"fixed": "29.90",
"max": "500.00",
"min": "10.00"
},
"createdAt": "2023-11-07T05:31:56Z",
"destination": {
"account": "123456",
"accountType": "CACC",
"bank": "30306294",
"branch": "0001",
"document": "11222333000181",
"key": "contato@streaming.co",
"name": "Streaming Co",
"personType": "LEGAL_PERSON"
},
"externalRequestId": "RREC-2026-04-001",
"id": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"journey": "J1",
"periodicity": {
"type": "MONTHLY",
"customDays": 30
},
"retryPolicy": "RETRY_3X_7D",
"status": "PENDING",
"updatedAt": "2023-11-07T05:31:56Z",
"validUntil": "2026-06-30T23:59:59Z",
"acceptedMaxAmount": "500.00",
"approvingAt": "2023-11-07T05:31:56Z",
"cancellationCode": "ACCL",
"cancellationRequester": "PSP_PAYEE",
"cancelledAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"description": "Streaming subscription",
"expiredAt": "2023-11-07T05:31:56Z",
"firstChargeId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"payeeRejectionCode": "MD20",
"payeeRejectionDescription": "<string>",
"rejectedAt": "2023-11-07T05:31:56Z",
"replyFailedAt": "2023-11-07T05:31:56Z",
"replyFailureReason": "<string>"
}
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}Confirm a scanned Pix Automático recurrence
Approve or reject a recurrence scanned from a QR Code (journeys J2 and J4 step 2). X-Idempotency is optional but recommended; replays within the window are de-duplicated.
POST
/
v1
/
recurrences
/
payer
/
qr
/
confirm
Confirm a scanned Pix Automático recurrence
curl --request POST \
--url https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Account-Id: <x-account-id>' \
--data '
{
"decision": "ACCEPTED",
"idRec": "RR0000000000000000001",
"journey": "J2",
"receiverMaxAmount": "500.00"
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm"
payload := strings.NewReader("{\n \"decision\": \"ACCEPTED\",\n \"idRec\": \"RR0000000000000000001\",\n \"journey\": \"J2\",\n \"receiverMaxAmount\": \"500.00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Account-Id", "<x-account-id>")
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: {
'X-Account-Id': '<x-account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
decision: 'ACCEPTED',
idRec: 'RR0000000000000000001',
journey: 'J2',
receiverMaxAmount: '500.00'
})
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/recurrences/payer/qr/confirm"
payload = {
"decision": "ACCEPTED",
"idRec": "RR0000000000000000001",
"journey": "J2",
"receiverMaxAmount": "500.00"
}
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"authorizationRequest": {
"accountId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"amount": {
"fixed": "29.90",
"max": "500.00",
"min": "10.00"
},
"createdAt": "2023-11-07T05:31:56Z",
"destination": {
"account": "123456",
"accountType": "CACC",
"bank": "30306294",
"branch": "0001",
"document": "11222333000181",
"key": "contato@streaming.co",
"name": "Streaming Co",
"personType": "LEGAL_PERSON"
},
"externalRequestId": "RREC-2026-04-001",
"id": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"journey": "J1",
"periodicity": {
"type": "MONTHLY",
"customDays": 30
},
"retryPolicy": "RETRY_3X_7D",
"status": "PENDING",
"updatedAt": "2023-11-07T05:31:56Z",
"validUntil": "2026-06-30T23:59:59Z",
"acceptedMaxAmount": "500.00",
"approvingAt": "2023-11-07T05:31:56Z",
"cancellationCode": "ACCL",
"cancellationRequester": "PSP_PAYEE",
"cancelledAt": "2023-11-07T05:31:56Z",
"confirmedAt": "2023-11-07T05:31:56Z",
"description": "Streaming subscription",
"expiredAt": "2023-11-07T05:31:56Z",
"firstChargeId": "019cf6ef-e418-7ced-80c0-7b9816faa798",
"payeeRejectionCode": "MD20",
"payeeRejectionDescription": "<string>",
"rejectedAt": "2023-11-07T05:31:56Z",
"replyFailedAt": "2023-11-07T05:31:56Z",
"replyFailureReason": "<string>"
}
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}Authorizations
JWT bearer token issued by the identity provider.
Headers
Account ID (UUID format)
Idempotency key (optional; replays within the window are de-duplicated).
Body
application/json
Available options:
ACCEPTED, REJECTED Minimum string length:
1Example:
"ACCEPTED"
Required string length:
1 - 64Example:
"RR0000000000000000001"
Available options:
J2, J4 Minimum string length:
1Example:
"J2"
Example:
"500.00"
Response
OK
Show child attributes
Show child attributes
Was this page helpful?

