---
title: "Create Pending Subscription"
method: POST
path: "/subscriptions/pending"
---

# Create Pending Subscription

`POST /subscriptions/pending`

## Request

- Base URL: `https://api.memorylayer.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.memorylayer.in/subscriptions/pending`
- Auth: none declared

Pre-registers a subscription's email/tier before Razorpay ever calls
back. Called server-side by the web app's checkout route immediately
after creating a Razorpay subscription, so subscription.activated can
trust our own DB row instead of webhook-supplied notes.email for a
brand-new subscription_id (closes the spoofing gap noted at the top of
the webhook handler below).

## Headers

- `x-internal-secret` string, nullable

## Request body

- PendingSubscriptionRequest
  - `subscription_id` string, required
  - `email` string, required
  - `tier` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/memorylayer/apis/memorylayer-license-server.md) · [All operations](https://skmtc.dev/memorylayer/apis/memorylayer-license-server/llms.txt) · [OpenAPI document](https://skmtc.dev/memorylayer/apis/memorylayer-license-server/revisions/c1b132d655e2?raw)
