Atualizar preço do produto
curl --request PATCH \
--url https://api.speedsellx.io/seller/v1/products/{id}/price \
--header 'Content-Type: application/json' \
--data '{
"price": 1
}'import requests
url = "https://api.speedsellx.io/seller/v1/products/{id}/price"
payload = { "price": 1 }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({price: 1})
};
fetch('https://api.speedsellx.io/seller/v1/products/{id}/price', 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/products/{id}/price",
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([
'price' => 1
]),
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/products/{id}/price"
payload := strings.NewReader("{\n \"price\": 1\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.speedsellx.io/seller/v1/products/{id}/price")
.header("Content-Type", "application/json")
.body("{\n \"price\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.speedsellx.io/seller/v1/products/{id}/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"price\": 1\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 3256,
"name": "Curso de Vendas",
"description": "Curso completo de vendas",
"status": "published",
"type": "digital",
"payment_type": "unique",
"recurrence_interval": null,
"price": 149.9,
"currency": "brl",
"is_free": false,
"created_at": "2026-06-01T10:00:00-03:00",
"updated_at": "2026-06-01T10:00:00-03:00"
}
}
Produtos
Atualizar preço
Ajusta apenas o preço de um produto
PATCH
/
products
/
{id}
/
price
Atualizar preço do produto
curl --request PATCH \
--url https://api.speedsellx.io/seller/v1/products/{id}/price \
--header 'Content-Type: application/json' \
--data '{
"price": 1
}'import requests
url = "https://api.speedsellx.io/seller/v1/products/{id}/price"
payload = { "price": 1 }
headers = {"Content-Type": "application/json"}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({price: 1})
};
fetch('https://api.speedsellx.io/seller/v1/products/{id}/price', 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/products/{id}/price",
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([
'price' => 1
]),
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/products/{id}/price"
payload := strings.NewReader("{\n \"price\": 1\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://api.speedsellx.io/seller/v1/products/{id}/price")
.header("Content-Type", "application/json")
.body("{\n \"price\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.speedsellx.io/seller/v1/products/{id}/price")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"price\": 1\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": 3256,
"name": "Curso de Vendas",
"description": "Curso completo de vendas",
"status": "published",
"type": "digital",
"payment_type": "unique",
"recurrence_interval": null,
"price": 149.9,
"currency": "brl",
"is_free": false,
"created_at": "2026-06-01T10:00:00-03:00",
"updated_at": "2026-06-01T10:00:00-03:00"
}
}
Requer o escopo
products:write e o header HTTP Idempotency-Key. Use este endpoint para alterar apenas o preço, sem reenviar o produto inteiro.
{
"data": {
"id": 3256,
"name": "Curso de Vendas",
"description": "Curso completo de vendas",
"status": "published",
"type": "digital",
"payment_type": "unique",
"recurrence_interval": null,
"price": 149.9,
"currency": "brl",
"is_free": false,
"created_at": "2026-06-01T10:00:00-03:00",
"updated_at": "2026-06-01T10:00:00-03:00"
}
}
⌘I