Cancel an existing order by scheduling the Stripe subscription to end at the current period end.
This action schedules the subscription for cancellation. The proxies will remain active until the end of the current billing period.
Request
Header Value Required AuthorizationBearer {your_api_key}Yes
Path Parameters
The Stripe subscription ID from order creation.
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
The order ID that was cancelled.
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
The subscription_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}"
Look for the subscription_id field in the response (note: it’s case-sensitive and starts with sub_).
List Orders Find subscription IDs for your orders.
Get Order Check order status after cancellation.