Skip to main content
POST
/
packages
cURL
curl --request POST \
  --url https://api.yourjobsearchgenius.ai/v1/packages \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "price": 123,
  "interval": "Daily",
  "freeTrialDays": 7
}
'
{
  "_id": "507f1f77bcf86cd799439011",
  "name": "<string>",
  "price": 123,
  "interval": "Daily",
  "freeTrialDays": 7,
  "status": "Active",
  "checkoutLink": "https://example.com/auto-login?token=abc123"
}

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