Quitar un número adicional (On Demand)
Programa una reducción de N espacio(s) pagados de número extra para el PRÓXIMO ciclo, lo inverso de POST. Las llamadas repetidas se ACUMULAN: cada una resta quantity del objetivo ya programado (o del conteo pagado actual cuando no hay nada programado), con mínimo 0. Un objetivo que no está por debajo del conteo pagado actual cancela la programación. Requiere una clave de alcance TENANT. SIN reembolso del ciclo actual; el monto menor se cobra a partir de la próxima renovación. Eliminar o purgar un número NO reduce la capacidad pagada: esta es la única forma de hacerlo. Devuelve 409 NUMBER_LIMIT_EXCEEDED si la reducción dejara el límite por debajo de los números conectados actualmente, y 409 NOT_APPLICABLE_FOR_PLAN en Pay As You Go, que no tiene capacidad pagada que reducir: su renovación cobra todo número que alguna vez se conectó y no fue eliminado, incluidos los desconectados. En Pay As You Go, elimina el número para pagar menos; desconectarlo no detiene el cobro.
Rol con una clave de cuenta o token OAuth: Owner (billing:manage).
Requiere una clave de alcance tenant.
curl --request DELETE \
--url https://pilotstatus.com.br/v1/subscription/extra-numbers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"quantity": 1
}'import requests
url = "https://pilotstatus.com.br/v1/subscription/extra-numbers"
payload = { "quantity": 1 }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({quantity: 1})
};
fetch('https://pilotstatus.com.br/v1/subscription/extra-numbers', 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://pilotstatus.com.br/v1/subscription/extra-numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'quantity' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://pilotstatus.com.br/v1/subscription/extra-numbers"
payload := strings.NewReader("{\n \"quantity\": 1\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<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.delete("https://pilotstatus.com.br/v1/subscription/extra-numbers")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quantity\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/subscription/extra-numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quantity\": 1\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"charged": true,
"plan": "ON_DEMAND",
"paidExtraNumbers": 5,
"proratedTotal": 0,
"currency": "BRL",
"creditsUsed": 0,
"cardCharged": 0,
"grantedExtraNumbers": 0,
"baseMaxNumbers": 1,
"maxNumbers": 6,
"currentNumberCount": 4,
"scheduledPaidExtraNumbers": 4,
"scheduledReductionEffectiveAt": "2026-12-01T00:00:00.000Z",
"monthlyTotalBRL": 0
}Cuerpo
Respuesta
Programado. paidExtraNumbers y maxNumbers mantienen los valores de este ciclo; scheduledPaidExtraNumbers es el objetivo a partir de scheduledReductionEffectiveAt (fin del ciclo actual). charged es siempre true y los campos de dinero son 0: no se cobra ni se reembolsa nada.
¿Esta página le ayudó?
curl --request DELETE \
--url https://pilotstatus.com.br/v1/subscription/extra-numbers \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"quantity": 1
}'import requests
url = "https://pilotstatus.com.br/v1/subscription/extra-numbers"
payload = { "quantity": 1 }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({quantity: 1})
};
fetch('https://pilotstatus.com.br/v1/subscription/extra-numbers', 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://pilotstatus.com.br/v1/subscription/extra-numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_POSTFIELDS => json_encode([
'quantity' => 1
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <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://pilotstatus.com.br/v1/subscription/extra-numbers"
payload := strings.NewReader("{\n \"quantity\": 1\n}")
req, _ := http.NewRequest("DELETE", url, payload)
req.Header.Add("x-api-key", "<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.delete("https://pilotstatus.com.br/v1/subscription/extra-numbers")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"quantity\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/subscription/extra-numbers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quantity\": 1\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"charged": true,
"plan": "ON_DEMAND",
"paidExtraNumbers": 5,
"proratedTotal": 0,
"currency": "BRL",
"creditsUsed": 0,
"cardCharged": 0,
"grantedExtraNumbers": 0,
"baseMaxNumbers": 1,
"maxNumbers": 6,
"currentNumberCount": 4,
"scheduledPaidExtraNumbers": 4,
"scheduledReductionEffectiveAt": "2026-12-01T00:00:00.000Z",
"monthlyTotalBRL": 0
}