icon: calendar-plus
Create Plan
Use the Create Plan API to create a subscription plan for your merchant account. A plan defines the subscription amount, billing frequency, currency, billing interval, and total number of billing cycles. Once created successfully, KwikPaisa Neo Bank generates a uniqueplan_id, which is used when creating a customer subscription.
Endpoint
To view all available base URLs and environments, refer to:
➡️ API ResourcesThis endpoint requires standard KwikPaisa Neo Bank authentication headers.
Refer to: ➡️ Headers➡️ Signature Generation
➡️ Timestamp Validation
Request Parameters
Example Request Body
Example cURL Request
Signature Generation
Generate the request signature using the recursively sorted request payload.Example Success Response
Response Parameters
Important Notes
- A unique
plan_idis generated by KwikPaisa Neo Bank after successful plan creation. - Store the returned
plan_idfor future subscription operations. - The
amount_typedetermines whether the plan uses a fixed or variable amount. - The
frequencyandinterval_countdefine the billing interval. total_cyclesdefines the maximum number of billing cycles for the plan.metadatacan be used to store additional merchant-defined information, such as package details and subscription purpose.- Generate API signatures on your server only.
- Never expose your secret key in frontend applications.
- Use HTTPS for all API requests.
Recommended Subscription Flow
- Create a customer using the Create Customer API.
- Create a subscription plan using the Create Plan API.
- Store the generated
plan_id. - Create a subscription using the customer ID and plan ID.
- Redirect the customer to the subscription authorization flow.
