v1
latestOpenAPI 3.1.02026-07-24170121.2 MBCreate a Plan
This API creates a new plan.
post/v1/plans
Headers
Acceptstring required
Indicates which content types, expressed as MIME types, the client is able to understand.
Content-Typestring required
Indicates the media type of the resource sent in the HTTP message body. <br /><br /><b>Possible Values:</b><br /> application/json<br />application/x-www-form-urlencoded
Request body
Response
201
Example response
{
"data": {
"object": "Plan",
"id": "daily_yoga",
"real_id": 9,
"amount": "2900",
"interval": "day",
"interval_count": "1",
"name": "Daily yoga",
"statement_descriptor": "sample statement descriptor",
"trial_period_days": "3",
"currency": "USD",
"created_at": {
"date": "2018-11-27 09:15:59.000000",
"timezone_type": 3,
"timezone": "UTC"
},
"updated_at": {
"date": "2018-11-27 09:15:59.000000",
"timezone_type": 3,
"timezone": "UTC"
}
}
}