Create plan
Changed onDefines the price and interval subscriptions bill on. Store the returned code: it is how subscriptions reference the plan. Treat plans as immutable once anything is subscribed to them.
Request
- Base URLhttps://api.kyshi.co
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"name": "Monthly Pro",
"description": "Monthly access to the Pro plan",
"interval": "monthly",
"amount": 5000,
"localCurrency": "NGN",
"amountCurrency": "local",
"settlementCurrency": "USD",
"limit": 12,
"hostedPage": true,
"sendInvoices": true
}Response
Success.
Example response
{
"status": true,
"message": "Success",
"code": 200,
"data": {}
}Changes
- breaking
the response's body type changed from
objectto no type for status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
the endpoint scheme security
ApiKeyAuthwas added to the API - info
added the new
CNYenum value to the request property - info
added
subschema #2to the response bodyallOflist for the response status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking