curl --request POST \
--url https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend', 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/v2/orders/{id}/confirm/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/v2/orders/{id}/confirm/resend"
req, _ := http.NewRequest("POST", url, nil)
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.post("https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "482913",
"object": "order",
"status": "requires_action",
"currency": "brl",
"amount": 10000,
"payments": [
{
"id": "cha_8Kq2Lm9XvB3nT7pZ",
"object": "payment_intent",
"status": "requires_action",
"amount": 10000,
"amount_refunded": 0,
"currency": "brl",
"payment_method_details": {
"type": "card"
}
}
],
"next_action": {
"type": "otp_confirmation",
"otp": {
"confirmation_id": "5f1c2a9e-7b3d-4e8f-9a6c-1d2e3f4a5b6c",
"expires_at": "2026-09-14T12:15:00.000000Z"
}
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_secret",
"message": "Invalid API secret."
}
}{
"error": {
"type": "invalid_request_error",
"code": "account_requests_blocked",
"message": "As requisições desta conta estão bloqueadas.",
"customer_message": "Não foi possível concluir sua transação. Tente novamente mais tarde."
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "Recurso \"order\" não encontrado."
}
}{
"error": {
"type": "invalid_request_error",
"code": "order_not_confirmable",
"message": "Este pedido não está aguardando um código de confirmação."
}
}{
"message": "Too Many Attempts."
}Reenviar código de verificação
Reenvia o código de verificação ao pagador de um pedido aguardando verificação. Limite de 5 requisições por minuto, contadas por IP de origem: uma plataforma que atende várias contas a partir do mesmo servidor divide esse limite entre todas elas.
curl --request POST \
--url https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend', 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/v2/orders/{id}/confirm/resend",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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/v2/orders/{id}/confirm/resend"
req, _ := http.NewRequest("POST", url, nil)
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.post("https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.4seletpay.com.br/api/v2/orders/{id}/confirm/resend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "482913",
"object": "order",
"status": "requires_action",
"currency": "brl",
"amount": 10000,
"payments": [
{
"id": "cha_8Kq2Lm9XvB3nT7pZ",
"object": "payment_intent",
"status": "requires_action",
"amount": 10000,
"amount_refunded": 0,
"currency": "brl",
"payment_method_details": {
"type": "card"
}
}
],
"next_action": {
"type": "otp_confirmation",
"otp": {
"confirmation_id": "5f1c2a9e-7b3d-4e8f-9a6c-1d2e3f4a5b6c",
"expires_at": "2026-09-14T12:15:00.000000Z"
}
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_secret",
"message": "Invalid API secret."
}
}{
"error": {
"type": "invalid_request_error",
"code": "account_requests_blocked",
"message": "As requisições desta conta estão bloqueadas.",
"customer_message": "Não foi possível concluir sua transação. Tente novamente mais tarde."
}
}{
"error": {
"type": "invalid_request_error",
"code": "resource_missing",
"message": "Recurso \"order\" não encontrado."
}
}{
"error": {
"type": "invalid_request_error",
"code": "order_not_confirmable",
"message": "Este pedido não está aguardando um código de confirmação."
}
}{
"message": "Too Many Attempts."
}next_action.type igual a otp_confirmation). Caso contrário, a resposta é 422 (order_not_confirmable).429 fora do envelope de erro da v2 ({ "message": "Too Many Attempts." }), com o header Retry-After.Idempotency-Key. A resposta traz o pedido atualizado, com o novo next_action.otp.expires_at.Authorizations
Chave de API (secret key) da conta, no formato sk_live_... (produção) ou sk_test_... (Dev mode). Envie no header Authorization: Bearer <chave>. Autentica todas as rotas da API v2 e as rotas de Análise de Fraude. A chave identifica a conta, então a API v2 não usa o header account. Uma chave só é aceita no ambiente em que foi criada. Gere a sua no dashboard em Configurações → Chaves de API.
Path Parameters
Identificador do recurso (o campo id devolvido pela API)
Response
Código reenviado
Pedido. O status é a agregação dos seus pagamentos. processing: em processamento. requires_capture: cartão autorizado, aguardando captura. requires_action: PIX aguardando pagamento ou verificação por código (veja next_action). paid: pago. failed: recusado (veja failure_reason). canceled: cancelado. refunded e partially_refunded: estornado. chargeback: contestado.
Código do pedido
"482913"
order processing, requires_capture, requires_action, paid, failed, canceled, refunded, partially_refunded, chargeback "brl"
Valor total, em centavos
10000
Show child attributes
Show child attributes
O que precisa acontecer para o pagamento seguir. pix_display_qr_code: exiba o QR Code para o pagador. otp_confirmation: a análise de fraude pediu verificação — nada é cobrado até o código ser confirmado na rota /confirm.
Show child attributes
Show child attributes
Motivo da recusa. Presente só quando o status é failed
Show child attributes
Show child attributes
