Subscriptions
Create Subscription Plan
Create a new recurring subscription plan for customers to subscribe to
POST
Documentation Index
Fetch the complete documentation index at: https://docs-openpay.nipuntheekshana.com/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Body Parameters
A human-readable name for the subscription plan (e.g.,
Pro Monthly, Enterprise Yearly).The recurring payment amount per billing interval.
The fiat currency for the plan. Supported values:
USD, LKR.The billing interval. Accepted values:
daily, weekly, monthly, yearly.Number of free trial days before the first billing cycle begins. Defaults to
0.A description of what the plan includes. Displayed to customers on the checkout page.
Response
Unique identifier for the subscription plan.
The plan name.
The recurring amount.
The plan currency.
The billing interval.
Number of trial days.
The plan description.
Whether the plan is currently active and accepting new subscribers.
ISO 8601 timestamp of when the plan was created.