Remover afiliados em lote
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete \
--header 'Content-Type: application/json' \
--header 'X-Api-Client-Token: <api-key>' \
--data '
{
"user_ids": [
"XXWBD7UOKM1756304064"
]
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete"
payload = { "user_ids": ["XXWBD7UOKM1756304064"] }
headers = {
"X-Api-Client-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Client-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({user_ids: ['XXWBD7UOKM1756304064']})
};
fetch('https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete', 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://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete",
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([
'user_ids' => [
'XXWBD7UOKM1756304064'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Client-Token: <api-key>"
],
]);
$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://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete"
payload := strings.NewReader("{\n \"user_ids\": [\n \"XXWBD7UOKM1756304064\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Client-Token", "<api-key>")
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://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete")
.header("X-Api-Client-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_ids\": [\n \"XXWBD7UOKM1756304064\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Client-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"user_ids\": [\n \"XXWBD7UOKM1756304064\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Operação em lote iniciada com sucesso",
"data": {
"batch_id": "batch_abc123",
"status": "queued"
}
}Produtos
Remover afiliados em lote
Remove múltiplos afiliados de um produto de forma assíncrona.
Aceita uma lista de até 5.000 IDs de usuários por requisição.
Retorna um batch_id para consultar o status da operação.
POST
/
products
/
{product_hash}
/
affiliates
/
batch-delete
Remover afiliados em lote
curl --request POST \
--url https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete \
--header 'Content-Type: application/json' \
--header 'X-Api-Client-Token: <api-key>' \
--data '
{
"user_ids": [
"XXWBD7UOKM1756304064"
]
}
'import requests
url = "https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete"
payload = { "user_ids": ["XXWBD7UOKM1756304064"] }
headers = {
"X-Api-Client-Token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Client-Token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({user_ids: ['XXWBD7UOKM1756304064']})
};
fetch('https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete', 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://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete",
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([
'user_ids' => [
'XXWBD7UOKM1756304064'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Client-Token: <api-key>"
],
]);
$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://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete"
payload := strings.NewReader("{\n \"user_ids\": [\n \"XXWBD7UOKM1756304064\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Client-Token", "<api-key>")
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://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete")
.header("X-Api-Client-Token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"user_ids\": [\n \"XXWBD7UOKM1756304064\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://nexus.ticto.com.br/api/v1/products/{product_hash}/affiliates/batch-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Client-Token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"user_ids\": [\n \"XXWBD7UOKM1756304064\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Operação em lote iniciada com sucesso",
"data": {
"batch_id": "batch_abc123",
"status": "queued"
}
}Authorizations
ApiClientTokenbearerAuth
Token de autenticação do cliente obtido via endpoint /auth
Path Parameters
Hash do produto
Body
application/json
Lista de códigos (hashes) de usuários a remover
Required array length:
1 - 5000 elements