> ## Documentation Index
> Fetch the complete documentation index at: https://docs.statproxies.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Uncancel Order

> Reverse a scheduled cancellation so the subscription renews normally.

Reverse a scheduled cancellation. This only works while the subscription is still active and set to cancel at period end — i.e., after [Delete Order](/api-reference/order/delete-order) but before the period actually ends.

<Info>
  A subscription that has fully canceled or expired cannot be resumed. Create a new order instead.
</Info>

## Request

### Headers

| Header          | Value                   | Required |
| --------------- | ----------------------- | -------- |
| `Authorization` | `Bearer {your_api_key}` | Yes      |

### Path Parameters

<ParamField path="subscription_id" type="string" required>
  The subscription ID from order creation.
</ParamField>

<ParamField path="product_id" type="string" required>
  The product ID (e.g., `"captcha"`).
</ParamField>

### Example Request

```bash theme={null}
curl -X POST "https://dashboard.statproxies.com/api/v2/order/uncancel/sub_1RqJP3JB4G9i6PKHDwmKPJOb/captcha" \
  -H "Authorization: Bearer {your_api_key}"
```

## Response

### Success Response

```json theme={null}
{
  "success": {
    "message": "Subscription cancellation reversed — the subscription will renew normally",
    "order_id": "sub_1rqjp3jb4g9i6pkhdwmkpjob",
    "subscription_id": "sub_1RqJP3JB4G9i6PKHDwmKPJOb"
  }
}
```

### Response Fields

<ResponseField name="success" type="object">
  Success details object.
</ResponseField>

<ResponseField name="success.message" type="string">
  Confirmation message.
</ResponseField>

<ResponseField name="success.order_id" type="string">
  The order ID whose cancellation was reversed.
</ResponseField>

<ResponseField name="success.subscription_id" type="string">
  The Stripe subscription ID that will now renew normally.
</ResponseField>

### Error Responses

#### 400 Bad Request - Already Canceled

```json theme={null}
{
  "response": "error",
  "message": "The subscription has already fully canceled and cannot be resumed"
}
```

#### 404 Not Found

```json theme={null}
{
  "message": "Order not found"
}
```

The order was not found, or it is not owned by your key's user or organization.

## Related Endpoints

<CardGroup cols={2}>
  <Card title="Delete Order" icon="trash" href="/api-reference/order/delete-order">
    Schedule a subscription to cancel at period end.
  </Card>

  <Card title="List Orders" icon="list" href="/api-reference/order/list-orders">
    Check whether an order is `active` or `cancelled`.
  </Card>
</CardGroup>
