Salvar Etapas
curl --request PUT \
--url https://api.selltrust.com.br/api/v1/abandoned-checkout/steps \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"steps": [
{}
],
"steps[].id": "<string>",
"steps[].delay_value": 123,
"steps[].delay_unit": "<string>"
}
'import requests
url = "https://api.selltrust.com.br/api/v1/abandoned-checkout/steps"
payload = {
"steps": [{}],
"steps[].id": "<string>",
"steps[].delay_value": 123,
"steps[].delay_unit": "<string>"
}
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({
steps: [{}],
'steps[].id': '<string>',
'steps[].delay_value': 123,
'steps[].delay_unit': '<string>'
})
};
fetch('https://api.selltrust.com.br/api/v1/abandoned-checkout/steps', 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/abandoned-checkout/steps",
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([
'steps' => [
[
]
],
'steps[].id' => '<string>',
'steps[].delay_value' => 123,
'steps[].delay_unit' => '<string>'
]),
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/abandoned-checkout/steps"
payload := strings.NewReader("{\n \"steps\": [\n {}\n ],\n \"steps[].id\": \"<string>\",\n \"steps[].delay_value\": 123,\n \"steps[].delay_unit\": \"<string>\"\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/abandoned-checkout/steps")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"steps\": [\n {}\n ],\n \"steps[].id\": \"<string>\",\n \"steps[].delay_value\": 123,\n \"steps[].delay_unit\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/abandoned-checkout/steps")
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 \"steps\": [\n {}\n ],\n \"steps[].id\": \"<string>\",\n \"steps[].delay_value\": 123,\n \"steps[].delay_unit\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"enabled": true,
"enabled_at": "2026-11-10T14:30:00.000Z",
"max_steps": 3,
"min_delay_minutes": 10,
"steps": [
{
"id": "uuid-da-etapa-1",
"position": 1,
"delay_value": 2,
"delay_unit": "HOURS",
"subject": "Você esqueceu algo na {{ store.name }}"
},
{
"id": "uuid-da-etapa-2",
"position": 2,
"delay_value": 1,
"delay_unit": "DAYS",
"subject": "Seu pedido #{{ order.number }} ainda está esperando"
},
{
"id": "uuid-da-etapa-3",
"position": 3,
"delay_value": 3,
"delay_unit": "DAYS",
"subject": "Última chance: pedido #{{ order.number }} na {{ store.name }}"
}
]
}
Checkout abandonado
Salvar Etapas
PUT
/
api
/
v1
/
abandoned-checkout
/
steps
Salvar Etapas
curl --request PUT \
--url https://api.selltrust.com.br/api/v1/abandoned-checkout/steps \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"steps": [
{}
],
"steps[].id": "<string>",
"steps[].delay_value": 123,
"steps[].delay_unit": "<string>"
}
'import requests
url = "https://api.selltrust.com.br/api/v1/abandoned-checkout/steps"
payload = {
"steps": [{}],
"steps[].id": "<string>",
"steps[].delay_value": 123,
"steps[].delay_unit": "<string>"
}
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({
steps: [{}],
'steps[].id': '<string>',
'steps[].delay_value': 123,
'steps[].delay_unit': '<string>'
})
};
fetch('https://api.selltrust.com.br/api/v1/abandoned-checkout/steps', 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/abandoned-checkout/steps",
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([
'steps' => [
[
]
],
'steps[].id' => '<string>',
'steps[].delay_value' => 123,
'steps[].delay_unit' => '<string>'
]),
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/abandoned-checkout/steps"
payload := strings.NewReader("{\n \"steps\": [\n {}\n ],\n \"steps[].id\": \"<string>\",\n \"steps[].delay_value\": 123,\n \"steps[].delay_unit\": \"<string>\"\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/abandoned-checkout/steps")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"steps\": [\n {}\n ],\n \"steps[].id\": \"<string>\",\n \"steps[].delay_value\": 123,\n \"steps[].delay_unit\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/abandoned-checkout/steps")
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 \"steps\": [\n {}\n ],\n \"steps[].id\": \"<string>\",\n \"steps[].delay_value\": 123,\n \"steps[].delay_unit\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"enabled": true,
"enabled_at": "2026-11-10T14:30:00.000Z",
"max_steps": 3,
"min_delay_minutes": 10,
"steps": [
{
"id": "uuid-da-etapa-1",
"position": 1,
"delay_value": 2,
"delay_unit": "HOURS",
"subject": "Você esqueceu algo na {{ store.name }}"
},
{
"id": "uuid-da-etapa-2",
"position": 2,
"delay_value": 1,
"delay_unit": "DAYS",
"subject": "Seu pedido #{{ order.number }} ainda está esperando"
},
{
"id": "uuid-da-etapa-3",
"position": 3,
"delay_value": 3,
"delay_unit": "DAYS",
"subject": "Última chance: pedido #{{ order.number }} na {{ store.name }}"
}
]
}
Substitui a lista de etapas. Envie as etapas na ordem desejada: com
id para manter uma etapa existente (e o template dela), sem id para criar uma nova com o template padrão da posição. Etapas existentes que não vierem na lista são removidas.
Regras: de 1 a 3 etapas; cada uma pelo menos 10 minutos e no máximo 30 dias depois do pedido; cada etapa precisa ser mais tardia que a anterior.
Exige a permissão Gerenciar Marketing (
MANAGE_MARKETING) do usuário que criou o token. Veja Permissões do token.Exemplo de corpo
{
"steps": [
{
"id": "uuid-da-etapa-1",
"delay_value": 30,
"delay_unit": "MINUTES"
},
{
"delay_value": 1,
"delay_unit": "DAYS"
}
]
}
{
"enabled": true,
"enabled_at": "2026-11-10T14:30:00.000Z",
"max_steps": 3,
"min_delay_minutes": 10,
"steps": [
{
"id": "uuid-da-etapa-1",
"position": 1,
"delay_value": 2,
"delay_unit": "HOURS",
"subject": "Você esqueceu algo na {{ store.name }}"
},
{
"id": "uuid-da-etapa-2",
"position": 2,
"delay_value": 1,
"delay_unit": "DAYS",
"subject": "Seu pedido #{{ order.number }} ainda está esperando"
},
{
"id": "uuid-da-etapa-3",
"position": 3,
"delay_value": 3,
"delay_unit": "DAYS",
"subject": "Última chance: pedido #{{ order.number }} na {{ store.name }}"
}
]
}
