---
title: "Create Subscription"
method: POST
path: "/payments/subscription"
tags: ["payments"]
---

# Create Subscription

`POST /payments/subscription`

## Request

- Base URL: `https://api.openproof.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openproof.io/payments/subscription`
- Auth: HTTP bearer

Create a Razorpay subscription for the user. No request body --
there's nothing for the client to choose anymore; the price and plan
are resolved entirely server-side from today's date.

## Request body

- SubscribeBody
  - `plan_key` string
  - `partner_code` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openproof/apis/openproof-api.md) · [All operations](https://skmtc.dev/openproof/apis/openproof-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openproof/apis/openproof-api/revisions/ddd0cac7c37e?raw)
