Skip to main content
POST
Buy subscription plan
Before calling this endpoint, make sure that you have enabled Subscription Auto Payment on your dashboard.

Request

Send a POST request to below endpoint and pass the desired plan_name to buy in the request body.
curl

Body

json

Body

application/json
key
string
required

Your default API Key used for request authorization

plan_name
enum<string>
required

The name of the plan you want to buy

Available options:
basic_monthly,
basic_yearly,
standard_monthly,
standard_yearly,
premium_monthly,
premium_yearly

Response

Buy subscription response

status
enum<string>
Available options:
success
messege
string
Example:

"You have just bought a custom api with basic plan"

data
object