Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Package to add to the system

name
string
required

The name of the package.

price
integer<int64>
required

The price of the package.

interval
enum<string>
required

The billing interval for the package. Possible values: Daily, Weekly, Bi-Weekly, Monthly, Quarterly, Yearly.

Available options:
Daily,
Weekly,
Bi-Weekly,
Monthly,
Quarterly,
Yearly
freeTrialDays
integer<int64>
default:0
required

The number of free trial days. Send 0 if no free trial days. Min:0, Max:7.

Required range: x <= 7
Example:

7

Response

Resource updated

_id
string
Pattern: ^[a-fA-F0-9]{24}$
Example:

"507f1f77bcf86cd799439011"

name
string

The name of the package.

price
integer<int64>

The price of the package.

interval
enum<string>

The billing interval for the package. Possible values: Daily, Weekly, Bi-Weekly, Monthly, Quarterly, Yearly.

Available options:
Daily,
Weekly,
Bi-Weekly,
Monthly,
Quarterly,
Yearly
Example:

"Daily"

freeTrialDays
integer<int64>
default:0

The number of free trial days. Send 0 if no free trial days. Min:0, Max:7.

Required range: x <= 7
Example:

7

status
enum<string>

The status of the package. Possible values: Active, Inactive.

Available options:
Active,
Inactive
Example:

"Active"

The checkout link for this package.

Example:

"https://example.com/auto-login?token=abc123"