Skip to main content

Get All Subscription Plans

GET 

/plans

Returns a list of all subscription plans with pagination based on the filters passed on as query parameters.

info

The request must provide the following header: x-api-key: {merchantKey}

info

If a query parameter not listed below is included in the request, it will be ignored. Similarly, any query parameter with an invalid value will also be disregarded.

tip

Gte: Greater Than or Equal >=
Lte: Lower Than or Equal <=

Request

Query Parameters

    page integer

    Number of the desired page for which data should be returned. Page numbers use zero-based numbering e.g., to get the 10th page, you need to set page=9.

    pageSize integer

    Number of Plans per Page requested (e.g., 10).

    createdAtLte date-time

    Created before the provided date & time. Format: yyyy-MM-dd'T'HH:mm:ss.SS'Z'

    createdAtGte date-time

    Created after the provided date & time. Format: yyyy-MM-dd'T'HH:mm:ss.SS'Z'

    updatedAtLte date-time

    Updated before the provided date & time. Format: yyyy-MM-dd'T'HH:mm:ss.SS'Z'

    updatedAtGte date-time

    Updated after the provided date & time. Format: yyyy-MM-dd'T'HH:mm:ss.SS'Z'

    deleted string

    Possible values: [true, false]

    Possible values: TRUE, FALSE.

    name string

    Name of the Plan.

Header Parameters

    Content-Type stringrequired

    Must be application/json

    Accept-Language stringrequired

    Must be be en-US

    Origin stringrequired

    The origin of the request

    User-Agent stringrequired

    The client making the request

    x-api-key stringrequired

    x-api-key: {merchantKey}

Responses

Successful response

Schema

    page integer
    pageSize integer
    count integer
    totalPages integer

    data

    object[]

  • Array [

  • id string

    Unique Identifier of the Subscription Plan. Format: SubscriptionPlan + - + <UUID>

    createdAt date-time

    Timestamp of when the Subscription Plan was created.

    updatedAt date-time

    Timestamp of when the Subscription Plan was last updated.

    deletedAt date-timenullable

    Timestamp of when the Subscription Plan was deleted (if applicable).

    name stringrequired

    Possible values: <= 255 characters

    Name of the Subscription Plan.

    description stringrequired

    Possible values: <= 255 characters

    Description of the Subscription Plan.

    recurrentAmount decimalrequired

    Possible values: <= 60 characters

    Amount to be billed recurrently.

    currencyIsoCode stringrequired

    Possible values: >= 3 characters and <= 3 characters

    Currency code. Format ISO 4217.

    trialDurationPeriod integernullable

    Possible values: >= 1 and <= 28

    Period of the trial. MinValue 1, MaxValue 28.

    trialDurationUnit stringnullable

    Possible values: [day, month, year]

    Unit of the trial period.

    billingOccurrence integernullablerequired

    Recurrence of the billing occurrences.

    billingUnit stringnullablerequired

    Possible values: [day, month, year]

    Unit of the billing recurrence.

    billingCycles integerrequired

    Possible values: >= -1 and <= 120

    Number of the billing occurrences. -1 for unlimited subscription.

    prepaid boolean

    Default value: true

    The value would be true for pre-paid and false for post-paid.

    merchantMetadata stringnullable

    Possible values: <= 255 characters

    Field that allows the merchant to store specific metadata linked with the subscription plan.

  • ]

Loading...