Atualizar Loja
curl --request PATCH \
--url https://api.selltrust.com.br/api/v1/store \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"terms": "<string>",
"cnpj": "<string>",
"logo": "<string>",
"favicon": "<string>",
"sub_domain": "<string>",
"template_config": {},
"social": {},
"address_requirement": {},
"phone_requirement": {}
}
'import requests
url = "https://api.selltrust.com.br/api/v1/store"
payload = {
"title": "<string>",
"description": "<string>",
"terms": "<string>",
"cnpj": "<string>",
"logo": "<string>",
"favicon": "<string>",
"sub_domain": "<string>",
"template_config": {},
"social": {},
"address_requirement": {},
"phone_requirement": {}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
terms: '<string>',
cnpj: '<string>',
logo: '<string>',
favicon: '<string>',
sub_domain: '<string>',
template_config: {},
social: {},
address_requirement: {},
phone_requirement: {}
})
};
fetch('https://api.selltrust.com.br/api/v1/store', 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.selltrust.com.br/api/v1/store",
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([
'title' => '<string>',
'description' => '<string>',
'terms' => '<string>',
'cnpj' => '<string>',
'logo' => '<string>',
'favicon' => '<string>',
'sub_domain' => '<string>',
'template_config' => [
],
'social' => [
],
'address_requirement' => [
],
'phone_requirement' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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://api.selltrust.com.br/api/v1/store"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"terms\": \"<string>\",\n \"cnpj\": \"<string>\",\n \"logo\": \"<string>\",\n \"favicon\": \"<string>\",\n \"sub_domain\": \"<string>\",\n \"template_config\": {},\n \"social\": {},\n \"address_requirement\": {},\n \"phone_requirement\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.selltrust.com.br/api/v1/store")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"terms\": \"<string>\",\n \"cnpj\": \"<string>\",\n \"logo\": \"<string>\",\n \"favicon\": \"<string>\",\n \"sub_domain\": \"<string>\",\n \"template_config\": {},\n \"social\": {},\n \"address_requirement\": {},\n \"phone_requirement\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"terms\": \"<string>\",\n \"cnpj\": \"<string>\",\n \"logo\": \"<string>\",\n \"favicon\": \"<string>\",\n \"sub_domain\": \"<string>\",\n \"template_config\": {},\n \"social\": {},\n \"address_requirement\": {},\n \"phone_requirement\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "uuid-da-loja",
"user_id": "uuid-do-proprietario",
"title": "Minha Loja",
"description": "Produtos digitais com entrega automática",
"terms": null,
"cnpj": null,
"logo": null,
"favicon": null,
"sub_domain": "minhaloja",
"active_template": "never",
"template_config": null,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z",
"partner_id": null,
"require_address": false,
"require_address_specific": false,
"require_address_category_ids": [],
"require_address_product_ids": [],
"require_phone": true,
"require_phone_optional": true,
"require_phone_specific": false,
"require_phone_category_ids": [],
"require_phone_product_ids": [],
"url": "https://minhaloja.selltrust.com.br",
"social": {
"instagram": "https://instagram.com/minhaloja",
"twitter": null,
"discord": null,
"youtube": null,
"facebook": null,
"tiktok": null,
"whatsapp": null,
"telegram": null
},
"address_requirement": {
"enabled": false,
"specific": false,
"category_ids": [],
"product_ids": [],
"selected_product_ids": []
},
"phone_requirement": {
"enabled": true,
"optional": true,
"specific": false,
"category_ids": [],
"product_ids": [],
"selected_product_ids": []
},
"payment_providers": [
{
"provider": "MISTIC_PAY",
"enabled": true,
"methods": [
"PIX"
]
}
]
}
Loja
Atualizar Loja
PATCH
/
api
/
v1
/
store
Atualizar Loja
curl --request PATCH \
--url https://api.selltrust.com.br/api/v1/store \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"terms": "<string>",
"cnpj": "<string>",
"logo": "<string>",
"favicon": "<string>",
"sub_domain": "<string>",
"template_config": {},
"social": {},
"address_requirement": {},
"phone_requirement": {}
}
'import requests
url = "https://api.selltrust.com.br/api/v1/store"
payload = {
"title": "<string>",
"description": "<string>",
"terms": "<string>",
"cnpj": "<string>",
"logo": "<string>",
"favicon": "<string>",
"sub_domain": "<string>",
"template_config": {},
"social": {},
"address_requirement": {},
"phone_requirement": {}
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: '<string>',
description: '<string>',
terms: '<string>',
cnpj: '<string>',
logo: '<string>',
favicon: '<string>',
sub_domain: '<string>',
template_config: {},
social: {},
address_requirement: {},
phone_requirement: {}
})
};
fetch('https://api.selltrust.com.br/api/v1/store', 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.selltrust.com.br/api/v1/store",
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([
'title' => '<string>',
'description' => '<string>',
'terms' => '<string>',
'cnpj' => '<string>',
'logo' => '<string>',
'favicon' => '<string>',
'sub_domain' => '<string>',
'template_config' => [
],
'social' => [
],
'address_requirement' => [
],
'phone_requirement' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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://api.selltrust.com.br/api/v1/store"
payload := strings.NewReader("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"terms\": \"<string>\",\n \"cnpj\": \"<string>\",\n \"logo\": \"<string>\",\n \"favicon\": \"<string>\",\n \"sub_domain\": \"<string>\",\n \"template_config\": {},\n \"social\": {},\n \"address_requirement\": {},\n \"phone_requirement\": {}\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.selltrust.com.br/api/v1/store")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"terms\": \"<string>\",\n \"cnpj\": \"<string>\",\n \"logo\": \"<string>\",\n \"favicon\": \"<string>\",\n \"sub_domain\": \"<string>\",\n \"template_config\": {},\n \"social\": {},\n \"address_requirement\": {},\n \"phone_requirement\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/store")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"title\": \"<string>\",\n \"description\": \"<string>\",\n \"terms\": \"<string>\",\n \"cnpj\": \"<string>\",\n \"logo\": \"<string>\",\n \"favicon\": \"<string>\",\n \"sub_domain\": \"<string>\",\n \"template_config\": {},\n \"social\": {},\n \"address_requirement\": {},\n \"phone_requirement\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "uuid-da-loja",
"user_id": "uuid-do-proprietario",
"title": "Minha Loja",
"description": "Produtos digitais com entrega automática",
"terms": null,
"cnpj": null,
"logo": null,
"favicon": null,
"sub_domain": "minhaloja",
"active_template": "never",
"template_config": null,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z",
"partner_id": null,
"require_address": false,
"require_address_specific": false,
"require_address_category_ids": [],
"require_address_product_ids": [],
"require_phone": true,
"require_phone_optional": true,
"require_phone_specific": false,
"require_phone_category_ids": [],
"require_phone_product_ids": [],
"url": "https://minhaloja.selltrust.com.br",
"social": {
"instagram": "https://instagram.com/minhaloja",
"twitter": null,
"discord": null,
"youtube": null,
"facebook": null,
"tiktok": null,
"whatsapp": null,
"telegram": null
},
"address_requirement": {
"enabled": false,
"specific": false,
"category_ids": [],
"product_ids": [],
"selected_product_ids": []
},
"phone_requirement": {
"enabled": true,
"optional": true,
"specific": false,
"category_ids": [],
"product_ids": [],
"selected_product_ids": []
},
"payment_providers": [
{
"provider": "MISTIC_PAY",
"enabled": true,
"methods": [
"PIX"
]
}
]
}
Altera, em uma chamada só, tudo o que o painel deixa editar em Configurações: dados da loja, redes sociais e as regras de endereço e de telefone do checkout. Envie apenas o que quer mudar; o que não vier fica como está.
As validações são as mesmas do painel (CNPJ válido, subdomínio livre, campos de
A resposta é a loja completa, no mesmo formato de Obter Loja.
template_config conferidos contra o tema ativo). Campos fora desta lista são recusados com 400.
Exige a permissão Gerenciar Loja (
MANAGE_STORE) do usuário que criou o token. Veja Permissões do token.Subdomínio da loja: letras minúsculas, números e traços, mínimo de 3 caracteres. Precisa estar livre.
Redes sociais:
instagram, twitter, discord, youtube, facebook, tiktok, whatsapp, telegram. Cada uma é string ou null.Exigir endereço no checkout:
enabled (boolean), specific (boolean: só para alguns produtos), category_ids e product_ids (arrays de UUID, usados quando specific é true).Exigir telefone no checkout:
enabled, optional (campo aparece mas não é obrigatório), specific, category_ids e product_ids.Exemplo de corpo
{
"description": "Produtos digitais com entrega automática",
"social": {
"instagram": "https://instagram.com/minhaloja"
},
"phone_requirement": {
"enabled": true,
"optional": true,
"specific": false,
"category_ids": [],
"product_ids": []
}
}
{
"id": "uuid-da-loja",
"user_id": "uuid-do-proprietario",
"title": "Minha Loja",
"description": "Produtos digitais com entrega automática",
"terms": null,
"cnpj": null,
"logo": null,
"favicon": null,
"sub_domain": "minhaloja",
"active_template": "never",
"template_config": null,
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z",
"partner_id": null,
"require_address": false,
"require_address_specific": false,
"require_address_category_ids": [],
"require_address_product_ids": [],
"require_phone": true,
"require_phone_optional": true,
"require_phone_specific": false,
"require_phone_category_ids": [],
"require_phone_product_ids": [],
"url": "https://minhaloja.selltrust.com.br",
"social": {
"instagram": "https://instagram.com/minhaloja",
"twitter": null,
"discord": null,
"youtube": null,
"facebook": null,
"tiktok": null,
"whatsapp": null,
"telegram": null
},
"address_requirement": {
"enabled": false,
"specific": false,
"category_ids": [],
"product_ids": [],
"selected_product_ids": []
},
"phone_requirement": {
"enabled": true,
"optional": true,
"specific": false,
"category_ids": [],
"product_ids": [],
"selected_product_ids": []
},
"payment_providers": [
{
"provider": "MISTIC_PAY",
"enabled": true,
"methods": [
"PIX"
]
}
]
}
