Delete Order
curl --request DELETE \
--url https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}import requests
url = "https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}', 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://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": {},
"success.message": "<string>",
"success.order_id": "<string>",
"success.subscription_id": "<string>"
}Order API
Delete Order
Cancel an existing order by scheduling the subscription to end.
DELETE
/
api
/
v2
/
order
/
delete
/
{subscription_id}
/
{product_id}
Delete Order
curl --request DELETE \
--url https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}import requests
url = "https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}"
response = requests.delete(url)
print(response.text)const options = {method: 'DELETE'};
fetch('https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}', 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://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}"
req, _ := http.NewRequest("DELETE", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dashboard.statproxies.com/api/v2/order/delete/{subscription_id}/{product_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
response = http.request(request)
puts response.read_body{
"success": {},
"success.message": "<string>",
"success.order_id": "<string>",
"success.subscription_id": "<string>"
}Cancel an existing order by scheduling the Stripe subscription to end at the current period end.
Look for the
This action schedules the subscription for cancellation. The proxies will remain active until the end of the current billing period.
Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer {your_api_key} | Yes |
Path Parameters
string
required
The Stripe subscription ID from order creation.
string
required
The product ID (e.g.,
"captcha", "x1", "level3").Example Request
curl -X DELETE "https://dashboard.statproxies.com/api/v2/order/delete/sub_1RqJP3JB4G9i6PKHDwmKPJOb/captcha" \
-H "Authorization: Bearer {your_api_key}"
Response
Success Response
{
"success": {
"message": "Order deleted and subscription cancellation scheduled",
"order_id": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
"subscription_id": "sub_1RqJP3JB4G9i6PKHDwmKPJOb"
}
}
Response Fields
object
Success details object.
string
Confirmation message.
string
The order ID that was cancelled.
string
The Stripe subscription ID that was scheduled for cancellation.
Error Responses
400 Bad Request - Missing Parameters
{
"error": {
"type": "invalid_request_error",
"message": "subscription_id and product_id are required"
}
}
404 Not Found
{
"error": {
"type": "not_found_error",
"message": "Order not found"
}
}
500 Stripe Error
{
"error": {
"type": "stripe_error",
"message": "Error cancelling Stripe subscription",
"details": "..."
}
}
Important Notes
Cancellation is scheduled, not immediate. The subscription will continue until the end of the current billing period, and your proxies will remain active until then.
What Happens When You Cancel
- The Stripe subscription is set to cancel at period end
- You continue to have access to your proxies until expiration
- No further charges will occur after the current period
- The order status will update to reflect the pending cancellation
Finding the Subscription ID
Thesubscription_id is returned when you create an order and can also be found by listing your orders:
# List orders to find subscription_id
curl -X GET "https://dashboard.statproxies.com/api/v2/order/list" \
-H "Authorization: Bearer {your_api_key}"
subscription_id field in the response (note: it’s case-sensitive and starts with sub_).
Related Endpoints
Uncancel Order
Reverse a scheduled cancellation before the period ends.
Cancel & Refund
Cancel immediately and credit the latest invoice (orgs only).
List Orders
Find subscription IDs for your orders.
Get Order
Check order status after cancellation.
