curl --request PUT \
--url https://v4pay-api.vercel.app/auth/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accept_production_terms": true,
"name": "Maria Oliveira",
"company": "Enriquece AI",
"cnpj": "12345678000195",
"cpf": "52998224725",
"phone": "11954958486",
"notify_payment_email": true,
"receipt_email": true
}
'import requests
url = "https://v4pay-api.vercel.app/auth/profile"
payload = {
"accept_production_terms": True,
"name": "Maria Oliveira",
"company": "Enriquece AI",
"cnpj": "12345678000195",
"cpf": "52998224725",
"phone": "11954958486",
"notify_payment_email": True,
"receipt_email": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accept_production_terms: true,
name: 'Maria Oliveira',
company: 'Enriquece AI',
cnpj: '12345678000195',
cpf: '52998224725',
phone: '11954958486',
notify_payment_email: true,
receipt_email: true
})
};
fetch('https://v4pay-api.vercel.app/auth/profile', 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://v4pay-api.vercel.app/auth/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accept_production_terms' => true,
'name' => 'Maria Oliveira',
'company' => 'Enriquece AI',
'cnpj' => '12345678000195',
'cpf' => '52998224725',
'phone' => '11954958486',
'notify_payment_email' => true,
'receipt_email' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://v4pay-api.vercel.app/auth/profile"
payload := strings.NewReader("{\n \"accept_production_terms\": true,\n \"name\": \"Maria Oliveira\",\n \"company\": \"Enriquece AI\",\n \"cnpj\": \"12345678000195\",\n \"cpf\": \"52998224725\",\n \"phone\": \"11954958486\",\n \"notify_payment_email\": true,\n \"receipt_email\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://v4pay-api.vercel.app/auth/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accept_production_terms\": true,\n \"name\": \"Maria Oliveira\",\n \"company\": \"Enriquece AI\",\n \"cnpj\": \"12345678000195\",\n \"cpf\": \"52998224725\",\n \"phone\": \"11954958486\",\n \"notify_payment_email\": true,\n \"receipt_email\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v4pay-api.vercel.app/auth/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accept_production_terms\": true,\n \"name\": \"Maria Oliveira\",\n \"company\": \"Enriquece AI\",\n \"cnpj\": \"12345678000195\",\n \"cpf\": \"52998224725\",\n \"phone\": \"11954958486\",\n \"notify_payment_email\": true,\n \"receipt_email\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"user": {
"is_admin": true,
"production_status": "sandbox",
"production_requested_at": "2023-11-07T05:31:56Z",
"production_reviewed_at": "2023-11-07T05:31:56Z",
"production_reject_reason": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Maria Oliveira",
"email": "maria@empresa.com.br",
"cnpj": "12345678000195",
"company": "Enriquece AI",
"cpf": "52998224725",
"phone": "11954958486",
"notify_payment_email": true,
"receipt_email": true,
"created_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"message": "<string>"
}
}{
"error": "Token JWT ou chave de API ausente"
}{
"error": {
"message": "<string>"
}
}Atualizar a própria conta
Atualiza os dados da conta do token: nome pessoal, nome da loja (company), CNPJ, CPF, telefone e preferências de e-mail. Envie só os campos que quer alterar; null ou string vazia remove os opcionais.
curl --request PUT \
--url https://v4pay-api.vercel.app/auth/profile \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"accept_production_terms": true,
"name": "Maria Oliveira",
"company": "Enriquece AI",
"cnpj": "12345678000195",
"cpf": "52998224725",
"phone": "11954958486",
"notify_payment_email": true,
"receipt_email": true
}
'import requests
url = "https://v4pay-api.vercel.app/auth/profile"
payload = {
"accept_production_terms": True,
"name": "Maria Oliveira",
"company": "Enriquece AI",
"cnpj": "12345678000195",
"cpf": "52998224725",
"phone": "11954958486",
"notify_payment_email": True,
"receipt_email": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
accept_production_terms: true,
name: 'Maria Oliveira',
company: 'Enriquece AI',
cnpj: '12345678000195',
cpf: '52998224725',
phone: '11954958486',
notify_payment_email: true,
receipt_email: true
})
};
fetch('https://v4pay-api.vercel.app/auth/profile', 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://v4pay-api.vercel.app/auth/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'accept_production_terms' => true,
'name' => 'Maria Oliveira',
'company' => 'Enriquece AI',
'cnpj' => '12345678000195',
'cpf' => '52998224725',
'phone' => '11954958486',
'notify_payment_email' => true,
'receipt_email' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://v4pay-api.vercel.app/auth/profile"
payload := strings.NewReader("{\n \"accept_production_terms\": true,\n \"name\": \"Maria Oliveira\",\n \"company\": \"Enriquece AI\",\n \"cnpj\": \"12345678000195\",\n \"cpf\": \"52998224725\",\n \"phone\": \"11954958486\",\n \"notify_payment_email\": true,\n \"receipt_email\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.put("https://v4pay-api.vercel.app/auth/profile")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"accept_production_terms\": true,\n \"name\": \"Maria Oliveira\",\n \"company\": \"Enriquece AI\",\n \"cnpj\": \"12345678000195\",\n \"cpf\": \"52998224725\",\n \"phone\": \"11954958486\",\n \"notify_payment_email\": true,\n \"receipt_email\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://v4pay-api.vercel.app/auth/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"accept_production_terms\": true,\n \"name\": \"Maria Oliveira\",\n \"company\": \"Enriquece AI\",\n \"cnpj\": \"12345678000195\",\n \"cpf\": \"52998224725\",\n \"phone\": \"11954958486\",\n \"notify_payment_email\": true,\n \"receipt_email\": true\n}"
response = http.request(request)
puts response.read_body{
"data": {
"user": {
"is_admin": true,
"production_status": "sandbox",
"production_requested_at": "2023-11-07T05:31:56Z",
"production_reviewed_at": "2023-11-07T05:31:56Z",
"production_reject_reason": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Maria Oliveira",
"email": "maria@empresa.com.br",
"cnpj": "12345678000195",
"company": "Enriquece AI",
"cpf": "52998224725",
"phone": "11954958486",
"notify_payment_email": true,
"receipt_email": true,
"created_at": "2023-11-07T05:31:56Z"
}
}
}{
"error": {
"message": "<string>"
}
}{
"error": "Token JWT ou chave de API ausente"
}{
"error": {
"message": "<string>"
}
}Authorizations
Token JWT obtido em /auth/login, enviado no cabeçalho Authorization no formato Bearer <token>.
Body
true registra o aceite dos termos para ativar a produção (production_terms_accepted_at). Nunca desfaz.
Nome pessoal do usuário.
"Maria Oliveira"
Nome da loja exibido no painel.
"Enriquece AI"
CNPJ da loja (somente números ou formatado).
"12345678000195"
CPF do usuário (somente números ou formatado).
"52998224725"
Telefone com DDD (10 ou 11 dígitos).
"11954958486"
Receber e-mail a cada pagamento recebido.
Enviar comprovante por e-mail ao cliente após a compra.
Response
Conta atualizada.
Show child attributes
Show child attributes