Find all plans linked to the seller
GET/recurrency/plans
This endpoint is used to retrieve all available subscription plans. Upon accessing this endpoint, the system returns a list of all available subscription plans along with their details such as name, description, price, duration and included features.
Requestβ
Responsesβ
- 200
- 400
- 401
- 415
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
plans
object[]
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.
{
"plans": [
{
"id": "string",
"billingCycle": "string",
"totalBillingCycles": 0,
"initialGraceCycles": 0,
"initialFee": {
"description": "Fee test description",
"amount": 25,
"cycles": 10
},
"tag": "string",
"paymentType": "string",
"amount": 15,
"enabled": false
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
message stringrequired
success booleanrequired
errors
object[]
message string
field string
{
"message": "string",
"success": true,
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
success booleanrequired
errors
object[]
message string
field string
{
"message": "string",
"success": true,
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Authorization token not found.",
"success": false,
"errors": {
"message": "Authorization token not found",
"field": "Authorization Token"
}
}
Unsupported Media Type
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
success booleanrequired
errors
object[]
message string
field string
{
"message": "string",
"success": true,
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Request object is invalid or incorrectly formatted",
"success": false,
"errors": null
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
message stringrequired
success booleanrequired
errors
object[]
message string
field string
{
"message": "string",
"success": true,
"errors": [
{
"message": "must be a well-formed UUID string",
"field": "merchantChargeId"
}
]
}
{
"message": "Internal Server Error",
"success": false,
"errors": null
}
Loading...