---
title: "Manually attach a pending subscription to a user account"
method: POST
path: "/api/admin/pending-subscriptions/{id}/attach"
tags: ["Admin"]
---

# Manually attach a pending subscription to a user account

`POST /api/admin/pending-subscriptions/{id}/attach`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/admin/pending-subscriptions/{id}/attach`
- Auth: HTTP bearer

Use when the customer paid with one email (e.g. iCloud / different Stripe customer email) but signed up with another. Sets user_id, clears pending_email, copies Stripe customer id to the user if missing, and busts the AI rate-limit tier cache.

## Path parameters

- `id` number, required

## Request body

- AttachPendingSubscriptionDto

## Response `201`

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
