Skip to main content
DELETE
https://dashboard.statproxies.com
/
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}
{
  "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.
This action schedules the subscription for cancellation. The proxies will remain active until the end of the current billing period.

Request

Headers

HeaderValueRequired
AuthorizationBearer {your_api_key}Yes

Path Parameters

subscription_id
string
required
The Stripe subscription ID from order creation.
product_id
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

success
object
Success details object.
success.message
string
Confirmation message.
success.order_id
string
The order ID that was cancelled.
success.subscription_id
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

  1. The Stripe subscription is set to cancel at period end
  2. You continue to have access to your proxies until expiration
  3. No further charges will occur after the current period
  4. 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_).