curl --request GET \
--url https://sandbox.4seletpay.com.br/api/v2/cards/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.4seletpay.com.br/api/v2/cards/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.4seletpay.com.br/api/v2/cards/{id}', 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/cards/{id}",
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>"
],
]);
$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/cards/{id}"
req, _ := http.NewRequest("GET", 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.get("https://sandbox.4seletpay.com.br/api/v2/cards/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.4seletpay.com.br/api/v2/cards/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "9b2f5c8e-3a1d-4f7b-8c6e-2d9a1b4c5e6f",
"object": "card",
"brand": "visa",
"first_six": "411111",
"last_four": "1111",
"holder_name": "João Silva",
"exp_month": 12,
"exp_year": 2030,
"type": "credit",
"tokenization_status": "tokenized",
"customer": {
"name": "João Silva",
"email": "joao@exemplo.com.br"
},
"created_at": "2026-09-14T12:00:00-03:00"
}{
"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 \"card\" não encontrado."
}
}{
"message": "Too Many Attempts."
}Consultar cartão
Consulta um cartão salvo pelo id. Use para acompanhar o tokenization_status.
curl --request GET \
--url https://sandbox.4seletpay.com.br/api/v2/cards/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.4seletpay.com.br/api/v2/cards/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.4seletpay.com.br/api/v2/cards/{id}', 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/cards/{id}",
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>"
],
]);
$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/cards/{id}"
req, _ := http.NewRequest("GET", 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.get("https://sandbox.4seletpay.com.br/api/v2/cards/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.4seletpay.com.br/api/v2/cards/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "9b2f5c8e-3a1d-4f7b-8c6e-2d9a1b4c5e6f",
"object": "card",
"brand": "visa",
"first_six": "411111",
"last_four": "1111",
"holder_name": "João Silva",
"exp_month": 12,
"exp_year": 2030,
"type": "credit",
"tokenization_status": "tokenized",
"customer": {
"name": "João Silva",
"email": "joao@exemplo.com.br"
},
"created_at": "2026-09-14T12:00:00-03:00"
}{
"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 \"card\" não encontrado."
}
}{
"message": "Too Many Attempts."
}tokenization_status depois de salvar o cartão.id precisa ser o UUID do cartão. Um cartão de outra conta, ou inexistente, retorna 404 (resource_missing).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
Cartão encontrado
Cartão salvo. O número completo e o código de segurança nunca são devolvidos
Use este valor como card.token em pedidos, assinaturas e faturas
"9b2f5c8e-3a1d-4f7b-8c6e-2d9a1b4c5e6f"
card "visa"
"411111"
"1111"
"João Silva"
12
2030
credit, debit pending: tokenização em andamento. tokenized: concluída. failed: nenhuma adquirente conseguiu tokenizar. Um cartão com failed ainda pode ser usado em compras.
pending, tokenized, failed Show child attributes
Show child attributes
"2026-09-14T12:00:00-03:00"
