Create plan
Create a new plan for platform.
Request Body required
- Array [
- Array [
- ]
- ]
body object
features object[]
prices object[]
The time when the price was created.
The time when the price was updated.
The time when the feature was created.
The time when the feature was updated.
- 200
- 400
- 401
- 403
- 404
- 500
- default
A successful response.
Schema
- Array [
- Array [
- ]
- ]
plan object
features object[]
prices object[]
The time when the price was created.
The time when the price was updated.
The time when the feature was created.
The time when the feature was updated.
The time when the plan was created.
The time when the plan was updated.
{
"plan": {
"id": "string",
"name": "string",
"title": "string",
"description": "string",
"features": [
{
"id": "string",
"name": "string",
"title": "string",
"description": "string",
"planIds": [
"string"
],
"state": "string",
"prices": [
{
"id": "string",
"featureId": "string",
"providerId": "string",
"name": "string",
"interval": "string",
"usageType": "string",
"billingScheme": "string",
"state": "string",
"currency": "string",
"amount": "string",
"meteredAggregate": "string",
"tierMode": "string",
"metadata": {},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z"
}
],
"creditAmount": "string",
"metadata": {},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z"
}
],
"interval": "string",
"metadata": {},
"createdAt": "2023-06-07T05:39:56.961Z",
"updatedAt": "2023-06-07T05:39:56.961Z"
}
}
Bad Request - The request was malformed or contained invalid parameters.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Unauthorized - Authentication is required
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Forbidden - User does not have permission to access the resource
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Not Found - The requested resource was not found
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Internal Server Error. Returned when theres is something wrong with Frontier server.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}