
# resumeSubscription

<InternalOnly>
<Note type="warning">
  This intent is only available for projects using the [Payments API](/payments). It is not compatible with projects using the [Billing API](/billing).
</Note>
</InternalOnly>

This will open Connect on the subscriptions settings page. However, it will **not automatically renew** the subscription; user action is still required. Upon resumption, users will be redirected back to `callbackUrl` if provided.

![resumeSubscription.jpg](https://i.gigscdn.net/docs/v1/connect-session-resumeSubscription.jpg)

The request expects a `resumeSubscription` object that defines the `subscription` to be resumed.

<CodeGroup title="Creating a Connect Session with resumeSubscription intent">

```bash
$ curl --request "POST" \
--url "https://api.gigs.com/projects/${GIGS_PROJECT}/connectSessions" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${GIGS_TOKEN}" \
--data '{
  "callbackUrl": "https://example.com",
  "intent": {
    "type": "resumeSubscription",
    "resumeSubscription": {
      "subscription": "sub_0U32VAxJ0Z7P8Y40mBAnOP9LPhEr"
    }
  },
  "user": "usr_0U2ViuFW0Z7P8Y2S1L76mfADMT6m"
}'
```

</CodeGroup>

**Note:** Please ensure that the subscription is resumable (i.e., it has an `endedAt` set and is of type `recurring`). Connect Sessions do not perform this validation. Redirecting a user to a non-renewable subscription will cause Connect to open in the subscription details view without the possibility to resume the subscription. This might confuse users.

## Where to go from here

- Read the [Connect Sessions API Documentation][create-connect-session]
- Reach out to [support@gigs.com](mailto:support@gigs.com) for assistance

[create-connect-session]: /connect/connect-sessions#create-a-connect-session
