Criar ou Atualizar Gateway
curl --request PUT \
--url https://api.selltrust.com.br/api/v1/gateway/{gateway} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {},
"provider": "<string>",
"enabled": true,
"fee": 123,
"is_percentage_fee": true
}
'import requests
url = "https://api.selltrust.com.br/api/v1/gateway/{gateway}"
payload = {
"data": {},
"provider": "<string>",
"enabled": True,
"fee": 123,
"is_percentage_fee": True
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {},
provider: '<string>',
enabled: true,
fee: 123,
is_percentage_fee: true
})
};
fetch('https://api.selltrust.com.br/api/v1/gateway/{gateway}', 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/gateway/{gateway}",
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([
'data' => [
],
'provider' => '<string>',
'enabled' => true,
'fee' => 123,
'is_percentage_fee' => true
]),
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/gateway/{gateway}"
payload := strings.NewReader("{\n \"data\": {},\n \"provider\": \"<string>\",\n \"enabled\": true,\n \"fee\": 123,\n \"is_percentage_fee\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.selltrust.com.br/api/v1/gateway/{gateway}")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {},\n \"provider\": \"<string>\",\n \"enabled\": true,\n \"fee\": 123,\n \"is_percentage_fee\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/gateway/{gateway}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {},\n \"provider\": \"<string>\",\n \"enabled\": true,\n \"fee\": 123,\n \"is_percentage_fee\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "uuid-do-gateway",
"gateway": "MISTIC_PAY",
"enabled": true,
"fee": null,
"is_percentage_fee": false,
"created_at": "2026-11-10T14:30:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z",
"kind": "PROVIDER",
"credentials": {
"client_id": true,
"client_secret": true
},
"info": {
"auth_mode": "access_key"
}
}
Pagamentos
Criar ou Atualizar Gateway
PUT
/
api
/
v1
/
gateway
/
{gateway}
Criar ou Atualizar Gateway
curl --request PUT \
--url https://api.selltrust.com.br/api/v1/gateway/{gateway} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {},
"provider": "<string>",
"enabled": true,
"fee": 123,
"is_percentage_fee": true
}
'import requests
url = "https://api.selltrust.com.br/api/v1/gateway/{gateway}"
payload = {
"data": {},
"provider": "<string>",
"enabled": True,
"fee": 123,
"is_percentage_fee": True
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {},
provider: '<string>',
enabled: true,
fee: 123,
is_percentage_fee: true
})
};
fetch('https://api.selltrust.com.br/api/v1/gateway/{gateway}', 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/gateway/{gateway}",
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([
'data' => [
],
'provider' => '<string>',
'enabled' => true,
'fee' => 123,
'is_percentage_fee' => true
]),
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/gateway/{gateway}"
payload := strings.NewReader("{\n \"data\": {},\n \"provider\": \"<string>\",\n \"enabled\": true,\n \"fee\": 123,\n \"is_percentage_fee\": true\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.selltrust.com.br/api/v1/gateway/{gateway}")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {},\n \"provider\": \"<string>\",\n \"enabled\": true,\n \"fee\": 123,\n \"is_percentage_fee\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/gateway/{gateway}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {},\n \"provider\": \"<string>\",\n \"enabled\": true,\n \"fee\": 123,\n \"is_percentage_fee\": true\n}"
response = http.request(request)
puts response.read_body{
"id": "uuid-do-gateway",
"gateway": "MISTIC_PAY",
"enabled": true,
"fee": null,
"is_percentage_fee": false,
"created_at": "2026-11-10T14:30:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z",
"kind": "PROVIDER",
"credentials": {
"client_id": true,
"client_secret": true
},
"info": {
"auth_mode": "access_key"
}
}
Cria o registro se ele não existe, ou atualiza o que existe. Vale para provedores (credenciais) e para métodos de pagamento (roteamento).
O que não vier no corpo continua como está. Em provedores, cada campo de
data não enviado mantém a credencial salva. As validações são as mesmas do painel.
Exige a permissão Gerenciar Gateways (
MANAGE_GATEWAYS) do usuário que criou o token. Veja Permissões do token.Provedor (
MISTIC_PAY, EFI_PAY, PUSHIN_PAY, SYNC_PAY, NX_GATE, PURIN_CASH) ou método (PIX, CREDIT_CARD). Para MERCADO_PAGO, só enabled e fee depois de conectado por OAuth.Provedor: as credenciais (veja a tabela em Pagamentos). Método:
routing e max_installments.Conectar um provedor
{
"data": {
"client_id": "pk_...",
"client_secret": "sk_..."
}
}
Apontar o PIX para o provedor
{
"provider": "MISTIC_PAY",
"fee": 0,
"is_percentage_fee": false
}
Desligar sem reenviar credenciais
{
"enabled": false
}
{
"id": "uuid-do-gateway",
"gateway": "MISTIC_PAY",
"enabled": true,
"fee": null,
"is_percentage_fee": false,
"created_at": "2026-11-10T14:30:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z",
"kind": "PROVIDER",
"credentials": {
"client_id": true,
"client_secret": true
},
"info": {
"auth_mode": "access_key"
}
}
