Skip to main content

Create an new plan

POST 

/recurrency/plans

This endpoint is used to create new subscription plans. Subscription plans define the terms, prices and benefits associated with different levels of service offered to customers. When creating a new plan, pertinent details such as the plan name, description, price, duration, and any other relevant attributes must be provided in the body of the request. Upon successful creation, the system returns the complete details of the newly created plan, including a unique identifier for future reference.

Request​

Body

required

    billingCycle stringrequired

    Possible values: [DAILY, WEEKLY, MONTHLY, QUARTERLY, BIANNUAL, ANNUAL]

    amount int32required

    Possible values: >= 1

    totalBillingCycles int32required

    Possible values: >= 1

    initialGraceCycles int32

    initialFee

    object

    description stringrequired
    amount int32required
    cycles int32required

    Possible values: >= 1

    tag stringrequired

    Possible values: non-empty

Responses​

OK

Schema

    id string
    billingCycle string
    totalBillingCycles int32
    initialGraceCycles int32

    initialFee

    object

    description string
    amount int32
    cycles int32
    tag string
    paymentType string
    amount int32
    enabled boolean

    Indicates if the plan is enabled or not.

Loading...