curl --request POST \
--url https://api.uvvipay.com.br/v1/payment-method-domains \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>' \
--data '
{
"domainName": "checkout.minhaloja.com.br"
}
'import requests
url = "https://api.uvvipay.com.br/v1/payment-method-domains"
payload = { "domainName": "checkout.minhaloja.com.br" }
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({domainName: 'checkout.minhaloja.com.br'})
};
fetch('https://api.uvvipay.com.br/v1/payment-method-domains', 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/payment-method-domains",
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([
'domainName' => 'checkout.minhaloja.com.br'
]),
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/payment-method-domains"
payload := strings.NewReader("{\n \"domainName\": \"checkout.minhaloja.com.br\"\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/payment-method-domains")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"domainName\": \"checkout.minhaloja.com.br\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/payment-method-domains")
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 \"domainName\": \"checkout.minhaloja.com.br\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domainName": "checkout.minhaloja.com.br",
"status": "pending",
"verifiedAt": "2023-11-07T05:31:56Z",
"lastVerificationError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"verificationFile": {
"path": "https://checkout.minhaloja.com.br/.well-known/apple-developer-merchantid-domain-association",
"content": "<string>"
}
}Registrar domínio
Registra um domínio do merchant para exibir carteiras digitais na web (Apple Pay hoje; Google Pay futuramente). O domínio nasce com status pending e passa a verified quando a verificação da carteira conclui. Para Apple Pay, isso exige hospedar o arquivo de associação em /.well-known/apple-developer-merchantid-domain-association. Idempotente: re-registrar um domínio existente devolve o registro atual.
curl --request POST \
--url https://api.uvvipay.com.br/v1/payment-method-domains \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>' \
--data '
{
"domainName": "checkout.minhaloja.com.br"
}
'import requests
url = "https://api.uvvipay.com.br/v1/payment-method-domains"
payload = { "domainName": "checkout.minhaloja.com.br" }
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({domainName: 'checkout.minhaloja.com.br'})
};
fetch('https://api.uvvipay.com.br/v1/payment-method-domains', 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/payment-method-domains",
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([
'domainName' => 'checkout.minhaloja.com.br'
]),
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/payment-method-domains"
payload := strings.NewReader("{\n \"domainName\": \"checkout.minhaloja.com.br\"\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/payment-method-domains")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"domainName\": \"checkout.minhaloja.com.br\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/payment-method-domains")
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 \"domainName\": \"checkout.minhaloja.com.br\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domainName": "checkout.minhaloja.com.br",
"status": "pending",
"verifiedAt": "2023-11-07T05:31:56Z",
"lastVerificationError": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"verificationFile": {
"path": "https://checkout.minhaloja.com.br/.well-known/apple-developer-merchantid-domain-association",
"content": "<string>"
}
}Headers
Secret da credencial do merchant
ID público da credencial do merchant
Body
Domínio onde o botão da carteira (Apple Pay; Google Pay futuramente) será exibido, exatamente como o usuário o acessa: hostname puro, sem esquema, porta ou caminho. Subdomínios contam separadamente.
255"checkout.minhaloja.com.br"
Response
Domínio registrado (ou já existente)
"checkout.minhaloja.com.br"
pending: aguardando verificação junto à carteira; verified: habilitado; failed: última verificação falhou (ver lastVerificationError)
pending, verified, failed Último erro devolvido pela carteira ao tentar verificar o domínio
Arquivo de verificação a hospedar no domínio antes do validate (presente na resposta do registro)
Show child attributes
Show child attributes

