Skip to main content
POST
/
v1
/
orders
/
{order_code}
/
confirmations
/
{confirmation_id}
/
resend
Reenviar confirmação do pedido
curl --request POST \
  --url https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations/{confirmation_id}/resend \
  --header 'Authorization: Bearer <token>' \
  --header 'account: <account>'
import requests

url = "https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations/{confirmation_id}/resend"

headers = {
"account": "<account>",
"Authorization": "Bearer <token>"
}

response = requests.post(url, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {account: '<account>', Authorization: 'Bearer <token>'}
};

fetch('https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations/{confirmation_id}/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/v1/orders/{order_code}/confirmations/{confirmation_id}/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>",
"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/{confirmation_id}/resend"

req, _ := http.NewRequest("POST", 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.post("https://sandbox.4seletpay.com.br/api/v1/orders/{order_code}/confirmations/{confirmation_id}/resend")
.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/{confirmation_id}/resend")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["account"] = '<account>'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "mensagem": "Confirmação reenviada com sucesso.",
  "erro": false,
  "mensagenserro": [],
  "codigoretorno": 201,
  "id": "d5e6f7a8-b9c0-1234-5678-abcdef012345",
  "data": []
}
Requer o header account. Reenvia o código de verificação para o cliente (novo OTP por SMS/e-mail). Esta rota não aceita body — apenas os parâmetros de path.
Use esta rota quando o cliente não recebeu o código original ou quando o código expirou. Um novo código é gerado com validade de 15 minutos, e confirmações anteriores pendentes são invalidadas.

Authorizations

Authorization
string
header
required

Token JWT obtido via POST /v1/login. Envie no header Authorization: Bearer <token>.

Headers

account
string
required

Código da conta à qual a operação se aplica

Example:

"acc_abc123xyz"

Path Parameters

order_code
string
required

Código único do pedido

Example:

"ord_abc123xyz"

confirmation_id
string<uuid>
required

ID (UUID) da confirmação

Example:

"d5e6f7a8-b9c0-1234-5678-abcdef012345"

Response

Confirmação reenviada com sucesso

mensagem
string
Example:

"Operação realizada com sucesso"

erro
boolean
Example:

false

mensagenserro
string[]
Example:
[]
codigoretorno
integer
Example:

200

id
string
Example:

"00000000-0000-0000-0000-000000000000"

data
any | null

Dados retornados pela operação (objeto, array ou vazio)