Gerar token 3DS
curl --request POST \
--url https://api.uvvipay.com.br/v1/3ds/generateToken \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>' \
--data '
{
"totalAmount": 1050,
"currency": "BRL"
}
'import requests
url = "https://api.uvvipay.com.br/v1/3ds/generateToken"
payload = {
"totalAmount": 1050,
"currency": "BRL"
}
headers = {
"client-secret": "<api-key>",
"client-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'client-secret': '<api-key>',
'client-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({totalAmount: 1050, currency: 'BRL'})
};
fetch('https://api.uvvipay.com.br/v1/3ds/generateToken', 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://api.uvvipay.com.br/v1/3ds/generateToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'totalAmount' => 1050,
'currency' => 'BRL'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"client-id: <api-key>",
"client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uvvipay.com.br/v1/3ds/generateToken"
payload := strings.NewReader("{\n \"totalAmount\": 1050,\n \"currency\": \"BRL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("client-secret", "<api-key>")
req.Header.Add("client-id", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.uvvipay.com.br/v1/3ds/generateToken")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"totalAmount\": 1050,\n \"currency\": \"BRL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/3ds/generateToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["client-secret"] = '<api-key>'
request["client-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"totalAmount\": 1050,\n \"currency\": \"BRL\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "SUCCESSFUL",
"data": [
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9...",
"tokenType": "bearer",
"expirationDate": "2026-01-15T16:25:24.241"
}
],
"error": [
{}
]
}3DS
Gerar token 3DS
Gera o access token JWT necessário para iniciar o fluxo de autenticação 3DS.
POST
/
v1
/
3ds
/
generateToken
Gerar token 3DS
curl --request POST \
--url https://api.uvvipay.com.br/v1/3ds/generateToken \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>' \
--data '
{
"totalAmount": 1050,
"currency": "BRL"
}
'import requests
url = "https://api.uvvipay.com.br/v1/3ds/generateToken"
payload = {
"totalAmount": 1050,
"currency": "BRL"
}
headers = {
"client-secret": "<api-key>",
"client-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'client-secret': '<api-key>',
'client-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({totalAmount: 1050, currency: 'BRL'})
};
fetch('https://api.uvvipay.com.br/v1/3ds/generateToken', 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://api.uvvipay.com.br/v1/3ds/generateToken",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'totalAmount' => 1050,
'currency' => 'BRL'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"client-id: <api-key>",
"client-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.uvvipay.com.br/v1/3ds/generateToken"
payload := strings.NewReader("{\n \"totalAmount\": 1050,\n \"currency\": \"BRL\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("client-secret", "<api-key>")
req.Header.Add("client-id", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://api.uvvipay.com.br/v1/3ds/generateToken")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"totalAmount\": 1050,\n \"currency\": \"BRL\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/3ds/generateToken")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["client-secret"] = '<api-key>'
request["client-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"totalAmount\": 1050,\n \"currency\": \"BRL\"\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "SUCCESSFUL",
"data": [
{
"accessToken": "eyJhbGciOiJIUzI1NiJ9...",
"tokenType": "bearer",
"expirationDate": "2026-01-15T16:25:24.241"
}
],
"error": [
{}
]
}Headers
Secret da credencial do merchant
ID público da credencial do merchant
Body
application/json
⌘I

