Atualizar dados da subconta
curl --request PATCH \
--url https://api.uvvipay.com.br/v1/submerchants/{internalId} \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>' \
--data '
{
"url": "https://exemplo.com.br",
"phone": "11999999999",
"addressZipCode": "01310100",
"addressStreet": "Avenida Paulista",
"addressStreetNumber": "1000",
"addressComplement": "Conjunto 101",
"addressNeighborhood": "Bela Vista",
"addressCity": "São Paulo",
"addressState": "SP",
"addressCountry": "BR"
}
'import requests
url = "https://api.uvvipay.com.br/v1/submerchants/{internalId}"
payload = {
"url": "https://exemplo.com.br",
"phone": "11999999999",
"addressZipCode": "01310100",
"addressStreet": "Avenida Paulista",
"addressStreetNumber": "1000",
"addressComplement": "Conjunto 101",
"addressNeighborhood": "Bela Vista",
"addressCity": "São Paulo",
"addressState": "SP",
"addressCountry": "BR"
}
headers = {
"client-secret": "<api-key>",
"client-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'client-secret': '<api-key>',
'client-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://exemplo.com.br',
phone: '11999999999',
addressZipCode: '01310100',
addressStreet: 'Avenida Paulista',
addressStreetNumber: '1000',
addressComplement: 'Conjunto 101',
addressNeighborhood: 'Bela Vista',
addressCity: 'São Paulo',
addressState: 'SP',
addressCountry: 'BR'
})
};
fetch('https://api.uvvipay.com.br/v1/submerchants/{internalId}', 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/submerchants/{internalId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://exemplo.com.br',
'phone' => '11999999999',
'addressZipCode' => '01310100',
'addressStreet' => 'Avenida Paulista',
'addressStreetNumber' => '1000',
'addressComplement' => 'Conjunto 101',
'addressNeighborhood' => 'Bela Vista',
'addressCity' => 'São Paulo',
'addressState' => 'SP',
'addressCountry' => '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/submerchants/{internalId}"
payload := strings.NewReader("{\n \"url\": \"https://exemplo.com.br\",\n \"phone\": \"11999999999\",\n \"addressZipCode\": \"01310100\",\n \"addressStreet\": \"Avenida Paulista\",\n \"addressStreetNumber\": \"1000\",\n \"addressComplement\": \"Conjunto 101\",\n \"addressNeighborhood\": \"Bela Vista\",\n \"addressCity\": \"São Paulo\",\n \"addressState\": \"SP\",\n \"addressCountry\": \"BR\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.uvvipay.com.br/v1/submerchants/{internalId}")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://exemplo.com.br\",\n \"phone\": \"11999999999\",\n \"addressZipCode\": \"01310100\",\n \"addressStreet\": \"Avenida Paulista\",\n \"addressStreetNumber\": \"1000\",\n \"addressComplement\": \"Conjunto 101\",\n \"addressNeighborhood\": \"Bela Vista\",\n \"addressCity\": \"São Paulo\",\n \"addressState\": \"SP\",\n \"addressCountry\": \"BR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/submerchants/{internalId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["client-secret"] = '<api-key>'
request["client-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://exemplo.com.br\",\n \"phone\": \"11999999999\",\n \"addressZipCode\": \"01310100\",\n \"addressStreet\": \"Avenida Paulista\",\n \"addressStreetNumber\": \"1000\",\n \"addressComplement\": \"Conjunto 101\",\n \"addressNeighborhood\": \"Bela Vista\",\n \"addressCity\": \"São Paulo\",\n \"addressState\": \"SP\",\n \"addressCountry\": \"BR\"\n}"
response = http.request(request)
puts response.read_bodySubcontas
Atualizar dados
Atualiza dados cadastrais da subconta. Não permite alterar status ou dados bancários.
PATCH
/
v1
/
submerchants
/
{internalId}
Atualizar dados da subconta
curl --request PATCH \
--url https://api.uvvipay.com.br/v1/submerchants/{internalId} \
--header 'Content-Type: application/json' \
--header 'client-id: <api-key>' \
--header 'client-secret: <api-key>' \
--data '
{
"url": "https://exemplo.com.br",
"phone": "11999999999",
"addressZipCode": "01310100",
"addressStreet": "Avenida Paulista",
"addressStreetNumber": "1000",
"addressComplement": "Conjunto 101",
"addressNeighborhood": "Bela Vista",
"addressCity": "São Paulo",
"addressState": "SP",
"addressCountry": "BR"
}
'import requests
url = "https://api.uvvipay.com.br/v1/submerchants/{internalId}"
payload = {
"url": "https://exemplo.com.br",
"phone": "11999999999",
"addressZipCode": "01310100",
"addressStreet": "Avenida Paulista",
"addressStreetNumber": "1000",
"addressComplement": "Conjunto 101",
"addressNeighborhood": "Bela Vista",
"addressCity": "São Paulo",
"addressState": "SP",
"addressCountry": "BR"
}
headers = {
"client-secret": "<api-key>",
"client-id": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'client-secret': '<api-key>',
'client-id': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: 'https://exemplo.com.br',
phone: '11999999999',
addressZipCode: '01310100',
addressStreet: 'Avenida Paulista',
addressStreetNumber: '1000',
addressComplement: 'Conjunto 101',
addressNeighborhood: 'Bela Vista',
addressCity: 'São Paulo',
addressState: 'SP',
addressCountry: 'BR'
})
};
fetch('https://api.uvvipay.com.br/v1/submerchants/{internalId}', 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/submerchants/{internalId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://exemplo.com.br',
'phone' => '11999999999',
'addressZipCode' => '01310100',
'addressStreet' => 'Avenida Paulista',
'addressStreetNumber' => '1000',
'addressComplement' => 'Conjunto 101',
'addressNeighborhood' => 'Bela Vista',
'addressCity' => 'São Paulo',
'addressState' => 'SP',
'addressCountry' => '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/submerchants/{internalId}"
payload := strings.NewReader("{\n \"url\": \"https://exemplo.com.br\",\n \"phone\": \"11999999999\",\n \"addressZipCode\": \"01310100\",\n \"addressStreet\": \"Avenida Paulista\",\n \"addressStreetNumber\": \"1000\",\n \"addressComplement\": \"Conjunto 101\",\n \"addressNeighborhood\": \"Bela Vista\",\n \"addressCity\": \"São Paulo\",\n \"addressState\": \"SP\",\n \"addressCountry\": \"BR\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.uvvipay.com.br/v1/submerchants/{internalId}")
.header("client-secret", "<api-key>")
.header("client-id", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://exemplo.com.br\",\n \"phone\": \"11999999999\",\n \"addressZipCode\": \"01310100\",\n \"addressStreet\": \"Avenida Paulista\",\n \"addressStreetNumber\": \"1000\",\n \"addressComplement\": \"Conjunto 101\",\n \"addressNeighborhood\": \"Bela Vista\",\n \"addressCity\": \"São Paulo\",\n \"addressState\": \"SP\",\n \"addressCountry\": \"BR\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.uvvipay.com.br/v1/submerchants/{internalId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["client-secret"] = '<api-key>'
request["client-id"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://exemplo.com.br\",\n \"phone\": \"11999999999\",\n \"addressZipCode\": \"01310100\",\n \"addressStreet\": \"Avenida Paulista\",\n \"addressStreetNumber\": \"1000\",\n \"addressComplement\": \"Conjunto 101\",\n \"addressNeighborhood\": \"Bela Vista\",\n \"addressCity\": \"São Paulo\",\n \"addressState\": \"SP\",\n \"addressCountry\": \"BR\"\n}"
response = http.request(request)
puts response.read_bodyHeaders
Secret da credencial do merchant
ID público da credencial do merchant
Path Parameters
Identificador interno (UUID) da subconta
Body
application/json
URL do site da subconta
Maximum string length:
255Example:
"https://exemplo.com.br"
Telefone de contato
Maximum string length:
20Example:
"11999999999"
CEP do endereço
Maximum string length:
10Example:
"01310100"
Logradouro do endereço
Maximum string length:
255Example:
"Avenida Paulista"
Número do endereço
Maximum string length:
20Example:
"1000"
Complemento do endereço
Maximum string length:
255Example:
"Conjunto 101"
Bairro do endereço
Maximum string length:
100Example:
"Bela Vista"
Cidade do endereço
Maximum string length:
100Example:
"São Paulo"
UF do endereço (2 caracteres)
Maximum string length:
2Example:
"SP"
País do endereço (ISO Alpha-2)
Maximum string length:
2Example:
"BR"
Response
Subconta atualizada com sucesso
⌘I

