The secret key can be gotten from the 'Settings' page on your Startbutton dashboard.
Post a request to the URL below, where the base URL is determined by the environment you are in.
BaseUrls
PROD : https://api.startbutton.tech
DEV/ Staging: https://api.startbutton.builditdigital.co
{
"name": "End of Year promo",
"description": "EoY promo",
"amount": 10000,
"frequency": "daily",
"currency": "USD"
}
{
"success": true,
"message": "success",
"data": {
"subscription": {
"name": "End of Year promo",
"description": "EoY promo",
"amount": 10000,
"frequency": "daily",
"merchantId": "66xxxxxxxxxxx",
"link": "http://pay.startbutton.builditdigital.com/#/subscription/8990",
"currency": "USD",
"code": "63xxxx",
"status": "active",
"deleted": false,
"_id": "67xxxxxxxxxx"
}
}
}