Criar upsell
curl --request POST \
--url https://api.speedsellx.io/seller/v1/upsells \
--header 'Content-Type: application/json' \
--data '
{
"product_id": 2,
"name": "<string>",
"status": "<string>",
"accept_text": "<string>",
"refuse_text": "<string>",
"accept_page": "<string>",
"refuse_page": "<string>",
"accept_redirect": "<string>",
"refuse_redirect": "<string>"
}
'import requests
url = "https://api.speedsellx.io/seller/v1/upsells"
payload = {
"product_id": 2,
"name": "<string>",
"status": "<string>",
"accept_text": "<string>",
"refuse_text": "<string>",
"accept_page": "<string>",
"refuse_page": "<string>",
"accept_redirect": "<string>",
"refuse_redirect": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
product_id: 2,
name: '<string>',
status: '<string>',
accept_text: '<string>',
refuse_text: '<string>',
accept_page: '<string>',
refuse_page: '<string>',
accept_redirect: '<string>',
refuse_redirect: '<string>'
})
};
fetch('https://api.speedsellx.io/seller/v1/upsells', 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.speedsellx.io/seller/v1/upsells",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 2,
'name' => '<string>',
'status' => '<string>',
'accept_text' => '<string>',
'refuse_text' => '<string>',
'accept_page' => '<string>',
'refuse_page' => '<string>',
'accept_redirect' => '<string>',
'refuse_redirect' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.speedsellx.io/seller/v1/upsells"
payload := strings.NewReader("{\n \"product_id\": 2,\n \"name\": \"<string>\",\n \"status\": \"<string>\",\n \"accept_text\": \"<string>\",\n \"refuse_text\": \"<string>\",\n \"accept_page\": \"<string>\",\n \"refuse_page\": \"<string>\",\n \"accept_redirect\": \"<string>\",\n \"refuse_redirect\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.speedsellx.io/seller/v1/upsells")
.header("Content-Type", "application/json")
.body("{\n \"product_id\": 2,\n \"name\": \"<string>\",\n \"status\": \"<string>\",\n \"accept_text\": \"<string>\",\n \"refuse_text\": \"<string>\",\n \"accept_page\": \"<string>\",\n \"refuse_page\": \"<string>\",\n \"accept_redirect\": \"<string>\",\n \"refuse_redirect\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.speedsellx.io/seller/v1/upsells")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"product_id\": 2,\n \"name\": \"<string>\",\n \"status\": \"<string>\",\n \"accept_text\": \"<string>\",\n \"refuse_text\": \"<string>\",\n \"accept_page\": \"<string>\",\n \"refuse_page\": \"<string>\",\n \"accept_redirect\": \"<string>\",\n \"refuse_redirect\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 12,
"product_id": 3256,
"funnel_id": 4,
"name": "Oferta complementar",
"status": "active",
"accept_text": "Sim, quero!",
"refuse_text": "Não, obrigado",
"accept_page": null,
"refuse_page": null,
"accept_redirect": null,
"refuse_redirect": null,
"created_at": "2026-06-01T10:00:00-03:00",
"updated_at": "2026-06-01T10:00:00-03:00"
}
}
Upsells
Criar upsell
Cria um upsell
POST
/
upsells
Criar upsell
curl --request POST \
--url https://api.speedsellx.io/seller/v1/upsells \
--header 'Content-Type: application/json' \
--data '
{
"product_id": 2,
"name": "<string>",
"status": "<string>",
"accept_text": "<string>",
"refuse_text": "<string>",
"accept_page": "<string>",
"refuse_page": "<string>",
"accept_redirect": "<string>",
"refuse_redirect": "<string>"
}
'import requests
url = "https://api.speedsellx.io/seller/v1/upsells"
payload = {
"product_id": 2,
"name": "<string>",
"status": "<string>",
"accept_text": "<string>",
"refuse_text": "<string>",
"accept_page": "<string>",
"refuse_page": "<string>",
"accept_redirect": "<string>",
"refuse_redirect": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
product_id: 2,
name: '<string>',
status: '<string>',
accept_text: '<string>',
refuse_text: '<string>',
accept_page: '<string>',
refuse_page: '<string>',
accept_redirect: '<string>',
refuse_redirect: '<string>'
})
};
fetch('https://api.speedsellx.io/seller/v1/upsells', 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.speedsellx.io/seller/v1/upsells",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'product_id' => 2,
'name' => '<string>',
'status' => '<string>',
'accept_text' => '<string>',
'refuse_text' => '<string>',
'accept_page' => '<string>',
'refuse_page' => '<string>',
'accept_redirect' => '<string>',
'refuse_redirect' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"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.speedsellx.io/seller/v1/upsells"
payload := strings.NewReader("{\n \"product_id\": 2,\n \"name\": \"<string>\",\n \"status\": \"<string>\",\n \"accept_text\": \"<string>\",\n \"refuse_text\": \"<string>\",\n \"accept_page\": \"<string>\",\n \"refuse_page\": \"<string>\",\n \"accept_redirect\": \"<string>\",\n \"refuse_redirect\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.post("https://api.speedsellx.io/seller/v1/upsells")
.header("Content-Type", "application/json")
.body("{\n \"product_id\": 2,\n \"name\": \"<string>\",\n \"status\": \"<string>\",\n \"accept_text\": \"<string>\",\n \"refuse_text\": \"<string>\",\n \"accept_page\": \"<string>\",\n \"refuse_page\": \"<string>\",\n \"accept_redirect\": \"<string>\",\n \"refuse_redirect\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.speedsellx.io/seller/v1/upsells")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"product_id\": 2,\n \"name\": \"<string>\",\n \"status\": \"<string>\",\n \"accept_text\": \"<string>\",\n \"refuse_text\": \"<string>\",\n \"accept_page\": \"<string>\",\n \"refuse_page\": \"<string>\",\n \"accept_redirect\": \"<string>\",\n \"refuse_redirect\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 12,
"product_id": 3256,
"funnel_id": 4,
"name": "Oferta complementar",
"status": "active",
"accept_text": "Sim, quero!",
"refuse_text": "Não, obrigado",
"accept_page": null,
"refuse_page": null,
"accept_redirect": null,
"refuse_redirect": null,
"created_at": "2026-06-01T10:00:00-03:00",
"updated_at": "2026-06-01T10:00:00-03:00"
}
}
Requer o escopo
upsells:write e o header HTTP Idempotency-Key.
{
"data": {
"id": 12,
"product_id": 3256,
"funnel_id": 4,
"name": "Oferta complementar",
"status": "active",
"accept_text": "Sim, quero!",
"refuse_text": "Não, obrigado",
"accept_page": null,
"refuse_page": null,
"accept_redirect": null,
"refuse_redirect": null,
"created_at": "2026-06-01T10:00:00-03:00",
"updated_at": "2026-06-01T10:00:00-03:00"
}
}
Body
application/json
Required range:
x >= 1Maximum string length:
255Maximum string length:
50Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
255Maximum string length:
2048Maximum string length:
2048Response
Show child attributes
Show child attributes
⌘I