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

# Renew Subscription

> Start the payment for the next period of a ConnectIPS subscription.

Subscriptions paid through ConnectIPS do not renew on their own: one payment covers one period. This endpoint issues a renewal invoice and returns a `checkoutUrl` where the customer pays it. The subscription is extended, and its credits refilled, only once the gateway confirms the payment.

Stripe subscriptions renew automatically and never need this call. Customers can also renew from their billing page.

## Request Body

**externalTenantId** `string`

Your ID for a B2B customer.

**externalUserId** `string`

Your user ID, for a D2C customer.

**provider** `string` *required*

`connectips`.

**productSlug** `string`

Which product's subscription to renew, when the customer has more than one.

**periodMonths** `number`

How many months to pay for. Defaults to the plan's billing period.

**successUrl** `string`

Where the customer lands after paying.

**cancelUrl** `string`

Where the customer lands if they abandon the payment.

## Authentication

Requires a **secret key** (`Authorization: Bearer sk_live_...`).

```bash cURL theme={null}
curl -X POST "https://app.crovver.com/api/public/subscriptions/renew" \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "externalTenantId": "workspace_123",
    "provider": "connectips",
    "successUrl": "https://yourapp.com/billing?renewed=1",
    "cancelUrl": "https://yourapp.com/billing"
  }'
```

```json 200 theme={null}
{
  "success": true,
  "data": {
    "checkoutUrl": "https://app.crovver.com/api/public/checkout/connectips/...",
    "invoiceId": "b3c1e0d2-...",
    "ref": "..."
  }
}
```

An abandoned renewal leaves the subscription untouched. The unpaid renewal invoice is voided automatically after a while.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.