Skip to main content

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 unique plan_id, which is used when creating a customer subscription.

Endpoint


To view all available base URLs and environments, refer to:

➡️ API Resources

This 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_id is generated by KwikPaisa Neo Bank after successful plan creation.
  • Store the returned plan_id for future subscription operations.
  • The amount_type determines whether the plan uses a fixed or variable amount.
  • The frequency and interval_count define the billing interval.
  • total_cycles defines the maximum number of billing cycles for the plan.
  • metadata can 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.

  1. Create a customer using the Create Customer API.
  2. Create a subscription plan using the Create Plan API.
  3. Store the generated plan_id.
  4. Create a subscription using the customer ID and plan ID.
  5. Redirect the customer to the subscription authorization flow.