Skip to main content

Get Subscription Plan

GET 

/plans/:subscriptionPlanId

Returns the details of a specific subscription plan based on the provided plan ID.

info

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

Request

Path Parameters

    subscriptionPlanId stringrequired

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

    Example: SubscriptionPlan-12033695-99d8-4dc6-bf51-db64ef27620b

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

    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...