Listar confirmações do pedido
curl --request GET \
--url https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations \
--header 'Authorization: Bearer <token>' \
--header 'account: <account>'import requests
url = "https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations"
headers = {
"account": "<account>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {account: '<account>', Authorization: 'Bearer <token>'}
};
fetch('https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations', 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://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"account: <account>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("account", "<account>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations")
.header("account", "<account>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["account"] = '<account>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "d5e6f7a8-b9c0-1234-5678-abcdef012345",
"type": "otp",
"status": "pending",
"expires_at": "2026-03-11T10:15:00.000000Z"
}
]
}{
"mensagem": "Um erro inesperado acabou de acontecer.",
"erro": true,
"mensagenserro": [
"Pedido não encontrado."
],
"codigoretorno": 400,
"id": "00000000-0000-0000-0000-000000000000",
"data": []
}{
"mensagem": "Unauthenticated.",
"erro": true,
"mensagenserro": [],
"codigoretorno": 401,
"id": "00000000-0000-0000-0000-000000000000",
"data": []
}Pedidos
Listar Confirmações
Retorna a lista de confirmações (desafios de segurança) associadas a um pedido, ordenadas por data de criação (mais recente primeiro). Usado quando um pedido entra no status Challenged e requer verificação adicional (ex: OTP). Esta rota NÃO retorna o envelope padrão APIReturnUtil; retorna diretamente {"data": [...]}.
GET
/
v1
/
orders
/
{order_code}
/
confirmations
Listar confirmações do pedido
curl --request GET \
--url https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations \
--header 'Authorization: Bearer <token>' \
--header 'account: <account>'import requests
url = "https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations"
headers = {
"account": "<account>",
"Authorization": "Bearer <token>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {account: '<account>', Authorization: 'Bearer <token>'}
};
fetch('https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations', 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://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"account: <account>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("account", "<account>")
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations")
.header("account", "<account>")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["account"] = '<account>'
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "d5e6f7a8-b9c0-1234-5678-abcdef012345",
"type": "otp",
"status": "pending",
"expires_at": "2026-03-11T10:15:00.000000Z"
}
]
}{
"mensagem": "Um erro inesperado acabou de acontecer.",
"erro": true,
"mensagenserro": [
"Pedido não encontrado."
],
"codigoretorno": 400,
"id": "00000000-0000-0000-0000-000000000000",
"data": []
}{
"mensagem": "Unauthenticated.",
"erro": true,
"mensagenserro": [],
"codigoretorno": 401,
"id": "00000000-0000-0000-0000-000000000000",
"data": []
}Requer o header
account. Use esta rota após um pedido entrar em status Challenged para obter os desafios pendentes.
A resposta retorna diretamente {"data": [...]}, sem o envelope padrão APIReturnUtil.
Os campos retornados são: id, type, status e expires_at.Authorizations
Token JWT obtido via POST /v1/login. Envie no header Authorization: Bearer <token>.
Headers
Código da conta à qual a operação se aplica
Example:
"acc_abc123xyz"
Path Parameters
Código único do pedido
Example:
"ord_abc123xyz"
Response
Lista de confirmações retornada com sucesso
Resposta da listagem de confirmações. Esta rota NÃO usa o envelope APIReturnUtil; retorna diretamente um objeto com a propriedade data.
Show child attributes
Show child attributes
